Re: restart network without shutdown

2007-08-08 Thread Jack Stone

From: Eric Crist <[EMAIL PROTECTED]>
To: Narek Gharibyan <[EMAIL PROTECTED]>
CC: freebsd-questions@freebsd.org, 'Xihong Yin' <[EMAIL PROTECTED]>
Subject: Re: restart network without shutdown
Date: Tue, 7 Aug 2007 10:42:11 -0500

Install screen from ports, run it from within screen.

You'll still get disconnected, but you should be able to reconnect  after 
it's done.  Screen will allow the script to complete, whereas  your ssh 
session is killing it half/part way through...


HTH

Eric Crist


On Aug 7, 2007, at 10:19 AMAug 7, 2007, Narek Gharibyan wrote:


I think the best way is

/etc/netstart

but when you try it via ssh connection it outputs an fatal error  and your
ssh hangs up. You cannot connect again via ssh.

But you can do it via console and everything will ok.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Xihong Yin
Sent: Tuesday, August 07, 2007 6:02 PM
To: freebsd-questions@freebsd.org
Subject: restart network without shutdown

How can I restart my network card without shutdown/reboot? I use DHCP.

Thanks,



When running a command from a remote connection & concerned about a 
disconnect, then run it via cron set to run within a few minutes.


Screen sounds good too -- never used that one.

HTH
Jack

_
See what you’re getting into…before you go there 
http://newlivehotmail.com/?ocid=TXT_TAGHM_migration_HM_viral_preview_0507


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: restart network without shutdown

2007-08-07 Thread Rakhesh Sasidharan




You'll still get disconnected, but you should be able to reconnect
after it's done.  Screen will allow the script to complete, whereas
your ssh session is killing it half/part way through...

HTH

Eric Crist


I'm generally a big screen advocate, but in this case, wouldn't nohup
work as well? And it's in base.


Exactly what I was wondering. Wouldn't nohup work as well?

Regards,
Rakhesh
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: restart network without shutdown

