I have the following command set which I sometimes run on my VPS. Basically it works fine; It runs in the background and does what I need.
WB=$$; ( sleep 2h; echo "Removing PMA and exiting"; phpdismod mcrypt mbstring; apt-get purge phpmyadmin -y; service apache2 restart; sed -i 's/Include \/etc\/phpmyadmin\/apache.conf/ /g' /etc/apache2/apache2.conf; kill $WB ) &
The only thing I miss:
The only thing I miss in this command set is a
nohup. It's important for me to use
nohup in case I've closed the session or had a power outage in my end --- With a
nohup, I promise the command set will still be scheduled for execution in the VPS, in such cases.
How could I add a
nohup to this command set?