View Full Version : Will a Miva Empresa script run from a command line?
On a linux system will miva scripts (either 3.93 or 5.0x) run from a cron or from the command line. If so what special things need to be considered?
Thanks
Donb
dotCOM_host
04-11-06, 06:07 PM
Yes, you can run MIVA scripts from command line - just call them up with GET, Lynx, or any other similar tools that can request a URL which then gets parsed by the server. About the only kinds of scripts you won't get to work this way are any scripts that require user input during execution... obviously.
Thanks. That's good news. Will there be any script timeout issues like you get in a browser version.
dotCOM_host
04-11-06, 06:29 PM
Yes. If you need a very long timeout - edit your miva(vm).conf file and change the default to whatever your script will require.
Vic - WolfPaw Computers
04-11-06, 06:36 PM
Sure, there could be if the remote host fails to respond.
However this is very unlikely if its being called from the same server. If the call needs to do a DNS lookup and DNS does not respond, it could cause a problem too.
Borrowing an example from Truxoft's MMTicker FAQ, you're cron job could look like this:
GET http://yourdomain/Merchant2/script.mvc\?
Assuming your script is in the /Merchant2 directory of your website structure.
truXoft
04-11-06, 08:22 PM
You do not even need to use GET, Lynx, etc. You can run any Miva scripts directly by invoking Empresa. Read more about it in this article (http://mivo.truxoft.com/art0017.htm).
vBulletin® v3.7.4, Copyright ©2000-2008, Jelsoft Enterprises Ltd.