usare il comando strace per vedere le syscall?
root@Maciste root # strace -p 12705
Process 12705 attached - interrupt to quit
select(6, [5], NULL, NULL, {39, 640000}) = 0 (Timeout)
select(6, [5], NULL, NULL, {60, 0}) = 0 (Timeout)
select(6, [5], NULL, NULL, {60, 0}) = 0 (Timeout)
select(6, [5], NULL, NULL, {60, 0}) = 0 (Timeout)
select(6, [5], NULL, NULL, {60, 0}) = 0 (Timeout)
select(6, [5], NULL, NULL, {60, 0}) = 1 (in [5], left {56, 700000})
--- SIGCHLD (Child exited) @ 0 (0) ---
wait4(-1, [{WIFEXITED(s) && WEXITSTATUS(s) == 1}], WNOHANG, NULL) = 12706
wait4(-1, 0xbfffedc4, WNOHANG, NULL) = -1 ECHILD (No child processes)
sigreturn() = ? (mask now [])
read(5, "", 4) = 0
write(2, "rsync: connection unexpectedly c"..., 60) = 60
rt_sigaction(SIGUSR1, {SIG_IGN}, {0x8051eb0, [USR1],
SA_RESTORER|SA_RESTART, 0x40063078}, 8) = 0
rt_sigaction(SIGUSR2, {SIG_IGN}, {0x8051ee0, [USR2],
SA_RESTORER|SA_RESTART, 0x40063078}, 8) = 0
wait4(12706, 0xbffff088, WNOHANG, NULL) = -1 ECHILD (No child processes)
getpid() = 12705
kill(12706, SIGUSR1) = -1 ESRCH (No such process)
write(2, "rsync error: error in rsync prot"..., 72) = 72
exit_group(12) = ?
Process 12705 detached
Scusate l'ignoranza ma a me non dice poi molto tranne che non riesce a
collegarsi e va' in timeout....
Evidentemente sbaglio qualcosa io nella sintassi o non so.
Il comando dato era:
rsync -e "ssh -p 3300" --rsync-path='/usr/bin/sudo /usr/bin/rsync' -av
mammoccio@xxxxxxxxxxx:/home /Backup/PORTALE
Saluti
Vito
|