Re: [Perl-unix-users] To find number of times each script is used.

2004-04-06 Thread Travis Hoyt
Sounds like what you need is an IDS (intrusion detection) agent.  Since they constantly watch file access and modification you could set them to trigger a counter of some type.  If you're wanting to do this with Perl it would be difficult unless you essentially wrote and IDS agent in Perl.  Cron is

Re: [Perl-unix-users] Parallel Command Execution

2003-12-10 Thread Travis Hoyt
Wouldn't the fork() command handle this?wjnorth <[EMAIL PROTECTED]> wrote: Group,This will probably be an easy question. I have a script that takes a comma delimited string of IP addresses as an argument and then proceeds to nmap port scan each IP address. The problem is, I don't want to loop throu

RE: [Perl-unix-users] Removing files older than 10 days from a directory

2003-11-07 Thread Travis Hoyt
Here's our version for Oracle being backed up by Veritas NetBackup. I tried to just cut and paste this but it isn't keeping the tabbing right.  I'll upload it as a text attachment. Our version is more complicated than previous versions offered but there is a great deal more accounted for with t

Re: [Perl-unix-users] Removing files older than 10 days from a directory

2003-11-07 Thread Travis Hoyt
find /path/to/dir -mtime +30 -exec rm '{}' \; however in some cases you may want to use perl to do this. if removing the files is part of a larger perl effort using the system or exec function to call find could consume more resources than using native perl calls. if you want to do it all in

Re: [Perl-unix-users] RE: Net::Telnet and Term Type

2003-07-21 Thread Travis Hoyt
Can you just put the environment variable into the account you're logging into? Even if you are running some pre-defined menu you can still have it run the .profile for the account which will set the TERM type for you. On Monday, July 21, 2003, at 09:38 AM, Andrew Timberlake-Newell wrote: Norma