← Back to team overview

sslug-teknik team mailing list archive

Re: kopiering imellem 2 remote maskiner

 

2009/7/26 Anders Rosendal <rosendal@xxxxxxxxx>:
>> Jeg vil mene at du kan bruge nohup:
>> nohup scp -r <topdir> andenmaskine:<dest_dir>
>> for at få den ønskede effekt.
>
> http://en.wikipedia.org/wiki/Nohup
> Note that these methods prevent the process from being sent a 'stop' signal
> on logout, but if input/output is being received for these files, they will
> still hang the terminal
>
> Så der skal vel noget redirect output med på den kommando før det virker?
>

Nej, wikipedia må være forkert. Ifølge man-siden (og min erfaring):

If standard input is a terminal, redirect it from /dev/null.
 If standard output is a terminal, append output to ‘nohup.out’ if
possible, ‘$HOME/nohup.out’ otherwise.

If  standard  error  is  a  terminal,  redirect it to standard output.
 To save output to FILE, use ‘nohup COMMAND > FILE’.


References