Dear All,
My ftp batch script is unable to call batch file in linux.
Scripts is as below -
[quote]oracle:/usr/dp_dir>cat test.sh
cd /usr/dp_dir
echo open 192.168.30.16>ftp.txt
echo ftpuser>>ftp.txt
echo Cmcftp#1234>>ftp.txt
echo cd />>ftp.txt
echo cd /FTPUSER/inter_loc_dump/uiicdev_39_57>>ftp.txt
echo put expdp_dms.dmp.gz>>ftp.txt
echo bye>>ftp.txt
ftp -v -s:ftp.txt[/quote]
While running the script, getting the below error -
[quote]oracle:/usr/dp_dir>sh test.sh
ftp: s: unknown option
Usage: ftp [-v] [-d] [-i] [-n] [-g] [-k realm] [-f] [-x] [-u] [-t] [host][/quote]
please assist me how to rectify this error?
Regards,
Ashish Kumar Mahanta
unable to call batch file thorugh ftp in linux server
-
- Posts: 1
- Joined: Tue Oct 14, 2014 5:01 am