Discuss , our SFTP/FTP/FTPS/SCP server for Windows. Secure, fast and customizable!

Getting an Event to fire??

no avatar
User

usefMacmillan

Posts

5

Joined

Tue Feb 10, 2015 2:17 am

Getting an Event to fire??

by usefMacmillan » Tue Feb 10, 2015 2:38 am

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!
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Getting an Event to fire??

by support2 » Tue Feb 10, 2015 2:42 am

If you enable logging at the Debug level, you should see evidence of the trigger in the server log file.
no avatar
User

usefMacmillan

Posts

5

Joined

Tue Feb 10, 2015 2:17 am

Re: Getting an Event to fire??

by usefMacmillan » Tue Feb 10, 2015 2:50 am

Ok, I think I found the logs.

Thanks!!
no avatar
User

usefMacmillan

Posts

5

Joined

Tue Feb 10, 2015 2:17 am

Re: Getting an Event to fire??

by usefMacmillan » Tue Feb 10, 2015 5:33 am

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!
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Getting an Event to fire??

by support2 » Tue Feb 10, 2015 5:48 am

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.
no avatar
User

usefMacmillan

Posts

5

Joined

Tue Feb 10, 2015 2:17 am

Re: Getting an Event to fire??

by usefMacmillan » Tue Feb 10, 2015 6:30 am

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>
no avatar
User

usefMacmillan

Posts

5

Joined

Tue Feb 10, 2015 2:17 am

Re: Getting an Event to fire??

by usefMacmillan » Tue Feb 10, 2015 7:11 am

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!!
no avatar
User

support2

Posts

3987

Joined

Tue May 18, 2004 8:30 am

Re: Getting an Event to fire??

by support2 » Tue Feb 10, 2015 7:26 am

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/*

Who is online

Users browsing this forum: No registered users and 2 guests

Powered by phpBB ® | phpBB3 Style by KomiDesign
cron