0

I have the following bash script that runs few instances of my program simultaneously:

#!/bin/bash

./my_scrape &
./my_scrape &
./my_scrape &
exit 0

After some time I see that all instances successfully finished, but the script does not exit - I need to press Enter for that in Konsole. Removing exit 0 doesn't help. How can I make the script finish correctly?

8
  • I think that the script has exited, but the Konsole session has not, does your script open the Konsole session, or do you do that, then launch the script?
    – Arronical
    Oct 14, 2016 at 11:20
  • @Arronical I do open Konsole and type ./myscript.sh
    – Slowpoke
    Oct 14, 2016 at 11:22
  • How do you know that the script hasn't finished, is it because you don't get a command prompt?
    – Arronical
    Oct 14, 2016 at 11:26
  • @Arronical Yes, I need to press Enter for that. The program doesn't pause anywhere and runs ok if launched separately.
    – Slowpoke
    Oct 14, 2016 at 11:28
  • What does myscript.sh do?
    – Anwar
    Oct 14, 2016 at 11:53

0

You must log in to answer this question.

Browse other questions tagged .