From: John Joyce Date: 2007-05-03T05:52:19+09:00 Subject: Re: shell script with arguments within perl script On May 3, 2007, at 5:22 AM, jay wrote: > Hi! I wanted to run the system command with in Perl script to execute > shell script with argument. I need to know the correct syntax for the > arguments. > > Ex.) > #/opt/bin/perl > > system("shellscript.sh" , ); > > I am getting syntax error. If i get rid of the arg1-3 then the shell > script runs just fine. > > thanks. > > -- > Posted via http://www.ruby-forum.com/. > in Ruby: system( command, arg, arg, arg) Returns true if command runs successfully, false otherwise. There is also: exec( command, arg, arg, arg) Exact behavior is platform dependent. One might presume that since Ruby borrows a fair amount from Perl, that there may be something similar going on.