On Tuesday 17 May 2005 15:09, Radu Radoveneanu wrote: > am un > # ping gw > /tmp/ping.log & > ce ruleaza bine merci > > [root:pts/1][/etc/cron.daily]# killall -s SIGQUIT ping > 136/136 packets, 0% loss, min/avg/ewma/max = 0.304/0.507/0.395/9.340 ms > [root:pts/1][/etc/cron.daily]# killall -s SIGQUIT ping > /tmp/ping.log2 > 152/152 packets, 0% loss, min/avg/ewma/max = 0.304/0.497/0.423/9.340 ms > [root:pts/1][/etc/cron.daily]# cat /tmp/ping.log2 > [root:pts/1][/etc/cron.daily]# > > cum fac sa "prind" output-ul de la killall intr-un fisier ?
Heh, partea frumoasa e ca nu e vorba de output-ul lui killall ci al lui ping. ping-ul e cel care intercepteaza SIGQUIT si afiseaza pe stderr linia respectiva asa ca trebuie sa faci o chestie de genul: # ping gw >/tmp/log1 2>/tmp/log2 & # killall -s SIGQUIT ping # cat /tmp/log2 Mihai -- This message was scanned for spam and viruses by BitDefender. For more information please visit http://linux.bitdefender.com/ --- Detalii despre listele noastre de mail: http://www.lug.ro/
