dd if=/dev/zero of=/dev/null bs=512k& while [ $! ]; do kill -USR1 $! && sleep 10 ; done
dd if=/dev/zero of=/dev/null bs=512k& while [ $! ]; do kill -SIGINFO $! && sleep 10 ; done
Personally I've been usingpkill -SIGUSR1 ^dd$but I think $! is more correct.
One thing I don't like about this way is it doesn't exit cleanly. You end up with a bajillion 'no such process' errors. Still needs some tweaking.
Post a Comment
2 comments:
Personally I've been using
pkill -SIGUSR1 ^dd$
but I think $! is more correct.
One thing I don't like about this way is it doesn't exit cleanly. You end up with a bajillion 'no such process' errors. Still needs some tweaking.
Post a Comment