Beefy Boxes and Bandwidth Generously Provided by pair Networks
P is for Practical
 
PerlMonks  

Re: Re: breaking from a script

by hostux (Initiate)
on Jul 31, 2002 at 21:23 UTC ( [id://186605]=note: print w/replies, xml ) Need Help??


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; }

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://186605]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others studying the Monastery: (5)
As of 2024-04-19 15:52 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found