03-04-2008
I suggest using Perl for this. You can control everything much more than you can with these clumsy redirection and netrc methods.
See
Perl Net::FTP for details and sample scripts.
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi,
How to unzip and file which FTP'ed from Windows box?
File name is ABC.ZIP
I tried unzip and gunzip -S .ZIP ABC.ZIP
i am getting following error
gunzip: ABC.ZIP: unknown suffix -- ignored
Any info is appreciated!
~t (10 Replies)
Discussion started by: terala_s
10 Replies
2. UNIX for Dummies Questions & Answers
I have a directory (and many sub dirs beneath) on AIX system, containing thousands of file. I'm looking to get a list of all directory containing "*.pdf" file.
I know basic syntax of find command, but it gives me list of all pdf files, which numbers in thousands. All I need to know is, which... (4 Replies)
Discussion started by: r7p
4 Replies
3. Shell Programming and Scripting
hi everyone,
can someone suggest how i can list the contents of a directory and display their corresponding last modify time in the format yyyymmddhhmm?
thanks in advance! (16 Replies)
Discussion started by: Deanne
16 Replies
4. Shell Programming and Scripting
Hi,
The scenario which I am describing here is strange but not a product of my imagination!
I have a SFTP script which gets file from remote server to a local directory say (/home/dips/ftp/my_files) inside my_files/ there's another sub-dir archive/
The strange scenario is that once... (1 Reply)
Discussion started by: dips_ag
1 Replies
5. Programming
stupid question (0 Replies)
Discussion started by: puttster
0 Replies
6. HP-UX
Hi,
I am trying to list the year for this folder but it does not show.
See output:
==> ls -ltrde default
drwxr-xr-x 2 bea /tmp 8192 Jul 10 22:56 default
Any reasons ?
Instead of showing year it shows 22:56. Why ? (1 Reply)
Discussion started by: mohtashims
1 Replies
7. Shell Programming and Scripting
Hi All,
I need to find all files other than first two files dates & last file date for month and month/year wise list.
lets say there are following files in directory
Mar 19 2012 c.txt
Mar 19 2012 cc.txt
Mar 21 2012 d.txt
Mar 22 2012 f.txt
Mar 24 2012 h.txt
Mar 25 2012 w.txt
Feb 12... (2 Replies)
Discussion started by: Makarand Dodmis
2 Replies
8. Shell Programming and Scripting
Hi All,
I need to merge few files as belowABC_NYFWFX.txt
ABC_NYFQTFX.txt
ABC_NYFMAFX.txt
ABC_NYFAVFX.txt
ABC_CYFWFX.txt
ABC_CYFQTFX.txt
ABC_CYFMAFX.txt
ABC_CYFAVFX.txt
ABC_CYBWFX.txt
ABC_NYFWFX.txt & ABC_CYFWFX.txt should be merged into a single file and name should be... (3 Replies)
Discussion started by: Hypesslearner
3 Replies
9. Red Hat
Hello Friends,
I have observed one recent issue about ftp from windows to Linux.
Initially we had Solaris unix and any file sent from windows to solaris via ftp (binary or ascii) worked smoothly.
Say for e.g if I sent a shell script to soalris from windows, that script used to run corectly.... (17 Replies)
Discussion started by: Albert_Pinto7
17 Replies
10. Shell Programming and Scripting
hi,
I have a log file with data for more than 3 years, i want only the rows for the year 2017, say for example.
My file has the data like this
08-OCT-2015 11:17:35 AAA, BBBB
08-OCT-2017 11:17:35 AAA,Bdfdfd,dfdfd,dfd
08-Nov-2017 11:17:35 AAA,Bdfdfd,dfdfd,deree
i want the rows... (2 Replies)
Discussion started by: skoshekay
2 Replies
LEARN ABOUT DEBIAN
net::inet6glue
Net::INET6Glue(3pm) User Contributed Perl Documentation Net::INET6Glue(3pm)
NAME
Net::INET6Glue - Make common modules IPv6 ready by hotpatching
SYNOPSIS
use Net::INET6Glue; # include all glue
use LWP;
use Net::SMTP;
use Net::FTP;
..
DESCRIPTION
Net::INET6Glue is a collection of modules to make common modules IPv6 ready by hotpatching them.
Unfortunatly the current state of IPv6 support in perl is that no IPv6 support is in the core and that a lot of important modules (like
Net::FTP, Net::SMTP, LWP,...) do not support IPv6 even if the modules for IPv6 sockets Socket6, IO::Socket::INET6 are available.
This module tries to mitigate this by hotpatching. Currently the following submodules are available:
Net::INET6Glue::INET_is_INET6
Makes IO::Socket::INET behave like IO::Socket::INET6, especially make it capable to create IPv6 sockets. This makes LWP, Net::SMTP and
others IPv6 capable.
Net::INET6Glue::FTP
Hotpatches Net::FTP to support EPRT and EPSV commands which are needed to deal with FTP over IPv6. Also loads
Net::INET6Glue::INET_is_INET6.
COPYRIGHT
This module and the modules in the Net::INET6Glue Hierarchy distributed together with this module are copyright (c) 2008, Steffen Ullrich.
All Rights Reserved. These modules are free software. They may be used, redistributed and/or modified under the same terms as Perl itself.
perl v5.12.3 2011-08-27 Net::INET6Glue(3pm)