I have this script called wsjs.sh :
#!/bin/bash WS=/home/user/wsjs cd $WS nohup atom . & gnome-terminal grunt watch
If I ran it in bash:
./wsjs.sh
Then the gnome-terminal atom editor starts separately, and the current bash shows:
user@ubuntu :~$ ./wsjs.pwd nohup: appending output to 'nohup.out' Running "watch" task Waiting...
Now, if I press ctrl + c , the grunt watch exits, BUT the atom editor also closes.
... this is strange.
I manually entered each command in bash and the atom was not closed. I replaced the gedit atom and ran the script, it was NOT closed.
Why did the atom close? Thanks!
source share