Restart network without reboot ?

Luca Ferrari fluca1978 at infinito.it
Mon Feb 10 20:10:43 UTC 2014


On Mon, Feb 10, 2014 at 5:30 PM,  <dteske at freebsd.org> wrote:
> sh -c 'echo "$((($(date +%M)+2)%60)) $(date +%H) * * * root sh
> /tmp/do_it_now.sh" >> /etc/crontab'

Sounds to me a little too dangerous: what if you forget to remove the
entry from crontab?
Why not using at and/or a sleep+nohup to launch the job after a few seconds?

Luca


More information about the freebsd-questions mailing list