system() help

Z

zac elston

are there any docs describing how to get stderr vs stdout from a
system()?

@myresult = system(mycmd)
works only if I have stdout returned but not stderr.

thanks
 
E

Eero Saynatkari

zac said:
are there any docs describing how to get stderr vs stdout from a
system()?

@myresult = system(mycmd)
works only if I have stdout returned but not stderr.

You might want to look at IO.popen or Open3 from the
stdlib (Open3.popen) if you need anything more than
your platform's C system() call.


E
 

Ask a Question

Want to reply to this thread or ask your own question?

You'll need to choose a username for the site, which only take a couple of moments. After that, you can post your question and our members will help you out.

Ask a Question

Members online

No members online now.

Forum statistics

Threads
474,292
Messages
2,571,494
Members
48,170
Latest member
รับปั๊มไลค์|FastLike

Latest Threads

Top