If you dont understand my question then I assume you do not know unix or tail -f ? I want to after a sleep of 5-8 seconds, send a kill signal to the previous command then increment the counter. thank you!
Derek B. Smith OhioHealth IT UNIX / TSM / EDM Teams Bob Showalter <[EMAIL PROTECTED]> 05/07/2004 10:57 AM To: "'[EMAIL PROTECTED]'" <[EMAIL PROTECTED]>, Beginners Perl <[EMAIL PROTECTED]> cc: Subject: RE: process signals [EMAIL PROTECTED] wrote: > I have an application system command that is like tail -f in UNIX and > I want to say > > x=1 > while x < 10 > do > 'command' append to log > print "\n" append to log > issue HANGUP or KILL SIGNAL > x+=1 > done > > How do I issue a hangup signal to this process using perl? I'm not sure I understand your problem, but the perl way to send a signal is with the kill() function. The way to catch a signal is by installing a handler using the %SIG hash. perldoc -f kill perldoc perlipc