in reply to Re: breaking from a script
in thread breaking from a script

hi again, excuse me for my complete stupidity, but how can i integrate that into my script? where would i print the error message in this code?

Replies are listed 'Best First'.
Re: Re: Re: breaking from a script
by krujos (Curate) on Jul 31, 2002 at 21:28 UTC
    if (!system("adduser bob")) { print "system returned 0 everything is ok"; exit 0; } else { print "there was an error, exit and return 127 to the os"; exit 122; }