script1.sh
Code: Select all
sleep 10
echo 'res1' > res1.txt
Code: Select all
sleep 10
echo 'res2' > res2.txt
Code: Select all
$ echo 'sh script1.sh' | at now
$ echo 'sh script2.sh' | at now
wait 10s, print res1, wait 10s, print res2.
What I get in CentOS:
wait 10s, print both res1 and res2.
Is this a bug?