Google
  Web www.spinics.net

Upload file to FTP Server in %post

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]


Hi All,

I am using RHEL 5.2 and within my %post, I would like to upload a file to an anonymous enabled FTP server.

Here's what I am doing.

%post
     cat <<NETRC > /root/.netrc
machine <SERVER_IP>
login anonymous
password ^M
NETRC

     ftp -i <SERVER_IP> <<EOF
put /root/${TAR_FILE_NAME}.gpg system_to_rebuild/<HOSTNAME>/${TAR_FILE_NAME}.gpg
quit
EOF

I am not sure what went wrong here.  When I run this scriptlet standalone in a shell, it runs successfully.
However when run within Anaconda, it doesn't work.  I couldn't see the file being uploaded to my FTP server.

Any idea?

Thanks,

David
_______________________________________________
Kickstart-list mailing list
Kickstart-list@xxxxxxxxxx
https://www.redhat.com/mailman/listinfo/kickstart-list

[Home]     [Fedora Users]     [Fedora Legacy]     [Fedora Maintainers]     [Fedora Desktop]     [Fedora SELinux]     [Big List of Linux Books]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]

Powered by Linux

Google
  Web www.spinics.net