'No Matches' error in FTP


 
Thread Tools Search this Thread
Top Forums UNIX for Dummies Questions & Answers 'No Matches' error in FTP
# 1  
Old 10-17-2012
'No Matches' error in FTP

Hi,

I am trying to execute a script as below

I am trying to connect to a server through a secure connection and then type the command as below

Code:
/usr/local/bin/sftp -t 2800 $REMOTE_SERVER $REMOTE_USER  <<EOD > $MAINDATA/FTPLog

              cd $HOME_DOWNLOAD
              ls `echo $1 | cut -d"." -f1`*.xml

after executing this script , in the out put file I have created as FTPLog i got a message that

Code:
error message 'No matches'

i have checked that all the ftp connections are working fine. Could you please advise why this mesage is coming up. If am doing something wrong.?
# 2  
Old 10-17-2012
Perhaps the case or some part of your file name generator is missing the files up there? Make a copy of your input, try an ls with wild cards just to see what it sees.
# 3  
Old 10-17-2012
Quote:
Code:
/usr/local/bin/sftp -t 2800 $REMOTE_SERVER $REMOTE_USER  <<EOD > $MAINDATA/FTPLog

What is between your beginning 'here' tag(i.e. <<EOD) and the closing 'here' tag(i.e. EOD)?
# 4  
Old 10-18-2012
My sftp has a different man page, "user@host" not "host user", no -t: Man Page for sftp (linux Section 0) - The UNIX and Linux Forums

I assumed the EOD was down below, as cd and ls are ftp-legal and << expands `cmd`.
 
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

FTP a file if the date matches

Hi, I am trying to write a script where I need to pull any file if the date is from yesterday. Can you please help me on how to check the dates for the files on the remote server? Please let me know for any questions. Thanks Ajay (4 Replies)
Discussion started by: ajayakunuri
4 Replies

2. Shell Programming and Scripting

Help with FTP Script which is causing "syntax error: unexpected end of file" Error

Hi All, Please hav a look at the below peice of script and let me know if there are any syntax errors. i found that the below peice of Script is causing issue. when i use SFTP its working fine, but there is a demand to use FTP only. please find below code and explain if anything is wrong... (1 Reply)
Discussion started by: mahi_mayu069
1 Replies

3. Shell Programming and Scripting

Compare 2 files and print matches and non-matches in separate files

Hi all, I have two files, chap.txt and complex.txt. chap.txt looks like this: a d l m r k complex.txt looks like this: a c d e l m n j a d l p q r c p r m ......... (7 Replies)
Discussion started by: AshwaniSharma09
7 Replies

4. IP Networking

FTP error

Hi, While doing FTP am getting an error like Connected to xxxx (xxxx). 220 (vsFTPd 2.0.5) Name (xxxx:nn): yy 331 Please specify the password. Password: 230 Login successful. Remote system type is UNIX. Using binary mode to transfer files. ftp> dir */*/*/*.zip 227 Entering Passive... (6 Replies)
Discussion started by: weknowd
6 Replies

5. AIX

FTP error

While doing ftp I am getting below error. Plz help how to resolve this? OOPS: close OOPS: child died No control connection for command: Error 0 No control connection for command: Error 0 No control connection for command: Error 0 No control connection for command: Error 0 No control... (2 Replies)
Discussion started by: suresh3566
2 Replies

6. Shell Programming and Scripting

FTP Error 553 I/O error.

Hi All, I have a problem when uploading txt file from windows to Unix server. I got 533 I/O error. I am using .bat file and it works for other batches but with this particular batch it doesn't work. thanks guys for helping in advance. (2 Replies)
Discussion started by: sfaqih
2 Replies

7. Shell Programming and Scripting

error with ftp

Hi I have like this ---------------------------------- echo "Enter ip " read ans_ip echo "Enter environment" read ans_env echo "Enter Datacenter " read ans_dc loop() { ftp -v -n hostname << EOF user user pwd bin prompt (4 Replies)
Discussion started by: coolkid
4 Replies

8. Shell Programming and Scripting

error in ftp

we have a ftp site hosted on our Unix server side. We have given the ftp user credentials to the Windows server people and have asked them to transfer a test file from their side to us to dataset a/b/test. But when they try ftpying the files to the unix server they are able to connect to the server... (2 Replies)
Discussion started by: venkidhadha
2 Replies

9. Shell Programming and Scripting

error in ftp

Hi, I am having a file in an ftp server.When i ftp it to my aix machine( either by in binary or ascii ) i am get the follwoing content. ≡±╓┘┴╙@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@Γ@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@≡≥╔╒╤┼├π╔╓╒@@@@@@@@@@@@@@@@@@@@@@@@... (3 Replies)
Discussion started by: sam99
3 Replies

10. UNIX for Dummies Questions & Answers

ftp error

All, I am getting the following error while I am trying to ftp a file. I am able to log into the destination server. But, when I try to put the file, I get the following error: 426 Connection closed; transfer aborted. Any ideas are appreciated. ThankYou, Radhika. (1 Reply)
Discussion started by: radhika
1 Replies
Login or Register to Ask a Question