Re: kill process when file number reached...

2008-07-02 Thread onlineviewer
On Jul 1, 9:02 pm, [EMAIL PROTECTED] (Jenda Krynicky) wrote: > To: [EMAIL PROTECTED] > From: onlineviewer <[EMAIL PROTECTED]> > Subject:kill process when file number reached... > Date sent: Tue, 1 Jul 2008 1

Re: print reference

2008-07-01 Thread onlineviewer
On Jun 30, 5:38 pm, [EMAIL PROTECTED] (Rob Dixon) wrote: > onlineviewer wrote: > > > Can someone tell me the proper syntax to print out the value in a > > reference? > > Thank you.,, > > I'm not sure what you mean. Look: > > > my $string = '

kill process when file number reached...

2008-07-01 Thread onlineviewer
Hello All, I am trying to run a tcpdump and have perl kill the tcpdump once 10 files have been created by the tcpdump. Here is my code, not sure...if my logic is screwy Thanks, system "tcpdump -i bge1 -s0 -w /tmp/file.out -C 1"; sleep 2; while(true){ @array1 = `ls -l /tmp | grep files`;

print reference

2008-06-30 Thread onlineviewer
Hello All, Can someone tell me the proper syntax to print out the value in a reference? Thank you.,, my $string = ''; open my $scalar_fh, '>>', \$string; my $log_message = "here is my string..."; print $scalar_fh $log_message; foreach my $fh ($scalar_fh ) { print "$fh"; } -- To unsu

dyndns perl iptable

2007-10-06 Thread onlineviewer
Hello, Does anyone have a working dyndns update script which can also update iptables with the new address it gets for the clients that will be connecting to the server...Basically i have a few clients (running the dyndns updater software) that connect to the server via ssh, so i would need the se