3 Dec
2002
3 Dec
'02
13:46
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