diff options
Diffstat (limited to 'shell')
-rwxr-xr-x | shell | 10 |
1 files changed, 6 insertions, 4 deletions
@@ -1,5 +1,7 @@ #!/bin/sh -# this file is generated by compile.sh. do not edit directly -cd "/root/services/segfault" -kill `pgrep -P 1 -f "tail -f ./files/cmd_in"` -setuidgid segfault tail -f ./files/cmd_in | setuidgid segfault su -l segfault > ./files/cmd_out 2>&1 +#this is to keep stale tails from hanging around... +kill `pgrep -P 1 -f "tail -f /home/segfault/files/cmd_in"` +mkdir -p /home/segfault/files +mkfifo /home/segfault/files/cmd_in +mkfifo /home/segfault/files/cmd_out +tail -f /home/segfault/files/cmd_in | su -l segfault > /home/segfault/files/cmd_out 2>&1 |