help-bash
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[Help-bash] Self terminating code for bash scripts


From: adrelanos
Subject: [Help-bash] Self terminating code for bash scripts
Date: Tue, 19 Mar 2013 14:56:15 +0000

Hi!

When I am running a script, I wish, that it kills any previous instances
of itself in case it is still running. How can I do that?

I found one method [1], but I am wondering if there is a more elegant
way (without echo -e $$ "\n====" and being quite).

Cheers,
adrelanos

[1]
http://kheyali.blogspot.dk/2012/01/self-terminating-code-for-bash-scripts.html



reply via email to

[Prev in Thread] Current Thread [Next in Thread]