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 test this but something like that could work. Pablo. On 11/9/05, heena s <[EMAIL PROTECTED]> wrote: > > 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 sites in one click. > -- (o_ Pablo Wolter //\ Usuario #284649 V_/_ Debian Sid Kernel 2.6.8