On-Rev cron command format and livecode path

Are you using LiveCode to create server scripts or CGIs?

Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller

Post Reply
roger
VIP Livecode Opensource Backer
VIP Livecode Opensource Backer
Posts: 2
Joined: Thu Jun 16, 2011 10:32 am

On-Rev cron command format and livecode path

Post by roger » Tue Jan 17, 2012 4:50 am

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

marcha
Posts: 5
Joined: Wed Mar 03, 2010 1:15 pm

Re: On-Rev cron command format and livecode path

Post by marcha » Wed Aug 10, 2016 3:28 am

Hi Roger,

I am facing the same problem, four years down the line.
Have you found a solution to this?

Thanks
Marc

ghettocottage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 366
Joined: Tue Apr 10, 2012 9:18 am

Re: On-Rev cron command format and livecode path

Post by ghettocottage » Wed Aug 10, 2016 6:24 am

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.

marcha
Posts: 5
Joined: Wed Mar 03, 2010 1:15 pm

Re: On-Rev cron command format and livecode path

Post by marcha » Wed Aug 10, 2016 10:42 pm

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.

ghettocottage
Livecode Opensource Backer
Livecode Opensource Backer
Posts: 366
Joined: Tue Apr 10, 2012 9:18 am

Re: On-Rev cron command format and livecode path

Post by ghettocottage » Thu Aug 11, 2016 5:19 am

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?

Post Reply

Return to “CGIs and the Server”