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

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

Recommended Posts

Posted

Hi

Sometimes the admin need to run some scripts from the console (FMP6 U!).

This caused some problems beacause of simultaniously runing a local script and a web request, and it got really messy.....

Is there way in FMP script steps to block/unblock web requests??

(I use FMP6 U! as a web server and a host)

Tnx

Posted

Hi, X! Executing scripts via web browsers has been debated on these forums quite a bit... you should be able to find some info by searching the internet forums for script info. Some say you can do it but it takes additional programming. I would suggest taking the -script out of your web solution, if possible, until you can clear this up.

Good luck!

--ST

Posted

RE: Some say you can do it but it takes additional programming.

Like running another script to check flag like Yes/No if the script run successfully or not or didn't run at all...

Xtrim -- get another machine and run scripts there smile.gif

Posted

LOL @ Anatoli

-make script to check if the 1st script is running

"get another machine and run scripts there " laugh.gif

....crAzy CZech

Posted

Guys guys guys....

I'm not running any script via the web...

Web request could be also a simple search via the web...

The scripts are running from the console (no budget for another machine)...

I'll ask again : Is there way to temporarly block/unblock web requests??

Posted

Hi, X! OK, my bad, my bad.. I threw everyone off. I am an unexperienced scripter but I doubt there is an easy way if there is a way at all. If your admin is launching directly from the server, I would suggest just turning Web Companion sharing for that db while you launch the scripts. Maybe you can have a non-FMP script do that and redirect users to a a "temporarily out of service" page or set an error capture page to look for that condition (db not open or shared, etc.). --ST

Posted

RE: I'll ask again : Is there way to temporarly block/unblock web requests??

As Steve T. suggested -- disable WC sharing. Or cut the network wire. Better will be just unplug-it smile.gif

But if you will run the FM scripts from another machine FMP, everything should work.

Posted

re: (no budget for another machine)...

Another machine is not the real cost. A used one can be pretty cheap.

Now another license, like Limited, that can be expensive.

Not a lot of choice for you. What you can do is put up a page which says the site is closed for maintenance and take the db file off-line for Admin to play.

  • 1 year later...
Posted

I'm having the same challenge.

A script gets runned automatically everynight on the Unlimited box, which serves on the web DBs from the FMServer box.

That script cannot get disturbed by web requests.

For now the script is being run by a 3rd computer, but we want to make it work with 2 computers only.

There isn't a ScriptMaker step that can enable or disable web sharing.

I couldn't even find an easy way to do this with AppleScript (both servers are Macs btw), can someone suggest something ?

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