'No Matches' error in FTP

Thread Tools Search this Thread
# 1  
'No Matches' error in FTP


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

/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

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  
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  
/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  
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`.

Previous Thread | Next Thread
Thread Tools Search this Thread
Search this Thread:
Advanced Search

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. 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

5. UNIX for Advanced & Expert Users

FTP error

Hi Guys, Unable to FTP random files. Getting the following error message Net::FTP=GLOB(0x88c4c88)>>> ALLO 21754200 Net::FTP=GLOB(0x88c4c88)<<< 202 ALLO command ignored. Net::FTP=GLOB(0x88c4c88)>>> PORT 11,160,36,109,135,42 Net::FTP=GLOB(0x88c4c88)<<< 200 PORT command successful.... (1 Reply)
Discussion started by: gauravgoel83
1 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

ftp error

While log in to ftp server with valid username & password I receive the following error. Please advice. ftp: Login failed. ftp: bind: Address already in use cat .netric machine hostnameofmachine login username password passwordstring .netric file set to chmod 0600 $HOME/.netrc (1 Reply)
Discussion started by: zooby
1 Replies

8. Shell Programming and Scripting

ftp error

This used to work , but know I am getting errors: 331 Enter password 230 User logged in 250 Command CWD succeed 200 Transfer mode set to BINARY local: arc-090715.tar.gz remote: arc-090715.tar.gz local: arc-090715.tar.gz: No such file or directory Any idea what is wrong? Thank you in... (2 Replies)
Discussion started by: Lenora2009
2 Replies

9. 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

10. 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

Featured Tech Videos