Jump to content

Trigger manually a script


This topic is 4582 days old. Please don't post here. Open a new topic instead.

Recommended Posts

If the file is hosted in FM Server then create a server-side script -- though server scripts have some limitations. Otherwise set up a "robot" machine running FMP and have it run the script every so often.

Link to comment
Share on other sites

You can manually run a script through the server admin console.

Otherwise, set up a field in a prefs table. Configure the server side script to fire every X minutes and check the field, but only do the processing if the field has the right value in it.

I set up an e-mail processing script for clients that runs on the server every 15 minutes. The script performs a find for unprocessed records: if it finds some it sends the messages, if it finds none it does nothing.

  • Like 1
Link to comment
Share on other sites

Server power as in electricity? or as in cpu cycles? Either case I dunno. I'd rather not have the server popping off and running scripts every 2 minutes though (imagine if every file needed a script like this...)

Best to ask what length of wait would be unacceptable and start at once a day and work backwards.

With the client that I mentioned above, running the mail send script every 30 minutes turned out to have the bonus benefit of (usually) allowing time to un-send e-mails.

Link to comment
Share on other sites

This topic is 4582 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.