Page 1 of 1
On-Rev cron command format and livecode path
Posted: Tue Jan 17, 2012 4:50 am
by roger
Hi. I'm trying to run a .lc script via cron on the On-Rev server. It seems that the command should look like:
<path1>livecode-server <path2>script.lc
I can't get this to work. Perhaps this is because I don't know the path to livecode in On-Rev.
Can anyone advise, please?
Roger
Re: On-Rev cron command format and livecode path
Posted: Wed Aug 10, 2016 3:28 am
by marcha
Hi Roger,
I am facing the same problem, four years down the line.
Have you found a solution to this?
Thanks
Marc
Re: On-Rev cron command format and livecode path
Posted: Wed Aug 10, 2016 6:24 am
by ghettocottage
roger wrote:Hi. I'm trying to run a .lc script via cron on the On-Rev server. It seems that the command should look like:
<path1>livecode-server <path2>script.lc
I can't get this to work. Perhaps this is because I don't know the path to livecode in On-Rev.
Can anyone advise, please?
Roger
Here is a Livecode script I run on my server every two minutes that pings a particular router on a network to tell me if its up or not.
Code: Select all
*/2 * * * * cd /var/www/mywebsitefolder; /usr/lib/cgi-bin/livecode-community-server ping.lc >/dev/nul$
I think I could also do something like this:,
Code: Select all
*/2 * * * * /usr/lib/cgi-bin/livecode-community-server /var/www/mywebsitefolder ping.lc
...but I cannot remember if I tried that or not. The first example has been working fine for me for the last few months.
Re: On-Rev cron command format and livecode path
Posted: Wed Aug 10, 2016 10:42 pm
by marcha
Thanks ghettocottage for your reply
I had already tried your solution (and many others) prior to posting, so far I have not been able to make this work. I have submitted a ticket at on-rev, if I get a reply I will post back.
Re: On-Rev cron command format and livecode path
Posted: Thu Aug 11, 2016 5:19 am
by ghettocottage
My apologies. I had read your post quickly, and just re-read that your issue is particular to On-Rev servers.
I run a DigitalOcean VPS with Ubuntu and the latest Livecode Community Server, so of course I know exactly where Livecode is installed.
I wonder if you could just add your own Livecode edition and run your cron against that. Do you have sudo?