xtrim Posted September 18, 2003 Posted September 18, 2003 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
Steve T. Posted September 18, 2003 Posted September 18, 2003 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
Anatoli Posted September 18, 2003 Posted September 18, 2003 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
Leb i Sol Posted September 18, 2003 Posted September 18, 2003 LOL @ Anatoli -make script to check if the 1st script is running "get another machine and run scripts there " ....crAzy CZech
xtrim Posted September 19, 2003 Author Posted September 19, 2003 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??
Steve T. Posted September 19, 2003 Posted September 19, 2003 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
Anatoli Posted September 19, 2003 Posted September 19, 2003 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.
Unable Posted September 19, 2003 Posted September 19, 2003 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.
Anatoli Posted September 19, 2003 Posted September 19, 2003 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?
Leb i Sol Posted September 22, 2003 Posted September 22, 2003 just close the port (80 or whatever u have it) on your router.
cincin Posted July 22, 2005 Posted July 22, 2005 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 ?
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now