- or download this
#!/bin/sh
...
sleep 10
echo With newline
done
- or download this
local $SIG{ALRM} = sub { kill HUP => $pid; die "No data\n" };
- or download this
local $SIG{ALRM} = sub { alarm 0; print "No data\n"; alarm $timeout };
- or download this
With newline
With newline
...
No data
No data
NO newlineWith newline