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
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
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
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
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
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
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)
{
$
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
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
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
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
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
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
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
14 matches
Mail list logo