SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
CompareFTPDir error

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
CompareFTPDir error
Author Message
Mauricio Padilla



Joined: 30 Apr 2002
Posts: 16

Post CompareFTPDir error Reply with quote

Hi, I am trying to use the JAL command CompareFTPDir. I keep receiving the same error saying the local directory does not exist. The FTP that I am trying to look at is a Linux Server. I used another FTP JAL command, and it went thru, which was FTPDir.
On the server, the login reports an autenthication failure.

Any ideas?

Thanks,

-Mauricio

Tue Apr 30, 2002 6:29 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: CompareFTPDir error Reply with quote

Can you post your script? If you wish you can mask your password, I am interested in seeing the syntax.

: Hi, I am trying to use the JAL command CompareFTPDir. I keep receiving the
: same error saying the local directory does not exist. The FTP that I am
: trying to look at is a Linux Server. I used another FTP JAL command, and
: it went thru, which was FTPDir.
: On the server, the login reports an autenthication failure.

: Any ideas?

: Thanks,

: -Mauricio

Tue Apr 30, 2002 6:53 pm View user's profile Send private message
Mauricio Padilla



Joined: 30 Apr 2002
Posts: 16

Post Re: CompareFTPDir error Reply with quote

: Can you post your script? If you wish you can mask your password, I am
: interested in seeing the syntax.
----
dim localf,string
dim ftpf, string

CompareFTPDir("255.255.255.255", "ftpuser", "userpassword", "m:\\webload\\client", "clients", false, localf, ftpf )
-----

The error message I get is:

---------
An error occured while executing automation script.
Line 4: local directory "clients" not found
---------

I tried comparing two identical directory names on both sides, and didn't work either.

Thanks

Wed May 01, 2002 8:30 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: CompareFTPDir error Reply with quote

Try specifying full path on the FTP server. Also make sure that your local directory name is "client" not "clients" as on the remote.

: ----
: dim localf,string
: dim ftpf, string

: CompareFTPDir("255.255.255.255", "ftpuser",
: "userpassword", "m:\\webload\\client",
: "clients", false, localf, ftpf )
: -----

: The error message I get is: ---------
: An error occured while executing automation script.
: Line 4: local directory "clients" not found
: ---------

: I tried comparing two identical directory names on both sides, and didn't
: work either.

: Thanks

Wed May 01, 2002 9:15 am View user's profile Send private message
Mauricio Padilla



Joined: 30 Apr 2002
Posts: 16

Post Re: CompareFTPDir error Reply with quote

: Try specifying full path on the FTP server. Also make sure that your local
: directory name is "client" not "clients" as on the
: remote.

The path on the FTP server is that... when the user logs that is its root.

I tried with the same name for the directories. It didn't work.


Wed May 01, 2002 9:21 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: CompareFTPDir error Reply with quote

Turn on Tracing feature in Tools/Options, Log tab page, "Trace Enabled" and run this job again. Please let me know if you see in the trace window some additional information from your FTP server, especially if there are any errors or warnings.

: The path on the FTP server is that... when the user logs that is its root.

: I tried with the same name for the directories. It didn't work.

Wed May 01, 2002 10:01 am View user's profile Send private message
Mauricio Padilla



Joined: 30 Apr 2002
Posts: 16

Post Re: CompareFTPDir error Reply with quote

: Turn on Tracing feature in Tools/Options, Log tab page, "Trace
: Enabled" and run this job again. Please let me know if you see in the
: trace window some additional information from your FTP server, especially
: if there are any errors or warnings.

The trace doesn't provide any extra information.

the last line it shows is:
Executing COMPAREFTPDIR(" ","user","password","dir","dir","false","","")


Wed May 01, 2002 10:07 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: CompareFTPDir error Reply with quote

That means that logon to FTP server failed. Did you forget to specify your ftp server name or just removed if from the posting?

The trace should like
COMPAREFTPDIR("YOUR SERVER HERE","user","password","dir","dir","false","","")

You are masking/removing everything from the trace, how do you expect me to help you if I cannot see the real picture?

: The trace doesn't provide any extra information.

