Skip to content

Instantly share code, notes, and snippets.

@und3f
Last active May 13, 2016 09:42
Show Gist options
  • Save und3f/fba6ce7c3081e8b2beae3e6d27142578 to your computer and use it in GitHub Desktop.
Save und3f/fba6ce7c3081e8b2beae3e6d27142578 to your computer and use it in GitHub Desktop.
#!/bin/sh
sleep 10
echo Executed
#!/bin/sh
pkexec /tmp/test.sh &
PID=#!
sleep 5
echo $PID
kill -HUP $!
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment