Sponsored Content
Full Discussion: 'No Matches' error in FTP
Top Forums UNIX for Dummies Questions & Answers 'No Matches' error in FTP Post 302717197 by spari2 on Wednesday 17th of October 2012 04:31:48 PM
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.?
 

10 More Discussions You Might Find Interesting

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

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

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

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

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

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

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

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

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

10. 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
FTP_SITE(3)								 1							       FTP_SITE(3)

ftp_site - Sends a SITE command to the server

SYNOPSIS
bool ftp_site (resource $ftp_stream, string $command) DESCRIPTION
ftp_site(3) sends the given SITE command to the FTP server. SITE commands are not standardized, and vary from server to server. They are useful for handling such things as file permissions and group membership. PARAMETERS
o $ftp_stream - The link identifier of the FTP connection. o $command - The SITE command. Note that this parameter isn't escaped so there may be some issues with filenames containing spaces and other characters. RETURN VALUES
Returns TRUE on success or FALSE on failure. EXAMPLES
Example #1 Sending a SITE command to an ftp server <?php // Connect to FTP server $conn = ftp_connect('ftp.example.com'); if (!$conn) die('Unable to connect to ftp.example.com'); // Login as "user" with password "pass" if (!ftp_login($conn, 'user', 'pass')) die('Error logging into ftp.example.com'); // Issue: "SITE CHMOD 0600 /home/user/privatefile" command to ftp server if (ftp_site($conn, 'CHMOD 0600 /home/user/privatefile')) { echo "Command executed successfully. "; } else { die('Command failed.'); } ?> SEE ALSO
ftp_raw(3). PHP Documentation Group FTP_SITE(3)
All times are GMT -4. The time now is 07:05 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy