the myscript.pl takes a long time to finish and it also depends on the userinputs, it also has its own gui and other stuff. so everytime I run that script, it waits for user input such as button presses and other stuff... using a sleep() would be useless because the time that the script would finish is unknown. if there would be a way for the myscript.pl to send a signal or something that can be captured by the main script, maybe that might work? hehe but i don't know any...