-----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On 10-Sep-2002/12:01 +0800, Toto Gamez <[EMAIL PROTECTED]> wrote: >Im using RH72 and wvdial to connect to the internet but Im only allowed >to use the telephone from 7-9am, 12-1:30pm and 4-5pm. I'm new to >scripting but read the Intro to BASH Scriptng. is there anyone who has a >script for this.
Add cron jobs to /etc/crontab to kill and disable pppd at the correct times, and re-enable pppd at the correct times. The following example is for 07:00-09:00. 00 07 * * * root chmod ug+x /usr/sbin/pppd 00 09 * * * root killall pppd; chmod ugo-x /usr/sbin/pppd See the crontab man page for an explanation of the file format. man 5 crontab Tony - -- Anthony E. Greene <mailto:[EMAIL PROTECTED]> OpenPGP Key: 0x6C94239D/7B3D BD7D 7D91 1B44 BA26 C484 A42A 60DD 6C94 239D AOL/Yahoo Chat: TonyG05 HomePage: <http://www.pobox.com/~agreene/> Linux: the choice of a GNU Generation. <http://www.linux.org/> -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: Anthony E. Greene 0x6C94239D <[EMAIL PROTECTED]> iD8DBQE9fgL4pCpg3WyUI50RAiFaAJ9tBEB8WpKsMwKdwl6FrGLJDlE1ewCgjtdz vgmD2hE1h9A6sR9oNmrDOtk= =Pp08 -----END PGP SIGNATURE----- -- redhat-list mailing list unsubscribe mailto:[EMAIL PROTECTED]?subject=unsubscribe https://listman.redhat.com/mailman/listinfo/redhat-list