[PLUG] FTP script :perl

Lemseffer. Tahar (SDA) lemseffert at sacsewer.com
Thu Aug 5 16:37:41 UTC 2010


Any ideas
thanks

-----Original Message-----
From: plug-bounces at lists.pdxlinux.org
[mailto:plug-bounces at lists.pdxlinux.org] On Behalf Of Lemseffer. Tahar
(SDA)
Sent: Wednesday, August 04, 2010 1:54 PM
To: General Linux/UNIX discussion and help;civil and on-topic
Subject: Re: [PLUG] FTP script :perl

This SCRIPT  WORKS FOR ONE REPORTS AT THE TIME, I WANT TO BE ABLE TO
ENTER BEGENNING DAY , ENDING DAY , AND A MONTH ON THE COMAND LINE AND
GET ALL THE REPORTS BETEWEEN THAT DATE sent to another server.
use Sys::Syslog;
$subtowing_source = '/source directories
$subtowing_destination = '/destination directories 
$command = '/xx/zz/vv/ftp_report.pl  # this ftp script is used to send
file by file
$program = $0;
$logopt = 'cons, pid;
$facility = ' HSR';
openlog($program, $logoopt, $facility);
@args= ($command,$subtowing_source, $subtowing_destination);
print @args;
unless (system (@args) == o) {
syslog('LOG_ALERT|LOG_LOCAL', 'FAILED TO SEND %S TO ETC,
$subtowing_source)
DIE():
}
Closelog

Thanks for your help

-----Original Message-----
From: plug-bounces at lists.pdxlinux.org
[mailto:plug-bounces at lists.pdxlinux.org] On Behalf Of Aaron Burt
Sent: Wednesday, August 04, 2010 1:18 PM
To: plug at lists.pdxlinux.org
Subject: Re: [PLUG] FTP script :perl

On Wed, Aug 04, 2010 at 12:21:20PM -0700, Lemseffer. Tahar (SDA) wrote:
> Does anyone knows more about ftp script in Perl?

Hello down there in sunny Sacramento!

The answer to your question is: Yes.

You might consider asking a better question.
http://catb.org/esr/faqs/smart-questions.html

_______________________________________________
PLUG mailing list
PLUG at lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug
________________________________________________________________________
____
EMAIL DISCLAIMER:
This email and any attachments thereto may contain private,
confidential, and
privileged material for the sole use of the intended recipient. Any
review,
copying, or distribution of this email (or any attachments thereto) by
other
than the intended recipient is strictly prohibited.

If you are not the intended recipient, please contact the sender
immediately
and permanently delete the original and any copies of this email and any
attachments thereto.
________________________________________________________________________
_____

_______________________________________________
PLUG mailing list
PLUG at lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug



More information about the PLUG mailing list