[on-rev] LC cron jobs?

Andre Garzia andre at andregarzia.com
Mon Jan 16 06:16:15 EST 2012


You can also create a lc script and call it with curl such as

curl http://myserver/mycron.lc

This way, you don't need to know the path to the engine.

On Mon, Jan 16, 2012 at 8:51 AM, Mark Schonewille
<m.schonewille at economy-x-talk.com> wrote:
> Hi Phil,
>
> A cron job needs a correct terminal command. If you can type it in your terminal (e.g. over ssh) and don't need to enter a password and other additional information then you can also use it as a cron job. I wonder if it would work if you start your script with
>
> #!/path/to/lc/server
> <?lc put "Hello World" ?>
>
> A cgi script should include a path too:
>
> #!/path/to/cgi/engine
> put "hello world"
>
> --
> Best regards,
>
> Mark Schonewille
>
> Economy-x-Talk Consulting and Software Engineering
> Homepage: http://economy-x-talk.com
> Twitter: http://twitter.com/xtalkprogrammer
> KvK: 50277553
>
> Become our partner in sales http://qery.us/1bq Start selling Color Converter today. 20% commission!
>
> On 16 jan 2012, at 05:42, Phil Davis wrote:
>
>> Hi folks,
>>
>> Have you succeeded in using a .lc script as the thing to be run in a cron job on the on-rev server? I tried it but am apparently not holding my mouth right. I get a syntax error on line 1: the "<?lc " tag. I tried using .lc and .cgi as the file extension with equal non-success.
>>
>> I even reverted to trying to run a .cgi script with Rev 3.5 as the engine and no joy there either.
>>
>> Thanks for any wisdom you may share on the subject.
>>
>> --
>> Phil Davis
>
>
> _______________________________________________
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode



-- 
http://www.andregarzia.com -- All We Do Is Code.
http://fon.nu -- minimalist url shortening service.




More information about the use-livecode mailing list