![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| Shell Programming and Scripting Post questions about KSH, CSH, SH, BASH, PERL, PHP, SED, AWK and OTHER shell scripts and shell scripting languages here. |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| rsh connection problem | ravi raj kumar | Shell Programming and Scripting | 1 | 02-08-2008 09:00 AM |
| ftp connection problem | krishna176 | SUN Solaris | 2 | 03-24-2007 03:16 PM |
| rsh problem connection refused | Mace | Shell Programming and Scripting | 4 | 06-12-2006 10:28 PM |
| FTP connection problem on new server | miredale | UNIX for Dummies Questions & Answers | 1 | 10-04-2002 06:42 AM |
| FTP connection problem | cassy | IP Networking | 11 | 09-09-2002 05:28 PM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
||||
|
FTP connection problem
I am getting the error in this command when i am pitting it in shell script
HTML Code:
ftp -nvi jcmpcor1.abc.com >/work/test98.dat << EOD error:- invalid command. but when i am writting it from outside it work fine. |
|
||||
|
after that
#Authenticate the user #user $username $password user odsftp ods123$ #Change FTP mode to binary bin #echo "mode changed to binary" #Change local directory #lcd $localDir lcd /work/tt #Change remote directory to directory where source files are present #cd $remoteDir cd /apps/RStuff/ecm/amazon/adw/incoming/ #echo pwd #echo "Directory changed ..." #FTP all files to local directory with the specified filename format #echo $remoteDir #mget $strfilename cp dq1234 /work/ #echo $strfilename #echo `wc -l $localDir/$strfilename` #Close FTP connection close bye EOD |
|
||||
|
wat should in place of cp
|
| Sponsored Links | ||
|
|