You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

12 lines
251 B

#!/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"