Il 26/11/2016 18:52, Micky Del Favero ha scritto: > Gelpi Andrea <[email protected]> writes: > >> Per motivi che non riesco a comprendere se lancio da php: >> >> proc_open("ssh host 'mbuffer -I 9090 | zfs receive tank/datasore &', ... >> >> Non funziona. > > Forse mandando il processo in background questo ritorna subito e non fa > nulla, un po' come fare ssh host 'cat &' che ritorna subito mentre ssh > host cat rimane attivo, se non mandi mbuffer... in background cambia > qualcosa? e se mandi ssh in background invece? > > Ciao, Micky > ssh lancia i due comandi e poi rimane in attesa della chiusura di mbuffer, anche se la comunicazione successiva non passa da ssh. Per questo ho messo ssh in background, in modo che chiuda subito, lasciando attivi i due comandi. Se non metto in background i due comandi ssh non chiude e il programma non prosegue. Idem se non metto in background anche ssh.
-- Gelpi ing. Andrea -------------------------------------------------------------- It took the computing power of three C-64s to fly to the Moon. It takes a 486 to run Windows 95. Something is wrong here. -------------------------------------------------------------- ________________________________________________________ http://www.sikurezza.org - Italian Security Mailing List
