![]() |
|
|
|
|
|||||||
| Forums | Portal | Register | Forum Rules | FAQ | Contribute | Members List | Arcade | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
|
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| problem with shell script execution | anju | Shell Programming and Scripting | 2 | 05-07-2008 10:50 PM |
| Scheduling the execution of a shell script | sumesh.abraham | Shell Programming and Scripting | 1 | 12-06-2006 04:25 AM |
| Sequential execution of job in cron | pankajkrmishra | Shell Programming and Scripting | 3 | 08-15-2006 02:19 AM |
| Reading special characters while converting sequential file to line sequential | Rajeshsu | High Level Programming | 2 | 07-10-2006 11:38 AM |
| execution of shell script | malaymaru | Shell Programming and Scripting | 5 | 06-13-2005 06:49 AM |
|
|
Submit Tools | LinkBack | Thread Tools | Display Modes |
|
#1
|
|||
|
|||
|
Sequential execution in shell script?
I've a shell script that invokes a URL of an application to do some work, e.g., http://www.abc.com/myservlet?action=helloworld.Does the shell wait for a return value from the URL call before proceeding to the next line of command?
|
| Forum Sponsor | ||
|
|
|
#2
|
||||
|
||||
|
yes, unless you start a new thread and do the operation in the new thread independently. usually you won't be doing this in a shell script
|
|
#3
|
|||
|
|||
|
Quote:
|
|
#4
|
|||
|
|||
|
If you are specific to make a call to specific operation and still continue with the next set of lines in the script
it is usually done with an ' & ' Code:
instruction1 & instruction2 & instruction3 |
|
#5
|
|||
|
|||
|
Actually I want the current line to finish executing before continuing to the next line. So do I still use the '&"?
|
|
#6
|
|||
|
|||
|
Quote:
command1 command2 command3 will be executed as command1 followed by command2 followed by command3 irrspective of the outcome of the commands. If you want to run command2 only if command1 is executed fine and similarly command3 only if command2 is executed, you can do like.. command1 && commmand2 && command3 |
|
#7
|
|||
|
|||
|
Quote:
No you dont have to, current instruction next instruction next + 1 instruction for the above instruction order, for a sequential flow only if the current instruction is completed executing, control would flow to the next instruction |
|||
| Google The UNIX and Linux Forums |