2007-08-07 Thread Erik Osterholm
> >-Original Message-
> > >From: [EMAIL PROTECTED]
> > >[mailto:[EMAIL PROTECTED] On Behalf Of Xihong Yin
> > >Sent: Tuesday, August 07, 2007 6:02 PM
> > >To: freebsd-questions@freebsd.org
> > >Subject: restart network without shutdown
> > >
> > >How can I restart my network card without shutdown/reboot? I use DHCP.
> > >
> > >Thanks,

> On Aug 7, 2007, at 10:19 AMAug 7, 2007, Narek Gharibyan wrote:
> >I think the best way is
> >
> >/etc/netstart
> >
> >but when you try it via ssh connection it outputs an fatal error  
> >and your
> >ssh hangs up. You cannot connect again via ssh.
> >
> >But you can do it via console and everything will ok.
> >

On Tue, Aug 07, 2007 at 10:42:11AM -0500, Eric Crist wrote:
> Install screen from ports, run it from within screen.
> 
> You'll still get disconnected, but you should be able to reconnect  
> after it's done.  Screen will allow the script to complete, whereas  
> your ssh session is killing it half/part way through...
> 
> HTH
> 
> Eric Crist

I'm generally a big screen advocate, but in this case, wouldn't nohup
work as well? And it's in base.

Erik

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: restart network without shutdown

2007-08-07 Thread Eric Crist

On Aug 7, 2007, at 12:11 PMAug 7, 2007, Rakhesh Sasidharan wrote:



Eric Crist wrote:


Install screen from ports, run it from within screen.

You'll still get disconnected, but you should be able to reconnect  
after it's done.  Screen will allow the script to complete,  
whereas your ssh session is killing it half/part way through...


HTH



Just curious -- how come screen works in such situations? I  
recollect someone else too recommending screen a few days ago  
(instead of "watch" to connect to another terminal) coz it doesn't  
get cut. The SSH session in which screen runs gets disconnected,  
but screen still works ... useful!




Screen can detach and run in the background.  Processes which start  
from within screen don't get killed, because, screen, the parent  
process, is still running.  The reason the script dies when you get d/ 
c'd is that your shell, the parent process, has died.


HTH

Eric Crist
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: restart network without shutdown

2007-08-07 Thread Rakhesh Sasidharan


Eric Crist wrote:


Install screen from ports, run it from within screen.

You'll still get disconnected, but you should be able to reconnect after it's 
done.  Screen will allow the script to complete, whereas your ssh session is 
killing it half/part way through...


HTH



Just curious -- how come screen works in such situations? I recollect 
someone else too recommending screen a few days ago (instead of "watch" to 
connect to another terminal) coz it doesn't get cut. The SSH session in 
which screen runs gets disconnected, but screen still works ... useful!


Regards,
Rakhesh
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: restart network without shutdown

2007-08-07 Thread Eric Crist

Install screen from ports, run it from within screen.

You'll still get disconnected, but you should be able to reconnect  
after it's done.  Screen will allow the script to complete, whereas  
your ssh session is killing it half/part way through...


HTH

Eric Crist


On Aug 7, 2007, at 10:19 AMAug 7, 2007, Narek Gharibyan wrote:


I think the best way is

/etc/netstart

but when you try it via ssh connection it outputs an fatal error  
and your

ssh hangs up. You cannot connect again via ssh.

But you can do it via console and everything will ok.

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Xihong Yin
Sent: Tuesday, August 07, 2007 6:02 PM
To: freebsd-questions@freebsd.org
Subject: restart network without shutdown

How can I restart my network card without shutdown/reboot? I use DHCP.

Thanks,

--
Get a free email address with REAL anti-spam protection.
http://www.bluebottle.com/tag/1

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions- 
[EMAIL PROTECTED]"


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "freebsd-questions- 
[EMAIL PROTECTED]"


___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: restart network without shutdown

2007-08-07 Thread Mohd Ghalib Akhtar
/etc/rc.d/init.d/network restart
 
Take care
Mohd.Ghalib Akhtar
(India.M)9899868681
(Africa.M) +255787896861 










- Original Message 
From: Narek Gharibyan <[EMAIL PROTECTED]>
To: Xihong Yin <[EMAIL PROTECTED]>
Cc: freebsd-questions@freebsd.org
Sent: Tuesday, August 7, 2007 6:19:09 PM
Subject: RE: restart network without shutdown


I think the best way is 

/etc/netstart 

but when you try it via ssh connection it outputs an fatal error and your
ssh hangs up. You cannot connect again via ssh.

But you can do it via console and everything will ok. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Xihong Yin
Sent: Tuesday, August 07, 2007 6:02 PM
To: freebsd-questions@freebsd.org
Subject: restart network without shutdown

How can I restart my network card without shutdown/reboot? I use DHCP.

Thanks,

--
Get a free email address with REAL anti-spam protection.
http://www.bluebottle.com/tag/1

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


  

Park yourself in front of a world of choices in alternative vehicles. Visit the 
Yahoo! Auto Green Center.
http://autos.yahoo.com/green_center/
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


RE: restart network without shutdown

2007-08-07 Thread Narek Gharibyan
I think the best way is 

/etc/netstart 

but when you try it via ssh connection it outputs an fatal error and your
ssh hangs up. You cannot connect again via ssh.

But you can do it via console and everything will ok. 

-Original Message-
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Xihong Yin
Sent: Tuesday, August 07, 2007 6:02 PM
To: freebsd-questions@freebsd.org
Subject: restart network without shutdown

How can I restart my network card without shutdown/reboot? I use DHCP.

Thanks,

--
Get a free email address with REAL anti-spam protection.
http://www.bluebottle.com/tag/1

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"

___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"


Re: restart network without shutdown

2007-08-07 Thread Doug Poland

Xihong Yin wrote:

How can I restart my network card without shutdown/reboot? I use DHCP.


try /etc/rc.d/netif restart

--
Regards,
Doug
___
freebsd-questions@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/freebsd-questions
To unsubscribe, send any mail to "[EMAIL PROTECTED]"