Rev as Linux Shell Script

Alex Tweedly alex at tweedly.net
Thu Oct 28 19:16:23 EDT 2010


  Just a guess ..... libURL uses private handlers, and RevServer scripts 
can't have private functions in them.

(The Docs say 'private' applies to desktop and server, but my simple 
test suggests otherwise

<?rev
private function a p
return p+p
end a
put a(4)
?>

fails, remove the 'private' and it works.)

There are only 2 instances of it in libURL, so try changing them and see 
if it helps ....
beware also of name clashes - e.g. the handler 'log' would cause a clash 
in most of my scripts :-)

-- Alex.

On 28/10/2010 23:28, Mike Bonner wrote:
> Nope doesn't work, and I don't know enough to determine if it would be
> worthwhile to beat it into submission or how to begin if it is worthwhile.
> (tried it with the 4.5 script) Mostly was just wondering, revserver throws
> errors  such as:
>
> 183,485,43,)
> 482,746,1,private
> EXECUTION ERROR:
> 681,0,0,1
>
> I have no clue what they mean.
>
> On Thu, Oct 28, 2010 at 3:39 PM, J. Landman Gay<jacque at hyperactivesw.com>wrote:
>
>> On 10/28/10 3:23 PM, Mike Bonner wrote:
>>
>>> I have a question regarding this, if one were to copy the script as you
>>> explained, and instead of placing it in a stack could one paste it into an
>>> .irev file and use it as an include with revserver scripts?
>>>
>> Yes, I think so, but I'm not sure how much of libURL the irev engine
>> supports. The original post was about using it in an old-style CGI, which
>> doesn't support text file includes, but is basically the same engine as the
>> one used for building standalones.
>>
>> If you try it, let us know if it works.
>>
>>
>> --
>> Jacqueline Landman Gay         |     jacque at hyperactivesw.com
>> HyperActive Software           |     http://www.hyperactivesw.com
>> _______________________________________________
>> use-revolution mailing list
>> use-revolution at lists.runrev.com
>> Please visit this url to subscribe, unsubscribe and manage your
>> subscription preferences:
>> http://lists.runrev.com/mailman/listinfo/use-revolution
>>
> _______________________________________________
> use-revolution mailing list
> use-revolution at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
> http://lists.runrev.com/mailman/listinfo/use-revolution
>




More information about the Use-livecode mailing list