I want to set a up a cron job to turn off and on eth0. This is the card that is used for my home system. what does one have to put in a script for this to work? Thanks *--------------------------------* | Chris Large clarge@macn.bc.ca | | http://clarge.bc.ca | *--------------------------------*
Try ifconfig eth0 down and ifconfig eth0 up Hope that helps, ali. On Sunday 01 December 2002 19:06, Chris Large wrote:
I want to set a up a cron job to turn off and on eth0. This is the card that is used for my home system. what does one have to put in a script for this to work?
Thanks
*--------------------------------*
| Chris Large clarge@macn.bc.ca | | http://clarge.bc.ca |
*--------------------------------*
Yes that is it. Thanks.
Try ifconfig eth0 down and ifconfig eth0 up
Hope that helps, ali.
On Sunday 01 December 2002 19:06, Chris Large wrote:
I want to set a up a cron job to turn off and on eth0. This is the card that is used for my home system. what does one have to put in a script for this to work?
Thanks
*--------------------------------*
| Chris Large clarge@macn.bc.ca | | http://clarge.bc.ca |
*--------------------------------*
-- Check the headers for your unsubscription address For additional commands send e-mail to suse-linux-e-help@suse.com Also check the archives at http://lists.suse.com Please read the FAQs: suse-linux-e-faq@suse.com
*--------------------------------* | Chris Large clarge@macn.bc.ca | | http://clarge.bc.ca | *--------------------------------*
First, you would need to be root. The sudo command can work in this context if you are doing it from your user account. Then issue one of the following commands as appropriate: ifconfig eth0 down ifconfig eth0 up There are network scripts in /etc/sysconfig/network and /etc/sysconfig/network/scripts but the ifconfig command is the command that gets called in the end. Chris Large wrote:
I want to set a up a cron job to turn off and on eth0. This is the card that is used for my home system. what does one have to put in a script for this to work? -- Jerry Feldman <gaf@blu.org> Boston Linux and Unix user group http://www.blu.org PGP key id:C5061EA9 PGP Key fingerprint:053C 73EC 3AC1 5C44 3E14 9245 FB00 3ED5 C506 1EA9
participants (3)
-
Ali Naddaf
-
Chris Large
-
Jerry Feldman