Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

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

Recommended Posts

Posted

When a database is hosted by FM Server 7, is there any way to schedule maintenance scripts to run? I'm talking about FileMaker scripts within the database. I don't want these scripts to run when the user logs in (too time-consuming), but rather at 3am when no one is in the system. That way they only have to run once per day, not every time someone logs in.

Any thoughts???

-Rob

Posted

Rob:

You can trigger something like that via AppleScript, but on a client machine, rather than on the Server itself.

-Stanley

Posted

Expanding on Stanley's idea, which is to have a small AppleScript application somewhere that would tell FileMaker to run its FileMaker scripts; and I would just have AppleScript tell it to start, let FileMaker handle the rest, or you'll run into timing issues.

Check out the little application CronniX. It's an easy way to set up "cron" type scheduling. You can also use iCal alarms.

http://h5197.serverkompetenz.net/cronnix/

I don't know whether CronniX has any problems with Tiger. I wouldn't think so, but you never know.

Definitely don't let either computer go to sleep.

Posted

Fenton:

Great link; CronniX looks like a very handy tool.

-Stanley

Posted

You can also have FMS7 setup a schedule to run a script file (much like the backup feature). Although, the script has to reside on the server machine, under the /Data/Scripts area. I'm not familiar with Applescript, but shouldn't you be able to setup Applescript to run a remote copy of FM pro, execute a certain script, then close the program?

Posted

They are scripts that will backup files that are currently being served, or to call an AppleScript, but nothing like an FMP script.

Posted

They are any scripts that would normally run from the command line, so FM scripts would not be included. Scripts, in this case, are typically text-only like shell scipts, batch files, and I beleive Applescripts fall into this category as well.

Posted

So, that means there's no sanctioned way to run a FM script from the server?

Ouch.

That was one of the main reasons I popped for FMS. There's certain things I want to do on the server, like automated exports and maintenance. Now it seems like I have to run another copy of FM client to do that and keep a user logged into the server all the time so AppleScript can work properly???

I try to like FileMaker, I really do...

Posted

I would advise against running FMP and FMS on the same box. The consequences of somebody opening the FMP files from the disk rather than through the FMS via the Hosts dialog are too dire to contemplate!

Get another box to run the maintenence scripts through FMP client.

This topic is 7092 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.