I have been trying to use livecode server as a shell  from the command line 
using the lcsh script of David Williams. If I use the command

lcsh -e “12345”

 it seems to execute but no output is displayed, it just shows the shell 
prompt. In interactive mode it displays the result of a zsh command such as ls 
-al; but merely echoes the last few characters of the input if I try a livecode 
command.

If there is a syntax error in the lcsh  input  parameter in execute mode, the 
server displays the error correctly. The livecode server itself is working 
normally, it executes a “hello world" script correctly and displays its output. 
It also works in cgi mode.

Can anyone point me in the right direction? 

Has David’s work from 2008 been advanced, it appeared to be the start of a 
really useful project if he ever got pipes to work, being able to use livecode 
text parsing capabilities directly in shell scripting would be great …

 2008 !! good heavens that long ago!!! I suppose I should be surprised it 
almost works without always throwing errors … presumably livecode server has 
changed since then. Maybe a header change needed to get the output sent to 
stdout?? 
 
Neville Smythe




_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to