Dialin Server to Cable Modem working, but Cron not

Uncle Jim jim at jimani.com
Thu Dec 4 17:22:49 CST 2003


Hi,

On Thu, Dec 04, 2003 at 04:36:55PM -0000, Jon Moss wrote:

> My only strangeness involves a cron I setup to turn on and off mgetty
> answering the phone.
> 
> I don't have the exact entry from crontab (I may dialin to home later and
> retrieve it) but I'm basically deleting the nologin.ttyS1 file from etc
> folder at 9:03 a.m. and recreating it at 6:03 p.m. every day.
> 
> Trouble is it never runs.  Is it a rights issue?  A path issue?  I'm stumped.

First, is the cron daemon running?  "ps ax | grep crond" should show the
cron daemon process.

Then edit root's crontab ("crontab -e") and put in two lines like

   3 18 * * * /bin/touch /etc/nologin.ttyS1
   3  6 * * * /bin/rm -f /etc/nologin.ttyS1

-- 
Jim




More information about the Kclug mailing list