Results 1 to 3 of 3

Thread: Lianja.spawnApp() ???

  1. #1
    Lianja MVP
    Join Date
    Feb 2012
    Location
    Berea, KY, USA
    Posts
    2,185

    Lianja.spawnApp() ???

    In a previous thread, Barry mentioned Lianja.spawnApp()

    It does not seem to be documented in the Wiki: should it be?

    Should it be callable from the App Builder console?

    The reason I ask is that I can call a prg with it and get no error; but there is also no evidence that the prg is running. Executing
    Code:
    ? lianja.spawnapp("testspawn.prg")
    returns .T.

    So, just in case I'm missing some of the secret sauce recipe...

    thanks,

    Hank
    Last edited by HankFay; 2014-03-14 at 10:49.

  2. #2
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    That's probably because that's not an app it's a prg file. I would need to look in the code (I'm not on my computer at the moment) but I think it just takes an app name.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

  3. #3
    Lianja Development Team barrymavin's Avatar
    Join Date
    Feb 2012
    Location
    UK, USA, Thailand
    Posts
    7,165
    Blog Entries
    22
    In fact I stand corrected, my code will run .prg, .php, .py. .js and app files.

    Code:
    result = Lianja.spawnApp(filename | appname, [username, [password, [args] ] ])
    if result
      // process is running
    endif
    You may need to set the path of the filename if its not an App.
    Principal developer of Lianja, Recital and other products

    Follow me on:

    Twitter: http://twitter.com/lianjaInc
    Facebook: http://www.facebook.com/LianjaInc
    LinkedIn: http://www.linkedin.com/in/barrymavin

Bookmarks

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
Journey into the Cloud
Join us