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

scripts altering themselves on server system


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

Recommended Posts

We're running a multi-platform network with a dozen machines (mac/win) accessing FM Server on a Mac host. Everything is 5.5

The client machines all have startup scripts - they open the appropriate file on FM Server, run an appropriate script, and then the user is wherever that user should be. On the win machines, this is fine. On the Macs, there are times when the script for some reason cannot find the host (we've had all sorts of power problems during construction, so routers have been down, etc, but not the server) and then the client scripts rewrite themselves so that the "open" statement which pointed to the remote DB now points to the DB holding the startup script on the local machine. The "perform script" step which pointed to the remote script now points to the (only) script on the local DB (which is just a placeholder for the startup script.)

This is driving me crazy. Does anyone have any ideas?

-Stanley

Link to comment
Share on other sites

Redo all the Perform Script steps and any Open Steps.

I have found that those steps cache the file names wrong sometimes, try clicking name of the databse in the step step (in the mail part) and if it doing the cacheing, and IP will show up. All you have to do is redo that step.

Link to comment
Share on other sites

When you use an opener file, you should always trap for errors. That way, if the server is down or otherwise unavailable, the opener script won't get broken. E.g.???

Set Error Capture [on]

Open [network database]

If [status(CurrentError) <> 0]

. Beep

. Show Message ["I'm sorry, Dave, I'm afraid I can't do that. Try again?"]

End If

If [status(CurrentMessageChoice) = 1]

. Perform Script (this same script)

Else

. #do something else

End If

Link to comment
Share on other sites

Yes, that's it. I had tried putting in an error capture, and noticed that it prevented some of the damage. Your way, however, is a more complete solution. thanks.

-Stanley

Link to comment
Share on other sites

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