develooper Front page | perl.beginners | Postings from April 2002

Problem with system provided utilities

April 27, 2002 02:08
Problem with system provided utilities
Message ID:

I have 2 problems with system utility.

1. If a process is started by system, then, when a process is killed, child
process still remains.
2. When output of the process is redirected to a file, file does not get
updated util process dies.

This problem is there on Linux and windows as well.

Can any body help me please?

1. when (perl - see below) is killed, tcpdump process, started by still remains.
2. until (perl and tcpdump - see below) is killed, output file is
not updated.

system("tcpdump -i");

# ends;
#! /usr/bin/perl
system("tcpdump -i > output");

#ends; Perl Programming lists via nntp and http.
Comments to Ask Bjørn Hansen at | Group listing | About