[Perl-unix-users] wtmp

2003-06-09 Thread Mundell, R. \(Ronald\)
Title: wtmp Good Day All Is there a way one can process the wtmp file with perl Ronald Mundell   This email and any accompanying attachments may contain confidential and proprietary information.  This information is private and protected by law and, accordingly, if you are not th

[Perl-unix-users] Info: MAC

2003-06-09 Thread Mundell, R. \(Ronald\)
Title: Info: MAC Good Day All I would like to know if there is a perl module that could help me to resolve mac addresses to IP's Ronald Mundell   This email and any accompanying attachments may contain confidential and proprietary information.  This information is private and pro

[Perl-unix-users] Tree in Perl

2003-06-09 Thread Pragneshkumar Gandhi
Hi All I wanna to make 3/5 tree in perl Menas The depth of tree will be 5 and the max child of each node will be three. I just want some pelr module which will help me to create tree in perl add node del node traversal Etc pls guide me = Living on Earth may be expensive, but it includes an an

Re: [Perl-unix-users] URGENT: Scan a directory and ftp if thereare files

2003-06-09 Thread $Bill Luebkert
James Schappet wrote: > UNTESTED SAMPLE CODE > > > > #!/usr/bin/perl > net use Net::FTP > > > $DIRName = "/ftp/dir"; > > chdir $DIRName; > > @Files = glob *; > > $ftp = Net::FTP->new("HOST.DOMAIN.COM", Debug=>0); > $ftp->login("user", "password"); > $ftp->cwd("/remote/dir"); > foreach (@Fil

Re: [Perl-unix-users] URGENT: Scan a directory and ftp if thereare files

2003-06-09 Thread $Bill Luebkert
Martin Moss wrote: > Rather than using crontab, which is pretty much a pull method, why not use a > perl daemon process - to use push? I fail to see what crontab has to do with whether the operation is push or pull. The app is free to choose what method is appropriate and has no bearing on whether

Re: [Perl-unix-users] Sorting Flat list of Module Names into Tree structure

2003-06-09 Thread Rich Rauscher
The only problem is that this implementation requires the keys to be reverse sorted (longest to shortest-- remove the "reverse" on the sort and it breaks). To handle unordered names, try this (note: I eliminated the replication of parent hash node keys, as a personal preference): use strict; use

Re: [Perl-unix-users] URGENT: Scan a directory and ftp if there are files

2003-06-09 Thread Martin Moss
Rather than using crontab, which is pretty much a pull method, why not use a perl daemon process - to use push? my $error=0; while ($error <1) { sleep 5;#or more just make sure you have a sleep in there #&readdir #&ftp files #&delete files #if (some error) { $

RE: [Perl-unix-users] Perl code won't exe, only displays on screen

2003-06-09 Thread James Schappet
Add to following to you httpd.conf AddHandler cgi-script .pl Jimmy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Ryan Sent: Monday, June 09, 2003 1:12 PM To: [EMAIL PROTECTED] Subject: [Perl-unix-users] Perl code won't exe, only displays on scree

[Perl-unix-users] Perl code won't exe, only displays on screen

2003-06-09 Thread Ryan
I have a linux advanced server with perl 5.6.1 and my .pl scripts just show code on the screen. I am using apache and believe the problem may be within the httpd.conf file. Can anyone help? Thank you, Ryan ___ Perl-Unix-Users mailing list [EMAIL PROTECT

RE: [Perl-unix-users] URGENT: Scan a directory and ftp ifthere are files

2003-06-09 Thread Craig Sharp
Jimmy, The script works perfectly. I am not concerned with the ftp as the server is protected in a DMZ and address locked down to our customer. I modifed the script for my needs. I appreciate your help. I was in brain lock on how to do this. Thanks, Craig >>> "James Schappet" <[EMAIL PROTECT

RE: [Perl-unix-users] URGENT: Scan a directory and ftp if there are files

2003-06-09 Thread Thomas, Mark - BLS CTR
Craig Sharp wrote... > I need a example of scanning a directory on a scheduled basis > (crontab) for files. If there are files in the directory, > those files need to be ftp'ed to a server and then deleted > from the sending server. This is an automated incoming > mailbox for EDI and the data

RE: [Perl-unix-users] URGENT: Scan a directory and ftp if there are files

2003-06-09 Thread James Schappet
Now with sample code in-hand. Don't use FTP. FTP is insecure and should not be used. Take a look at using SSH/SCP. There are perl modules for SCP, but I think that would be over kill a simple shell or perl script would do. Jimmy -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAI

RE: [Perl-unix-users] URGENT: Scan a directory and ftp if there are files

2003-06-09 Thread James Schappet
UNTESTED SAMPLE CODE #!/usr/bin/perl net use Net::FTP $DIRName = "/ftp/dir"; chdir $DIRName; @Files = glob *; $ftp = Net::FTP->new("HOST.DOMAIN.COM", Debug=>0); $ftp->login("user", "password"); $ftp->cwd("/remote/dir"); foreach (@Files) { $ftp->put($_); } $ftp->quit; foreach (@Files

[Perl-unix-users] URGENT: Scan a directory and ftp if there are files

2003-06-09 Thread Craig Sharp
Hi all, I need a example of scanning a directory on a scheduled basis (crontab) for files. If there are files in the directory, those files need to be ftp'ed to a server and then deleted from the sending server. This is an automated incoming mailbox for EDI and the data needs to be transfered wh