September 18, 200322 yr 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
September 18, 200322 yr 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
September 18, 200322 yr 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
September 18, 200322 yr LOL @ Anatoli -make script to check if the 1st script is running "get another machine and run scripts there " ....crAzy CZech
September 19, 200322 yr Author 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??
September 19, 200322 yr 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
September 19, 200322 yr 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 But if you will run the FM scripts from another machine FMP, everything should work.
September 19, 200322 yr 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.
September 19, 200322 yr RE: Now another license, like Limited, that can be expensive. Not Unlimited. Just FMP. The company has only single FM (FMU)? And just single computer?
July 22, 200520 yr 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 ?
Create an account or sign in to comment