mercoledì, settembre 17, 2008

Bash: Keep alive process in Linux

Sotto inserisco uno script molto semplice, che ho creato per permette di tenere sempre vivo firefox.

Si può adattare alle proprie esigenze, andando a sostituire "firefox" con altre applicazioni.

#!/bin/sh
# This script keep alive firefox
# You can modify keepAlive.sh changing firefox with other application

while true ; do
firefox & kapid=$!
echo $kapid
wait $kapid
echo "Killed!!!"
done

Blogged with delicious2blogger

1 commento:

Anonimo ha detto...

medicamento aldactone 25 mg
[url=http://www.jnf.nl/swf/log/1/pepcid-20-mg-pregnancy.html]pepcid 20 mg pregnancy[/url]
buy generic claritin d 24 hour
naprosyn 500mg gout
buy compazine suppositories
http://www.jnf.nl/swf/log/31/lexapro-effects-when-stopped.html