blob: e14336ffe8466e6c63f7da5ab48885955f4d2654 (
plain)
1
2
3
4
5
6
7
8
9
10
11
|
#!/bin/bash
[ -f testing.sh ] && . testing.sh
#testing "name" "command" "result" "infile" "stdin"
ln -s "$(which sleep)" xiphoid
(./xiphoid 5 & echo $! > pid.txt)
ID=$(cat pid.txt)
NOSPACE=1 testing "" "ps -o pid $ID" "PID\n$ID\n" "" ""
kill "$ID"
|