Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations Chris Miller on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

scripts line by line

Status
Not open for further replies.

Chrissirhc

Programmer
May 20, 2000
926
GB
Hi,

When I run a script my understanding is that each line in it will not run until the previous line has an exit code. Is that correct?
 
Hi,
the next line of a script will be executed indepentently of previous exit codes. Provided of course these lines terminate. Those kind of dependencies are programmed by yourself through boolean expressions ("while", "if-then-else-fi" etc.) and "set" options.

Michael.
 
If you want to execute an asynchrone script line, put a & at the end of them.
Anyway: man YourShell (ie sh,ksh,csh,bash, ...)

Hope This Help
PH.
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top