Running an LC app from the command line
dsc at swcp.com
Wed Jun 4 19:55:01 EDT 2014
Richard Gaskin has some advice, perhaps a year ago, on this list.
I’m hoping to be trying that tonight.
Well, maybe in the morning.
A signal 10 is a bus error. If you are lucky, it is just accessing some GUI when there is none. Just take that out.
Maybe you need to quit before the end of the startup handler, so preOpenStack never runs. I’m hoping my notes from Richard’s email covers this.
On Jun 4, 2014, at 5:31 PM, Peter Haworth <pete at lcsql.com> wrote:
> I would like to run an existing lc standalone from the command line,
> passing it parameters that will determine what it should do.
> Searched the list archives and found that I can reference $1, $2, etc to
> get the parameters and that works just fine.
> I would also like the app to not display its main stack when it is run with
> parameters. I saw some posts on the list archives that mentioned the -ui
> flag to achieve this but when I tried that, I got an error "exiting on
> signal 10". I'm guessing I can simply hide the mainstack to achieve this
> but wondered if there is any other way to do it.
> The above was all on a Mac but I'll need it to run on Windows as well.
> lcSQL Software <http://www.lcsql.com>
> Home of lcStackBrowser <http://www.lcsql.com/lcstackbrowser.html> and
> SQLiteAdmin <http://www.lcsql.com/sqliteadmin.html>
> use-livecode mailing list
> use-livecode at lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription preferences:
More information about the Use-livecode