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]
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
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
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