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
On-Rev cron command format and livecode path
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: On-Rev cron command format and livecode path
Hi Roger,
I am facing the same problem, four years down the line.
Have you found a solution to this?
Thanks
Marc
I am facing the same problem, four years down the line.
Have you found a solution to this?
Thanks
Marc
-
- Livecode Opensource Backer
- Posts: 366
- Joined: Tue Apr 10, 2012 9:18 am
Re: On-Rev cron command format and livecode path
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$
Code: Select all
*/2 * * * * /usr/lib/cgi-bin/livecode-community-server /var/www/mywebsitefolder ping.lc
Re: On-Rev cron command format and livecode path
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.
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.
-
- Livecode Opensource Backer
- Posts: 366
- Joined: Tue Apr 10, 2012 9:18 am
Re: On-Rev cron command format and livecode path
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?
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?