Usenet comp.unix.osf.osf1 (1992-2004)
 help / color / mirror / Atom feed
From: DAVISM@er6.eng.ohio-state.edu (Michael T. Davis)
Subject: RE: Controlling MODEM via cron
Date: 1996/06/29	[thread overview]
Message-ID: <4r1thc$iqg@charm.magnus.acs.ohio-state.edu> (raw)
In-Reply-To: 4qv1l2$7f9@charm.magnus.acs.ohio-state.edu


In article <4qv1l2$7f9@charm.magnus.acs.ohio-state.edu>, I wrote:

>
>	We're running dUNIX v3.2a on an AlphaStation 200 4/100.  It has an
>US Robotics Sportster MODEM attached to /dev/tty00.  We would like to toggle
>auto-answer on the MODEM via a cron job.  Here's the relavent portion of the
>crontab file for root:
>
>0 6 * * 1-5 /usr/share/local/etc/dialup-off \;
>0 21 * * 1-5 /usr/share/local/etc/dialup-on \;
>
>Here's dialup-on:
>
>#!/bin/csh -f
>/usr/local/bin/kermit -l /dev/tty00 -b 38400 -C 'output ats0=1\13,quit'
>cd /etc
>cp inittab.dialup-on inittab
>init q
>
>Here's the relavent line from inittab.dialup-on:
>
>tty00:23:respawn:/usr/sbin/getty /dev/tty00 M38400 dialup
>
>(inittab.dialup-off has this line commented out.)
>
>This all works just peachy when executed interactively.  When cron fires it
>up, though, the MODEM is set to answer after one ring, as expected, but the TR
>light (indicating DTR from the system) never comes on.  What is cron (or the
>process created for dialup-on by cron) doing which would prevent DTR from
>turning on?
>

	I discovered the problem, and I'm surprised it didn't occur to me
sooner.  `init' isn't in the standard path defined for a cron job.  Specifying
its full path did the trick.

							Mike
--
              Michael T. Davis             |
   E-mail: davism@er6.eng.ohio-state.edu   | Systems Analyst 1; ECR6, ChE, MSE
            -or- DAVISM+@osu.edu           |Departmental Computing & Networking
 http://www.er6.eng.ohio-state.edu/~davism/|     The Ohio State University
 ------------------------------------------------------------------------------



      reply	other threads:[~1996-06-29  4:00 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
1996-06-27  4:00 Controlling MODEM via cron Michael T. Davis
1996-06-29  4:00 ` Michael T. Davis [this message]
read-only archive

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox