cr + tar
From: Olivier Wirz (Olivier6_at_gmx.ch)
Date: 03/26/04
- Next message: Randy W. Sims: "Re: Home made mail news search tool, and folded header lines"
- Previous message: James Edward Gray II: "Re: why warn 'prints'?"
- Next in thread: Wc -Sx- Jones: "Re: cr + tar"
- Reply: Wc -Sx- Jones: "Re: cr + tar"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Date: Fri, 26 Mar 2004 18:18:01 +0100 (MET) To: beginners@perl.org
Hello,
On Windows NT works following script to create a tar file and then transfer
it on a AIX machine.
#####
# Create tar file
#####
my $tar = Archive::Tar -> new;
$tar -> add_files(@files_to_tar);
$tar -> write ($opt_tar_file);
#####
# Start FTP-Transfer (to be done with variables)
#####
my $ftp = Net::FTP -> new("ahost", Debug => 1) or die "Connecting error:
$@";
$ftp -> login("user",'pass') or die "Cannot login ", $ftp -> message;
$ftp -> cwd("/tmp/install/") or die "Cannot change working directory ", $ftp
-> message;
$ftp -> binary;
$ftp -> put($opt_tar_file) or die "Cannot put ", $ftp -> message;
$ftp -> quit;
On AIX, after tar -xvf, I have the <cr> problem. Is it a way to avoid the
<cr> ? Thank you.
Olivier
-- +++ NEU bei GMX und erstmalig in Deutschland: TÜV-geprüfter Virenschutz +++ 100% Virenerkennung nach Wildlist. Infos: http://www.gmx.net/virenschutz
- Next message: Randy W. Sims: "Re: Home made mail news search tool, and folded header lines"
- Previous message: James Edward Gray II: "Re: why warn 'prints'?"
- Next in thread: Wc -Sx- Jones: "Re: cr + tar"
- Reply: Wc -Sx- Jones: "Re: cr + tar"
- Messages sorted by: [ date ] [ thread ] [ subject ] [ author ]
Relevant Pages
|
|