Superb, thank you Matthias. Apologies not having RTFM'd properly myself.

Ben

On 01/02/2021 12:07, matthias rebbe via use-livecode wrote:

Am 01.02.2021 um 10:52 schrieb Ben Rubinstein via use-livecode 
<use-livecode@lists.runrev.com <mailto:use-livecode@lists.runrev.com>>:

Thanks Mark (and Matthias). That's very useful info which I'll stash for 
another time.

In this case I really don't want to use the LC code over HTTP. It is purely a 
utility to run locally on this machine at scheduled intervals, in support of 
some other processes.

For several reasons it would be more convenient to run it as a stack rather 
than just a script, though it would be possible to go the latter way.

So two questions:

- just to be clear, does LiveCode Server only work receiving requests from 
Apache/nginx/whatever? Or can it be run from the command line?

You can run LiveCode Server from the command line

- is there a way to install ordinary LiveCode on a headless linux box? Or will 
the installer demand a GUI to complete?


According to page 7 of the Livecode 9.6.2 Release Notes, it is possible to run 
the installer without a gui.
https://downloads.livecode.com/livecode/9_6_2/LiveCodeNotes-9_6_2_rc_2.pdf 
<https://downloads.livecode.com/livecode/9_6_2/LiveCodeNotes-9_6_2_rc_2.pdf>

Excerpt...

Command-line installation
It is possible to invoke the installer from the command-line on Linux and 
Windows. When doing command-line installation, no GUI will be displayed. The 
installation process is controlled by arguments passed to the installer.
Run the installer using a command in the form:

  <installer> install -ui [OPTION ...]

where <installer> should be replaced with the path of the installer executable 
or app (inside the DMG) that has been downloaded. The result of the installation 
operation will be written to the console.

The installer understands any of the following options:

-allusers
Install the IDE for "All Users". If not specified, LiveCode will be installed 
for the current user only.

- desktopshortcut
Place a shortcut on the Desktop (Windows-only)

-startmenu
  Place shortcuts in the Start Menu (Windows-only)

-location LOCATION
The folder to install into. If not specified, the LOCATION defaults to those described in 
the "Installation" section above.

-log LOGFILE
The file to which to log installation actions. If not specified, no log is 
generated.

Note: the command-line installer does not do any authentication. When installing for 
"All Users", you will need to run the installer command as an administrator.
As the installer is actually a GUI application, it needs to be run slightly 
differently from other command-line programs.
On Windows, the command is:
start /wait <installer> install -ui [OPTION ...]
<


Regards,
Matthias



-
Matthias Rebbe
Life Is Too Short For Boring Code

_______________________________________________
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


_______________________________________________
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