[lnkForumImage]
TotalShareware - Download Free Software

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


 

Forums >

comp.lang.ruby

troubleshooting the 'system' call

barjunk

4/10/2007 10:49:00 PM

I was tyring to do a system call using sudo, like this:

system("sudo /some/dir/somewhere/rubyprog.rb","opt1", "opt2")

but it kept giving me the wrong answer....always false. After some
head knocking, I realized that this is more appropriate:

system("sudo","/some/dir/somewhere/rubyprog.rb","opt1", "opt2")


because the COMMAND is 'sudo' and the ruby program becomes the
argument to sudo.

I realize that the docs say this fairly explicitly, but sheesh! :)

Mike B.

2 Answers

AnAmericanCitizen

9/1/2007 8:23:00 PM

0

On Sat, 01 Sep 2007 20:03:14 -0500, zzpat <zzpatrick@gmail.com> wrote:

>Dan Kimmel wrote:
>> And John Warrner isn't running for re-election and Larry Craig is quitting.
>> The Republics have seen the handwriting on the wall, even if their idiot
>> president pretends otherwise.
>
>Or maybe Republicans know their party is finished. Think of all the
>times Allen Specter had to flip flop and defend things he said he'd
>never defend - like torturing POWs. McCain swore up and down he'd never
>support torturing POWs and then he voted for torture. The problem
>isn't Bush per se, it's that Republicans have weaker knees than the rest
>of us.
>
>When we say something, we mean it. When they say something, it's for the
>cameras.


I love these two guys......not only do they not usually know what they're talking
about, but they're going to be such fun in November 2008 when we recall some of their
more humourous comments in these newsgroups.....AAC

*US*

9/3/2007 2:32:00 PM

0

On Sat, 01 Sep 2007 13:22:57 -0700, AntiAmericanCitizen <NoAmerica@hateearth.net> wrote:

>... humourous comments ...

9/11 "trifecta" cracks you up, though.