21 lines
428 B
Bash
21 lines
428 B
Bash
|
#!/bin/bash
|
||
|
|
||
|
if [ "$1" == "stdin" ]; then
|
||
|
read -r inputdata
|
||
|
echo "STDIN DATA: $inputdata"
|
||
|
elif [ "$1" == "timeout2" ]; then
|
||
|
sleep 2
|
||
|
exit 2
|
||
|
elif [ "$1" == "timeout10" ]; then
|
||
|
sleep 10
|
||
|
elif [ "$1" == "bigdata" ]; then
|
||
|
for i in {1..400000}
|
||
|
do
|
||
|
echo "ALICEWASBEGINNINGTOGETVERYTIREDOFSITTINGBYHERSISTERONTHEBANKANDO"
|
||
|
done
|
||
|
elif [ "$1" == "envtest" ]; then
|
||
|
echo "$CHRONOSASYNC"
|
||
|
else
|
||
|
echo "arguments missing"
|
||
|
fi
|