Os.capture nil value

Hi there!

I am trying to call the freesound api via

os.capture(“curl ‘https://freesound…‘“, 1)

On Linux it works fine, but when I am using
this command under Windows it doesn’t work due
to the fact that

os.capture = nil

Ok, when I look at the functions of os “capture” is not listed but the terminal
suggests it to me (see screenshot).

I will try this outputs on Linux if I have more time.

Have anyone some suggestions how to deal with that or what
causes this to work on linux but nor on win (any security things?)

Greetings
Gelbi

Maybe give this method a try instead:

Here is an example code:

Ok thanks!

Tried it under LInux - it works. In the evening I will try it on win…lets see :wink:

1 Like

Yep,

io.popen() works in win.

Thanks

1 Like

This topic was automatically closed 2 days after the last reply. New replies are no longer allowed.