Re: [gentoo-user] Restart network interfaces over SSH

2006-07-29 Thread Alexander Skwar
Raymond Lewis Rebbeck schrieb: How about running the script in a screen session? Another one: Put that script in a "script file" (like /tmp/script). Then setup an "at" job, which will execute this: at now + 1minute < /tmp/script And finally, it might be enough to make the shell ignor

Re: [gentoo-user] Restart network interfaces over SSH

2006-07-29 Thread Uwe Thiem
On 29 July 2006 10:20, Todor Pirov wrote: > Hello, > I have the following script which exchanges the IPs of two network > adapters: > > [code] > #!/bin/bash > > /usr/bin/cp /etc/conf.d/net-2 /etc/conf.d/net; > /etc/init.d/net.eth1 stop; > /etc/init.d/net.eth0 restart; > /etc/init.d/net.eth1 start >

Re: [gentoo-user] Restart network interfaces over SSH

2006-07-29 Thread Todor Pirov
On Saturday 29 July 2006 12:25, Raymond Lewis Rebbeck wrote: > How about running the script in a screen session? Yes, "screen -d" is a solution. Thanks for the tip. Todor -- gentoo-user@gentoo.org mailing list

Re: [gentoo-user] Restart network interfaces over SSH

2006-07-29 Thread Raymond Lewis Rebbeck
On Saturday, 29 July 2006 18:50, Todor Pirov wrote: > Hello, > I have the following script which exchanges the IPs of two network > adapters: > > [code] > #!/bin/bash > > /usr/bin/cp /etc/conf.d/net-2 /etc/conf.d/net; > /etc/init.d/net.eth1 stop; > /etc/init.d/net.eth0 restart; > /etc/init.d/net.et

[gentoo-user] Restart network interfaces over SSH

2006-07-29 Thread Todor Pirov
Hello, I have the following script which exchanges the IPs of two network adapters: [code] #!/bin/bash /usr/bin/cp /etc/conf.d/net-2 /etc/conf.d/net; /etc/init.d/net.eth1 stop; /etc/init.d/net.eth0 restart; /etc/init.d/net.eth1 start [/code] and a similar one with "/usr/bin/cp /etc/conf.d/net-1