Re: system command help

2005-11-10 Thread Shawn Corey
Marilyn Sander wrote: On Nov 9, 2005, at 4:52 PM, Pablo Wolter wrote: The system function call returns a boolean value as return value, I don't remember if 1 is for fail and 0 for success or viceversa. Actually it is not a boolean value. It is a two-byte value, and each byte is an

system command help

2005-11-09 Thread heena s
hi, is there any mistake in the script: #ADDING A TOOL GROUP system($addgroup \$group\) == 0 or die system @args failed: $? log_message(the group $group added); thanks - Yahoo! FareChase - Search multiple travel

Re: system command help

2005-11-09 Thread Pablo Wolter
The system function call returns a boolean value as return value, I don't remember if 1 is for fail and 0 for success or viceversa. I think your mistake is the lack of the test construction like if, so if (system($addgroup \$group\) == 0) { ... do something ... } I'm not in a box with perl to

Re: system command help

2005-11-09 Thread Marilyn Sander
On Nov 9, 2005, at 4:52 PM, Pablo Wolter wrote: The system function call returns a boolean value as return value, I don't remember if 1 is for fail and 0 for success or viceversa. Actually it is not a boolean value. It is a two-byte value, and each byte is an integer. You need to look up

Re: system command help

2005-11-09 Thread Rakesh Mishra
On 11/10/05, Marilyn Sander [EMAIL PROTECTED] wrote: On Nov 9, 2005, at 4:52 PM, Pablo Wolter wrote: The system function call returns a boolean value as return value, I don't remember if 1 is for fail and 0 for success or viceversa. Actually it is not a boolean value. It is a two-byte