Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.
Control execution of one script
Name: nauj Date: June 1, 2006 at 11:19:23 Pacific OS: AIX 5.1 CPU/Ram: IBM Product: IBM
Comment:
I have a script than exec others scripts. For example script 1 exec script2 (script 1 father of script2)
script2 &
In script1 I want to control the finalization of script1. I do this with that sentences:
ps -ef | grep script2 | grep -v "grep"
I make a loop that is making 'ps' until 'ps' returns nothing.
It runs, but I want to know if there is any other way of makinf this. I think there must be other way easier and better of control de execution of one script executed in background from other father script.
Name: lchi2000g Date: June 1, 2006 at 11:47:11 Pacific
Reply:
script2 & script3 & wait <== wait will wait for all of this script's background processes (script2 and script3) to finish to continue the execution of next command(s) ...
Summary: Hi i've been trying to write shell script with awk that I want to search a substring with variable of shell script In old one ,I wrote awk that find 'xxx' in myfile : #!/bin/ksh awk '/xxx/' myfile...
Summary: I am trying to write a script that will login to a remote host, change into a local directory, then execute a program within that directory. The problem that I am having is that after the script logs...