Advertisement
Guest User

Untitled

a guest
Jul 27th, 2015
199
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.45 KB | None | 0 0
  1. a.pl
  2. [lahotip@vnc10 ~]$ cat a.pl
  3. #! /usr/bin/local/perl
  4.  
  5. system "b.pl &";
  6. system "b.pl &";
  7. system "b.pl &";
  8. system "b.pl &";
  9. system "b.pl &";
  10.  
  11. ------------------------------
  12.  
  13. b.pl
  14. [lahotip@vnc10 ~]$ cat b.pl
  15. #!/usr/local/bin/perl -w
  16.  
  17. print "hi from b.pl" . "\n";
  18. sleep (60);
  19.  
  20. -------------------------------
  21.  
  22. Launched as -
  23.  
  24. > ssh <hostname> a.pl
  25. *does not exit and waits for all the 5 b.pl instances to finish, whereas a.pl has exited*
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement