Skip site navigation (1)Skip section navigation (2)
Date:      Mon, 10 Feb 2014 21:10:41 +0100
From:      Luca Ferrari <fluca1978@infinito.it>
To:        dteske@freebsd.org
Cc:        questions@freebsd.org, Erich Dollansky <erichsfreebsdlist@alogt.com>, Vladislav Prodan <universite@ukr.net>, Darren Pilgrim <list_freebsd@bluerosetech.com>
Subject:   Re: Re[2]: Restart network without reboot ?
Message-ID:  <CAKoxK%2B7gHO7ZMwYgrVDBu3EgsMkBDLa7Va1inUi8C43vhWJ_Rg@mail.gmail.com>
In-Reply-To: <0b7f01cf267d$72ac84b0$58058e10$@FreeBSD.org>
References:  <1391822758.499117562.qad9aups@frv35.fwdcdn.com> <20140208102029.04d2eb10@X220.alogt.com> <1391827303.738906888.k9hzy6eo@frv35.fwdcdn.com> <52F5BF3A.2030500@bluerosetech.com> <1391864386.931739885.x8t44ikc@frv35.fwdcdn.com> <0b7f01cf267d$72ac84b0$58058e10$@FreeBSD.org>

next in thread | previous in thread | raw e-mail | index | archive | help
On Mon, Feb 10, 2014 at 5:30 PM,  <dteske@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



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?CAKoxK%2B7gHO7ZMwYgrVDBu3EgsMkBDLa7Va1inUi8C43vhWJ_Rg>