blob: f49397921e11fd21c260ed5a30fa4405b96c29a9 (
plain) (
blame)
1
2
3
4
5
6
7
|
#!/bin/sh
#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
|