Our Products:   CompleteFTP  edtFTPnet/Free  edtFTPnet/PRO  edtFTPj/Free  edtFTPj/PRO
0 votes
1.5k views
in CompleteFTP by (280 points)
I created my first event using version 8.1.2 and I can't tell if it's firing and now working or just not firing at all. I have a folder that I want to monitor so I put that in the filter. Below is the FTP script I want to execute:

set remotehost=xxx.xxx.xxx.xxx
set user=me
set password=pwd1
set protocol=ftp
# connect to the server
open
# upload the file for which the trigger occurred to the server
put %WindowsPath% /promo/%FileName%
# disconnect
close

When someone drop a file in the filter path (S:\Inbox\Teachers_Guides\*) I want that file to be sent to /promo/%FileName% on the remote server.

When I copy or FTP a file to the filter, nothing seems to happen.

Thank!

7 Answers

0 votes
by (162k points)
If you enable logging at the Debug level, you should see evidence of the trigger in the server log file.
0 votes
by (280 points)
Ok, I think I found the logs.

Thanks!!
0 votes
by (280 points)
I'm looking in the logs and I don't see any sign that the event is being fired. Can you tell me which log (Audit, Diagnostics or Errors) I should be looking in and what phrase in the log I should see that would let me know it's referring to an event being executed?

Or can you tell me my an event might not fire if a file is dropped in the filter path?

Thanks!
0 votes
by (162k points)
If the logging level is at Debug, you'll see a reference to ProcessTrigger in the log.

If you don't, it's likely the filter isn't configured correctly, so please post it here and tell us what you are trying to do.
0 votes
by (280 points)
Here is the XML of my event.

I want to FTP any file that gets put into the filter folder to the remote server in the script:

<TriggerDataSet xmlns="http://tempuri.org/TriggerDataSet.xsd">
<ProcessConfig>
<ProcessConfigID>0</ProcessConfigID>
<MaxProcesses>10</MaxProcesses>
<RunTimeout>0</RunTimeout>
<QueueTimeout>0</QueueTimeout>
<KillOnExit>true</KillOnExit>
</ProcessConfig>
<ProcessRule>
<ProcessRuleID>1</ProcessRuleID>
<ProcessConfigID>0</ProcessConfigID>
<Name>First Test</Name>
<Enabled>true</Enabled>
<ProcessType>3</ProcessType>
<WorkingDirectory />
<Arguments>set remotehost=68.71.245.90
set user=xxxxxx
set password=xxxxx
set protocol=ftp
# connect to the server
open
# upload the file for which the trigger occurred to the server
put %WindowsPath% /promos/%FileName%
# disconnect
close</Arguments>
<PathFilter>S:\Inbox\Teachers_Guides\*</PathFilter>
<OnError>false</OnError>
<OnSuccess>true</OnSuccess>
</ProcessRule>
<ProcessEvent>
<ProcessRuleID>1</ProcessRuleID>
<EventType>UploadFile</EventType>
</ProcessEvent>
</TriggerDataSet>
0 votes
by (280 points)
It's something with how I set up the filter. I just set it to * only and the event fired.

Do you see anything wrong with my filter?

Thanks!!
0 votes
by (162k points)
Yes, path filters aren't Windows paths - they are CompleteFTP filesystem paths.

So far example, to filter files in a user's directory only, you'd use /home/username/*

Categories

...