0
Fixed

popen

Jan Oost 5 years ago updated by Vladimir Ovchinnikov (expert) 5 years ago 7

When I use Popen to execute i.e.  'dir'. I won't get any result. 

I use the example from: https://dev.iridi.com/Systems_API/en#Popen

Under review

Hello.

Using Windows?

Hello.

Check how your project works on this version.

iRidiumServer32_ProDebug.zip

Attention! Only for tests! Unpack the contents of the archive into a directory:

C:\Program Files (x86)\iRidium Ltd\iRidium Pro\Server\

Start iRidiumServer32_ProDebug.exe

Hi Vladimir,

Sorry for the delay. Yes it runs on Windows ('dir' is Windows command :-)

I tried to run the server, but get a vld_x86.dll was not found error. 

I am happy to run another test, but I found a different way to solve my problem. Initially I used it to run the command: 'TYPE test.txt', to read a text file, but I found out that IR.OpenFile works much better.

Regards,

Jan Oost

Hi Vladimir,

The debug server runs fine now, but still no satisfying result when I run i.e. dir. I checked again the ping. And sometimes it passes all 4 pings. Then I saw last ping result line cut in half. And then the last line was missing all the time.

I hope you can reproduce it on your systems too.

For my project I don't need to have this issue solved anymore, because I use an alternative solution. But if my system is the only one producing this issue, then I am happy to help.

Regards,

Jan Oost

Hello.

dir is not an external command that can be run. It's a command internal to the Windows Command Prompt. You'll need to call your program as"cmd /c dir" to do that.