* Controlling MODEM via cron
@ 1996-06-27 4:00 Michael T. Davis
1996-06-29 4:00 ` Michael T. Davis
0 siblings, 1 reply; 2+ messages in thread
From: Michael T. Davis @ 1996-06-27 4:00 UTC (permalink / raw)
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?
Thanks,
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
------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
* RE: Controlling MODEM via cron
1996-06-27 4:00 Controlling MODEM via cron Michael T. Davis
@ 1996-06-29 4:00 ` Michael T. Davis
0 siblings, 0 replies; 2+ messages in thread
From: Michael T. Davis @ 1996-06-29 4:00 UTC (permalink / raw)
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
------------------------------------------------------------------------------
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~1996-06-29 4:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
1996-06-27 4:00 Controlling MODEM via cron Michael T. Davis
1996-06-29 4:00 ` Michael T. Davis
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox