Thursday, June 23, 2005

Mama i am coming home..

Some times mama maynot be back home to receive you ,in that case you become a zombie .Mama need to call wait to make sure all the kids are back.

%cat checkzombie.sh
#!/bin/bash

./zombie1 &
./zombie
wait
%cat zombie1
#!/bin/bash

sleep 60
%cat zombie
#!/bin/bash

sleep 2


If you dont call wait at the end,the script will return before zombie1 is done as
zombie was executed as a background job.

1 Comments:

Anonymous Anonymous said...

i just kont take it!!!! just to let you know that i was here.....

8:01 AM  

Post a Comment

<< Home