Computing.Net > Forums > Unix > ftp / unix script

Computer Problems? Computing.Net has over 1,000,000 posts about all things technology related! Over 90% answered within 24 hours! Click here to start participating now! Also, be sure to check out the New User Guide.

ftp / unix script

Reply to Message Icon

Name: vasco
Date: February 26, 2003 at 12:36:57 Pacific
OS: HP/UX
CPU/Ram: dont know
Comment:

i need some help
i have a little script that uses ftp to send some files from my unix (HPUX) to another unix (HPUX). what i need is a way to check if the "put" command was successeful and print a message if it wasn't. heres what i use:

echo "File to send: \c"
read nFile
echo
(
echo "open "hostname""
echo "user "uid" "pid""
echo "binary"
echo "put "$nFile""
echo "bye"
) > temp.ftp
ftp -v -n -i temp.ftp
exit

I need to check in remote system if the file is in there without any problems.
this works well just don't know how to check that
thanks




Sponsored Link
Ads by Google

Response Number 1
Name: neel
Date: February 27, 2003 at 06:35:59 Pacific
Reply:

Vasco,
I think rather than using FTP you can use the command "rcp".

thanks,
~ Neel !!!


0
Reply to Message Icon

Related Posts

See More


awk and t utility proble... Upgrade Solaris 6 to Sola...



Post Locked

This post is quite old and has been locked from receiving new replies. Please create a new posting instead.


Go to Unix Forum Home


Sponsored links

Ads by Google


Results for: ftp / unix script

Writing a Unix script to ftp files www.computing.net/answers/unix/writing-a-unix-script-to-ftp-files/3934.html

FTP / unix script www.computing.net/answers/unix/ftp-unix-script/4693.html

Unix Script ignoring cmd line vars www.computing.net/answers/unix/unix-script-ignoring-cmd-line-vars/6193.html