Hi
Using Luke Bakkens reply

>If you can't install Net::FTP, the following works with the ftp.exe
>program on NT to get the file /tmp/frazzle in binary mode:
>
>open FTP, "> tmpftp.$$";
>print FTP <<EOF;
>$username
>$password
>bin
>get /tmp/frazzle
>bye
>EOF
>close FTP
>system "ftp -s:tmpftp.$$ $hostname";
>unlink tmpftp.$$
>
>on unix, the system call would be this i believe:
>system "ftp $hostname < tmpftp.$$";
>
>good luck
>Luke

I went and did the following, but I'm not at all sure what I have really
done and why it works.
Can someone, explain please? It is Sun/Unix that this is running on.
& username and p/w are setup for my user account to allow me to ftp 
to certain other boxes.

<snip>
my $ftp_cmds;

    $ftp_cmds =
            "bin\n"
            ."hash\n"
            ."cd /opt/sdnm/install/releases\n"
            ."mkdir $rel_number\n"
            ."cd $rel_number\n"
            ."lcd /opt/sdnmbuild2/releases/$rel_number\n"
            ."put release_sdnm_$rel_number.tar\n"
            ."bye\n";

    system("ftp $hostname  << $ftp_cmds");


Thanks 

Jim



-- 
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to