View previous topic :: View next topic |
Author |
Message |
Ludo
Joined: 12 Feb 2003 Posts: 28
|
Posted: Wed Mar 12, 2003 5:36 am Post subject: |
|
|
Hi, as I'm new to both HM and scripting, I'm in the position where I could use some help ...
What I want to do is test whether or not a file is on a remote system, using an FTP connection. I don't think HM can do that out-of-the-box, so I guess I need a bit of scripting - and I don't know how to ...
In "pseudo-code" it should probably look like :
do case
case Open_Ftp_Port() <> "OK"
exit("Error : No FTP port")
case Remote_Login() <> "OK"
exit("Error : Missing or Invalid account")
case Find_File() <> "OK"
exit("Error : File not found")
otherwise
Remote_Logoff()
exit("SUCCESS")
endcase
As I said, I'm new to it and would VERY MUCH appreciate a detailed reply.
Thanks,
Ludo
|
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12811 Location: USA
|
Posted: Wed Mar 12, 2003 1:15 pm Post subject: |
|
|
I think you don't need any script. Just use URL test
Regards
Alex |
|
Back to top |
|
|
Ludo
Joined: 12 Feb 2003 Posts: 28
|
Posted: Mon Mar 17, 2003 5:34 am Post subject: |
|
|
Is there anything the you can NOT do with this program ???
Thanks Alex, this works fine - it took me a while to realise that the filename should contain a full path. It does not seem to be enough to assume that the files is in the "default" directory.
[ This Message was edited by: Ludo on 2003-03-17 04:36 ] |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12811 Location: USA
|
Posted: Mon Mar 17, 2003 2:07 pm Post subject: |
|
|
Yes, you are right. It needs full path to the file.
Regards
Alex |
|
Back to top |
|
|
Mischke
Joined: 09 Aug 2004 Posts: 6
|
Posted: Thu Aug 12, 2004 2:33 am Post subject: |
|
|
Is there a way to read the banner of the FTP Server? Like "220 XXX Microsoft FTP Service (Version 5.0)" |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12811 Location: USA
|
Posted: Thu Aug 12, 2004 10:07 am Post subject: |
|
|
You may use TCP test with "Alert when reply doesn't contain: 220 XXX Microsoft FTP Service (Version 5.0)" option
Regards
Alex |
|
Back to top |
|
|
|