Return to BSD News archive
Path: sserve!newshost.anu.edu.au!harbinger.cc.monash.edu.au!nexus.coast.net!simtel!noc.netcom.net!news.sprintlink.net!howland.reston.ans.net!Germany.EU.net!zib-berlin.de!news.tu-chemnitz.de!irz401!uriah.heep!bonnie.heep!not-for-mail From: j@bonnie.heep.sax.de (J Wunsch) Newsgroups: comp.unix.bsd.freebsd.misc Subject: Re: Enabling modem for timed periods.. Date: 22 Jun 1995 13:05:51 +0200 Organization: Private U**x site, Dresden. Lines: 29 Message-ID: <3sbiqf$t5r@bonnie.tcd-dresden.de> References: <3s9fv0$fo9@yaler.cs.tcd.ie> Reply-To: joerg_wunsch@uriah.heep.sax.de NNTP-Posting-Host: 192.109.108.139 Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 8bit Justin Farrell <Justin.Farrell@cs.tcd.ie> wrote: >The modem uses the standard AT commands - I can switch it off manually allright >using tip. What I really need I suppose is a shell script which will run tip and >send the appropriate commands at the times specified. To send the commands, use cron(8). You'll have to decide to either use the /etc/crontab file, or submit any and all cron commands via the crontab(1) command. As for the script, it's something like: #!/bin/sh echo "ats0=0&w" | tip <whatever you would use here> to turn it off, and #!/bin/sh echo "ats0=1&w" | tip <whatever you would use here> to turn it on again. Don't forget to chmod +x both scripts. -- cheers, J"org private: joerg_wunsch@uriah.heep.sax.de http://www.sax.de/~joerg/ Never trust an operating system you don't have sources for. ;-)