From mboxrd@z Thu Jan 1 00:00:00 1970 X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: fee84,71ccb9c980b45393 X-Google-Attributes: gidfee84,public From: DAVISM@er6.eng.ohio-state.edu (Michael T. Davis) Subject: RE: Controlling MODEM via cron Date: 1996/06/29 Message-ID: <4r1thc$iqg@charm.magnus.acs.ohio-state.edu>#1/1 X-Deja-AN: 162681537 references: <4qv1l2$7f9@charm.magnus.acs.ohio-state.edu> organization: The Ohio State University newsgroups: comp.unix.osf.osf1 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 ------------------------------------------------------------------------------