Page 1 of 1

external file not being created using launch command.

Posted: Wed Sep 24, 2014 7:19 pm
by tasdvl9
Hi,

I have an external C program I am running which creates a file and then writes to this file.
My LiveCode app launches this external C app. However, the file which should be created by my external app never does get created in this scenario.
If I run the external application by itself on the command line the file always is created.

I am using:
launch(applicationname.exe)

Do I need to specify more parameters?

Any insights?

Thanks!

Re: external file not being created using launch command.

Posted: Wed Sep 24, 2014 7:37 pm
by Simon
Hi tasdvl9,
Since it works with the command line you should be able to shell("yourFile").

Simon

Re: external file not being created using launch command.

Posted: Wed Sep 24, 2014 7:45 pm
by tasdvl9
Hi Simon,

Thanks for the response. The only issue is the shell command is blocking. My external C executable is constantly
writing to a file while(1) . I'd like to execute my C program, have it run in the background and then use my LiveCode app to
look at the file which was created by the C application. Unfortunately, the file is never created. It is only created when I run the
C app from the command line.

Any other suggestions?

Thanks!

Re: external file not being created using launch command.

Posted: Mon Sep 29, 2014 5:13 pm
by zaxos

Code: Select all

launch(applicationname.exe)
answer the result
what does that say?