Closing terminal window dosn't kill sudo'ed program
Ralf Mardorf
ralf.mardorf at alice-dsl.net
Fri May 22 01:39:32 CEST 2015
If you don't want to run into timeout issues when using several sudo
commands use a workaround. Just run a single sudo to launch the script
by itself.
#!/bin/bash
case $1 in
workaround)
sudo $0
;;
*)
while sleep 1
do
date
done
;;
esac
xfce4-terminal -x /path/workaround.sh workaround
--
It only looks like a tape-recorder. It's actually a pen.
So you can write with it and no one will know.
More information about the Xfce
mailing list