[lnkForumImage]
TotalShareware - Download Free Software

Confronta i prezzi di migliaia di prodotti.
Asp Forum
 Home | Login | Register | Search 


 

Forums >

comp.lang.ruby

Re: shell script with arguments within perl script

seebs

5/2/2007 8:29:00 PM

In message <649aa3b25654f605cd384dcaf19f6611@ruby-forum.com>, jay writes:
>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.

Hmm.

I know it's easy to mistake perl for ruby, what with both of them being
sorta newfangled computer stuff, but...

>#/opt/bin/perl
>
>system("shellscript.sh" <arg1>, <arg2> <arg3>);
>
>I am getting syntax error. If i get rid of the arg1-3 then the shell
>script runs just fine.

Well, yes.

And if this were a perl list, you may rest assured I'd tell you how to
expand @ARGV for your purposes.

-s