Sunday, 15 August 2010

Running a Livecode Stack from command line on headless server -



Running a Livecode Stack from command line on headless server -

i have livecode stack utilize processing server reports. currently, reads files off of linux server (centos) desktop. set cron job on server run me. here questions:

is possible run stack command line on headless server (and how)? is possible pass parameters in command line stack? how can nowadays text in terminal indicate worked?

for purposes, not matter if stack compiled standalone, or left stack , run through installation of livecode on machine.

my guess, in openstack handler, going toss in of handlers run when press button initiates report, , end openstack handler sort of shutdown code command.

if install community server (or commercial server), next script run on server , demonstrates how access command line arguments;

#!/path/to/livecode/server/livecode-server <?lc set "arguments: " & $# & lf set "first argument: " & $0 & lf set "next argument: " & $1 & lf

you can open stacks library files (check out start using in dictionary) , access handlers, etc. scripts.

livecode

No comments:

Post a Comment