cr + tar

From: Olivier Wirz (Olivier6_at_gmx.ch)
Date: 03/26/04


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


Relevant Pages

  • RE: Secure FTP setup on SBS 2003 for external site backup
    ... If you *absolutely have to* install some kind of FTP service on SBS 2003, ... built-in IIS FTP service (which uses Domain users to authorize in clear text, ... > will take this tar file and restore the site. ...
    (microsoft.public.windows.server.sbs)
  • Re: file is realy a pipe
    ... >> I have to upload the tar file and run the script on many machines. ...
    (comp.os.linux.misc)
  • Re: expect spawn and gpg
    ... >I have a expect script which encrypt a tar file with a password. ... >expect eof ... >However, If the tarfile is 1.2GB, the spawn seems to have exited ...
    (comp.lang.tcl)
  • Re: tar for backup
    ... I have a script that make a backup of the folder mail. ... I would like that the old file that is in the old .tar file are ... > my ISP disk space, if we had a fire the backup tape would be useless. ...
    (Fedora)
  • Re: find+tar+
    ... Change the tar file to your tape drive. ... Here is how I ran the script: ... echo $0 started at $. ...
    (comp.unix.shell)