Reputation: 149
First bash script is:
./second #takes too long
I want kill first bash script while second bash script is still running.
Can I do that?
UPDATE
First script run by cronjob!
Upvotes: 9
Views: 8574
Reputation: 246744
If the last thing that the first script does is to call the second script, then do this:
exec ./second
which replaces the first script's process with the second.
otherwise
nohup ./second &
disown
Upvotes: 15