Re: Clear command in perl?

2003-01-03 Thread be.gomes
the system "clear" command merely echo's 2 escape sequences to screen, which are very easy to do by hand. This is idential to what clear does: print "\e[H\e[2J"; -gomes -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]

Re: obtaining a process ID.

2002-12-13 Thread be.gomes
Thanks all for the suggestions. Looks like I'm stuck using the ps command. I'm writing this script on an appliance system with very limited perl modules loaded (can't load more because it needs to work on the appliance as it is shipped). I appreciate the feedback. -gomes On Thu, 12 Dec 2002

Re: obtaining a process ID.

2002-12-12 Thread be.gomes
I am familiar with ps, this is how I am currently getting the process ID: #!/usr/bin/perl -w use strict; my $pid = `ps -axo pid,ucomm |grep proxyd|cut -f 1 -d \"p\"`; But I was wondering if anyone new another means of doing so. Thanks. -gomes On Thu, 12 Dec 2002 13:24:20 +0530 Ramprasad A Pad

syslog output parsed by a perl script

2002-10-08 Thread be.gomes
All, I'm looking for suggestions on how I can accomplish running a perlscript to e-mail me when a certain log condition is met. My idea is that I will call the perlscript from syslog.conf: local2.* |exec /sbin/perlscrip.pl How do I get perl to take input from syslogd? How would I make sure th