[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: ftp_quote not working
That was my first thought until I read the response from another who
typed in
... (disk
Apparently a single parenthesis is a common thing in ftp parlance;
much like the (replace option.
Rob Berendt
--
Group Dekko
Dept 1600
Mail to: 2505 Dekko Drive
Garrett, IN 46738
Ship to: Dock 108
6928N 400E
Kendallville, IN 46755
[1]http://www.dekko.com
From: Robert Rogerson <rogersonra@xxxxxxxxx>
To: HTTPAPI and FTPAPI Projects <ftpapi@xxxxxxxxxxxxxxxxxxxxxx>
Date: 10/17/2011 12:16 PM
Subject: Re: ftp_quote not working
Sent by: ftpapi-bounces@xxxxxxxxxxxxxxxxxxxxxx
_________________________________________________________________
Hi, I'm not sure of the correct syntax but is the quote not in the
incorrect position and a parenthesis missing?
ReturnCode = Ftp_Quote([1][2]ftp:'ls audit* (disk');
Should it not be
ReturnCode = Ftp_Quote([2][3]ftp:'ls audit* (disk)');
On 17/10/2011 11:15 AM, Craig Jacobsen wrote:
I am trying to create a list of all audit files on an FTP server.
I may have thousands of entries (begin with AUDIT or BATCH) and am
going to use the output file to compare against a file of already
ftp'd files and ftp files not already there.
If I log on by hand, everything works ok:
Connecting to remote host 172.17.1.21 using port 5008.
220 FileZilla Server version 0.9.24 beta
trails_client
331 Password required for trails_client
230 Logged on
UNIX emulated by FileZilla
sendepsv
SENDEPSV is off.
ls audit* (disk
227 Entering Passive Mode (172,17,1,21,17,89)
150 Connection accepted
226 Transfer OK
I connect to the ftp server ok with FTPAPI but keep getting a syntax
error through ftp_quote
// connect to the line 1 ftp server
ftp = ftp_conn('172.17.1.21':'trails_client':'password':5008);
// set the passive mode *off
ReturnCode = Ftp_PassiveMode([3][4]ftp:*Off);
// create lsoutput file with all audit files
ReturnCode = Ftp_Quote([4][5]ftp:'ls audit* (disk');
Joblog says:
> ls audit* (disk
500 Syntax error, command unrecognized.
Why is this a syntax error? I'm probably doing something wrong, but
I
can't figure it out.
Thanks in advance for any help,
Craig
Confidentiality Notice: This e-mail message, including any
attachments, is for the sole use of the intended recipient(s) and
may
contain confidential and privileged information. Any unauthorized
review, use, disclosure or distribution is prohibited. If you are
not
the intended recipient, please contact the sender by reply e-mail
and
destroy all copies of the original message. Unless expressly stated
in
this e-mail, nothing in this message or any attachment should be
construed as a digital or electronic signature.
----------------------------------------------------------------------
-
This is the FTPAPI mailing list. To unsubscribe, please go to:
[5][6]http://www.scottklement.com/mailman/listinfo/ftpapi
----------------------------------------------------------------------
-
References
1. [7]ftp:'ls
2. [8]ftp:'ls
3. [9]ftp:*Off
4. [10]ftp:'ls
5. [11]http://www.scottklement.com/mailman/listinfo/ftpapi
----------------------------------------------------------------------
-
This is the FTPAPI mailing list. To unsubscribe, please go to:
[12]http://www.scottklement.com/mailman/listinfo/ftpapi
----------------------------------------------------------------------
-
References
1. http://www.dekko.com/
2. ftp:'ls
3. ftp:'ls
4. ftp:*Off
5. ftp:'ls
6. http://www.scottklement.com/mailman/listinfo/ftpapi
7. ftp:'ls
8. ftp:'ls
9. ftp:*Off
10. ftp:'ls
11. http://www.scottklement.com/mailman/listinfo/ftpapi
12. http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------
This is the FTPAPI mailing list. To unsubscribe, please go to:
http://www.scottklement.com/mailman/listinfo/ftpapi
-----------------------------------------------------------------------