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.
%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:
i just kont take it!!!! just to let you know that i was here.....
Post a Comment
<< Home