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

[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

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

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] 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] 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 (@Files) { $ftp-put($_); }

[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

[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