in reply to Re^2: Determine if a program in a different terminal has ended
in thread Determine if a program in a different terminal has ended
using a sleep() would be useless
I just put the sleep in there for testing purposes, i.e. to emulate a script doing something that takes time... (if the script doesn't do anything, the terminal would of course also close immediately)
I still wonder what's happening in your case. The "normal" thing for a terminal would be to wait until the command it runs has finished...
What happens on your system when you try
for (1..3) { system("gnome-terminal -e 'sleep 2'"); }
|
---|
Replies are listed 'Best First'. | |
---|---|
Re^4: Determine if a program in a different terminal has ended
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 almut (Canon) on Sep 17, 2009 at 17:33 UTC | |
Re^4: Determine if a program in a different terminal has ended
by renegadex (Beadle) on Sep 17, 2009 at 12:08 UTC |
In Section
Seekers of Perl Wisdom