Last active
February 8, 2022 23:38
-
-
Save Krush206/bb2e6ce50b2100f0cfdacacc9c3c2d01 to your computer and use it in GitHub Desktop.
A true gksu Shell script replacement
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
xterm -e su -c "$* &" |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
mkfifo ~/gksu 2>&1 > /dev/null | |
ps -x | grep "tail -f $HOME/gksu$" | \ | |
kill -9 `awk '{ printf $1 }'` 2>&1 > /dev/null | |
tail -f ~/gksu & | |
xterm -e su -c "$* 2>&1 | tee ~/gksu &" |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment