in reply to Determine if a program in a different terminal has ended
I just tried it (with gnome-terminal and xterm), putting a simple "sleep 2" in myscript.pl, and the terminals popped up sequentially, staying there for 2 seconds (which is what I would have expected, as you're not doing anything to explicitly run things in the background...).
Could you elaborate on what exactly is happening in your case? Does the script actually execute? How do you run the commands within myscript.pl? Any errors?
BTW, you probably meant to increment $k within your while loop... Or simply use for (1..3) {...}
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Determine if a program in a different terminal has ended
by renegadex (Beadle) on Sep 17, 2009 at 11:41 UTC | |
by almut (Canon) on Sep 17, 2009 at 11:52 UTC | |
by renegadex (Beadle) on Sep 17, 2009 at 12:15 UTC | |
by almut (Canon) on Sep 17, 2009 at 12:40 UTC | |
by MidLifeXis (Monsignor) on Sep 17, 2009 at 17:20 UTC | |
| |
by renegadex (Beadle) on Sep 17, 2009 at 12:08 UTC |