View previous topic :: View next topic |
Author |
Message |
jromariz
Joined: 03 Apr 2002 Posts: 264 Location: Brasil
|
Posted: Wed Mar 24, 2004 7:16 am Post subject: Complex FTP file test |
|
|
Hi All,
I need to setup a test that will check if a certain file is available in an FTP server. The problem is that the file name is kind of complex. It is made by some static and some dinamic parts. Example:
A4104032200.gz
Where:
- "A41" is a static part
- "040322" - is yesterday´s date (04 is the year, 03 the month and 22 the day)
- "00" is a static part
The problem is: how can i configure a macro variable to reflect the variable part of the file name?
Any help would be great.
Regards,
Jromariz. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Wed Mar 24, 2004 2:24 pm Post subject: |
|
|
What test method do you use?
URL test? In this case you cannot use macro variables
File Availability test? In this case type A41%yymmdd[-1d]%00.gz as file name.
Regards
Alex |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Wed Mar 24, 2004 2:25 pm Post subject: |
|
|
BTW: you need to have HostMonitor version 4.40 to use this expression. |
|
Back to top |
|
|
jromariz
Joined: 03 Apr 2002 Posts: 264 Location: Brasil
|
Posted: Wed Mar 24, 2004 2:35 pm Post subject: |
|
|
Alex,
I´m trying to check file using file availability but it´s not working. Is there any "secret" on the file or folder name format field for ftp file checking?
Thanks for your help.
Regards,
Jromariz. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Wed Mar 24, 2004 3:14 pm Post subject: |
|
|
FTP file checking?
File Availability test doesn't support FTP protocol. It works with local or shared files.
Regards
Alex |
|
Back to top |
|
|
jromariz
Joined: 03 Apr 2002 Posts: 264 Location: Brasil
|
Posted: Wed Mar 24, 2004 3:16 pm Post subject: |
|
|
Hi Alex,
So there´s no way to check if a file exists using FTP protocol?
Regards,
Jromariz. |
|
Back to top |
|
|
KS-Soft
Joined: 03 Apr 2002 Posts: 12795 Location: USA
|
Posted: Wed Mar 24, 2004 3:36 pm Post subject: |
|
|
URL test supports FTP protocol. But it does not support macro variables. Yet.
Regards
Alex |
|
Back to top |
|
|
|