[on-rev] LC cron jobs?

Phil Davis revdev at pdslabs.net
Mon Jan 16 14:32:37 EST 2012


Thanks so much guys! I went with Andre's 'curl' suggestion since I don't know 
the path to the livecode server engine.

Phil


On 1/16/12 6:38 AM, Mike Bonner wrote:
> If you don't want toe first line #! to output you can do another method.
> Use a shell script with #!/bin/bash (wherever bash resides)
> then /path/to/livecode scripttorun
>
> Otherwise (unless they've changed things in the recent versions) lc will
> output the  #! line as part of the output.
>
> On Mon, Jan 16, 2012 at 4:16 AM, Andre Garzia<andre at andregarzia.com>  wrote:
>
>> 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.
>>
>> _______________________________________________
>> 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
>>
> _______________________________________________
> 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
>

-- 
Phil Davis

PDS Labs
Professional Software Development
http://pdslabs.net





More information about the use-livecode mailing list