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!
external file not being created using launch command.
Moderators: FourthWorld, heatherlaine, Klaus, kevinmiller, robinmiller
Re: external file not being created using launch command.
Hi tasdvl9,
Since it works with the command line you should be able to shell("yourFile").
Simon
Since it works with the command line you should be able to shell("yourFile").
Simon
I used to be a newbie but then I learned how to spell teh correctly and now I'm a noob!
Re: external file not being created using launch command.
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!
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.
Code: Select all
launch(applicationname.exe)
answer the result
Knowledge is meant to be shared.