: the last line it shows is: Executing COMPAREFTPDIR("
: ","user","password","dir","dir","false","","")

Wed May 01, 2002 11:13 am View user's profile Send private message
Mauricio Padilla



Joined: 30 Apr 2002
Posts: 16

Post Re: CompareFTPDir error Reply with quote

: That means that logon to FTP server failed. Did you forget to specify your
: ftp server name or just removed if from the posting?

: The trace should like
: COMPAREFTPDIR("YOUR SERVER
: HERE","user","password","dir","dir","false","","")

: You are masking/removing everything from the trace, how do you expect me to
: help you if I cannot see the real picture?

No, I just masked the real information... And as for the trace... What I sent you is the only thing the program reports on the screen...Here is what is previously...

JAL 1: DIM
JAL 1: Executing DIM("LOCALF", "STRING")
JAL 2: DIM
JAL 2: Executing DIM("FTPF", "STRING")
JAL 4: COMPAREFTPDIR
JAL 4: Executing COMPAREFTPDIR("255.255.255.255", "user", "password", "m:\webload\client", "clients", "true", "", "")


Wed May 01, 2002 11:53 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: CompareFTPDir error Reply with quote

Try adding Dir(s) before CompareFTPDir and MessageBoxes after it

Dir "m:\\webload\\client\\*.*", LOCALF
FTPDir "[SERVER]", "[USER]", "[PASSWORD]", "clients/*.*", FTPF
MessageBox LOCALF
MessageBox FTPF

CompareFTPDir .... same as before
MessageBox LOCALF
MessageBox FTPF

Please run the modified script and let me know how that works and if you get an error message in the job log

: No, I just masked the real information... And as for the trace... What I sent
: you is the only thing the program reports on the screen...Here is what is
: previously...

: JAL 1: DIM
: JAL 1: Executing DIM("LOCALF", "STRING")
: JAL 2: DIM
: JAL 2: Executing DIM("FTPF", "STRING")
: JAL 4: COMPAREFTPDIR
: JAL 4: Executing COMPAREFTPDIR("255.255.255.255", "user",
: "password", "m:\webload\client", "clients",
: "true", "", "")

Wed May 01, 2002 12:58 pm View user's profile Send private message
Mauricio Padilla



Joined: 30 Apr 2002
Posts: 16

Post Re: CompareFTPDir error Reply with quote

I ran the script you posted here is the trace report:
---
**** 5/1/02 10:21:26 ****

JAL 1: DIM
JAL 1: Executing DIM("LOCALF", "STRING")
JAL 2: DIM
JAL 2: Executing DIM("FTPF", "STRING")
JAL 4: DIR
JAL 4: Executing DIR("m:\webload\client\*.*", "")
JAL Return "HMLIFE_Template.xls,American_Air_info0122.xls,Shortcut to Clien
t.lnk,UsaaFunds_AG_info0221test.xls,WS_FTP.LOG,ACCTG CHECK LIST TEMPLATE.doc,ACC
TG CHECK LIST.doc,Emergency Client List.xls"
JAL 5: FTPDIR
JAL 5: Executing FTPDIR("255.255.255.255", "yyyyyy", "xxxxxxx", "clients/*.*"
, "")
Connected to 255.255.255.255
220 ProFTPD 1.2.4 Server (ProFTPD Default Installation) [MET-REDHAT]
331 Password required for yyyyyy.
230 User yyyyyy logged in.

Connection closed

JAL Return "ECLIPSE_BOND_info0103.xls,MaryAuto_1101.pdf,error.txt,noshow.tx
t,pdf problems.xls,ppp32303.exe,umip.doc"
JAL 6: MESSAGEBOX
JAL 6: Executing MESSAGEBOX("HMLIFE_Template.xls,American_Air_info0122.xls,Sho
rtcut to Client.lnk,UsaaFunds_AG_info0221test.xls,WS_FTP.LOG,ACCTG CHECK LIST TE
MPLATE.doc,ACCTG CHECK LIST.doc,Emergency Client List.xls")
JAL
JAL 7: MESSAGEBOX
JAL 7: Executing MESSAGEBOX("ECLIPSE_BOND_info0103.xls,MaryAuto_1101.pdf,error
.txt,noshow.txt,pdf problems.xls,ppp32303.exe,umip.doc")
JAL
JAL 10: COMPAREFTPDIR
JAL 10: Executing COMPAREFTPDIR("255.255.255.255", "yyyyyy", "xxxxxx", "m:\w
ebload\client", "clients", "true", "HMLIFE_Template.xls,American_Air_info0122.xl
s,Shortcut to Client.lnk,UsaaFunds_AG_info0221test.xls,WS_FTP.LOG,ACCTG CHECK LI
ST TEMPLATE.doc,ACCTG CHECK LIST.doc,Emergency Client List.xls", "ECLIPSE_BOND_i
nfo0103.xls,MaryAuto_1101.pdf,error.txt,noshow.txt,pdf problems.xls,ppp32303.exe
,umip.doc")

Wed May 01, 2002 1:27 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7948

Post Re: CompareFTPDir error Reply with quote

I got it! It is caused by different names of end directories! This should be fixed in 24x7 and I entered this issue as enhancement request for next maintenance release.

Anyway, here is a temp workaround:
On your computer C drive create subdirectory "c:\clients"
In the original job code use the following script

CD( "c:\\" )
CompareFTPDir( ... ) as you have it now

Please let me know if that helps

: I ran the script you posted here is the trace report: ---
: **** 5/1/02 10:21:26 ****

: JAL 1: DIM
: JAL 1: Executing DIM("LOCALF", "STRING")
: JAL 2: DIM
: JAL 2: Executing DIM("FTPF", "STRING")
: JAL 4: DIR
: JAL 4: Executing DIR("m:\webload\client\*.*", "")
: JAL Return "HMLIFE_Template.xls,American_Air_info0122.xls,Shortcut to
: Clien
: t.lnk,UsaaFunds_AG_info0221test.xls,WS_FTP.LOG,ACCTG CHECK LIST
: TEMPLATE.doc,ACC
: TG CHECK LIST.doc,Emergency Client List.xls"
: JAL 5: FTPDIR
: JAL 5: Executing FTPDIR("255.255.255.255", "yyyyyy",
: "xxxxxxx", "clients/*.*"
: , "")
: Connected to 255.255.255.255
: 220 ProFTPD 1.2.4 Server (ProFTPD Default Installation) [MET-REDHAT]
: 331 Password required for yyyyyy.
: 230 User yyyyyy logged in.

: Connection closed

: JAL Return
: "ECLIPSE_BOND_info0103.xls,MaryAuto_1101.pdf,error.txt,noshow.tx
: t,pdf problems.xls,ppp32303.exe,umip.doc"
: JAL 6: MESSAGEBOX
: JAL 6: Executing
: MESSAGEBOX("HMLIFE_Template.xls,American_Air_info0122.xls,Sho
: rtcut to Client.lnk,UsaaFunds_AG_info0221test.xls,WS_FTP.LOG,ACCTG CHECK LIST
: TE
: MPLATE.doc,ACCTG CHECK LIST.doc,Emergency Client List.xls")
: JAL
: JAL 7: MESSAGEBOX
: JAL 7: Executing
: MESSAGEBOX("ECLIPSE_BOND_info0103.xls,MaryAuto_1101.pdf,error
: .txt,noshow.txt,pdf problems.xls,ppp32303.exe,umip.doc")
: JAL
: JAL 10: COMPAREFTPDIR
: JAL 10: Executing COMPAREFTPDIR("255.255.255.255",
: "yyyyyy", "xxxxxx", "m:\w
: ebload\client", "clients", "true",
: "HMLIFE_Template.xls,American_Air_info0122.xl
: s,Shortcut to Client.lnk,UsaaFunds_AG_info0221test.xls,WS_FTP.LOG,ACCTG CHECK
: LI
: ST TEMPLATE.doc,ACCTG CHECK LIST.doc,Emergency Client List.xls",
: "ECLIPSE_BOND_i
: nfo0103.xls,MaryAuto_1101.pdf,error.txt,noshow.txt,pdf
: problems.xls,ppp32303.exe
: ,umip.doc")

Wed May 01, 2002 2:19 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.