[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: Auf neue IP wechseln



Florian Lackert:
> Am Dienstag 08 Dezember 2009 18:06:00 schrieb Bernhard Hammes:
> 
>>> Muss ich nicht noch irgendwas neu starten, damit die Änderungen auch
>>> wirksam werden? Wie geht das?
>> 
>> /etc/init.d/networking restart
> 
> Das nun bloß nicht !!! 

Multiple exclamation marks are a sure sign… :)

> Wenn überhaupt dann
> /etc/init.d/networking restart > /dev/null 2>&1 &.

Ich verstehe ja grundsätzlich, worauf Du hinauswillst: wenn man das per
SSH macht und dabei das Interface, über das man mit dem Rechner redet,
eine andere IP-Adresse bekommt, dann ist die Verbindung weg und das
Kommando bricht u.U. ab.

Deine Lösung ist aber keine. Die Ausgabeumleitung ändert genau gar
nichts und das '&' am Ende verhindert auch nicht, dass der Prozess mit
der Shell stirbt. Richtig macht man sowas mit nohup oder screen.

J.
-- 
Ultimately, the Millenium Dome is a spectacular monument of the
doublethink of our times.
[Agree]   [Disagree]
                 <http://www.slowlydownward.com/NODATA/data_enter2.html>

Attachment: signature.asc
Description: Digital signature


Reply to: