Ruby's %x{} -- running system commands

D

Daniel Waite

The command I execute within %x{...}, if executed on the command line,
works perfectly, every time.

If I run the same command within Ruby's %x{...}, I get mixed results.
Sometimes a blank string, other times the expected output.

Why?
 
R

Ryan Davis

The command I execute within %x{...}, if executed on the command line,
works perfectly, every time.
=20
If I run the same command within Ruby's %x{...}, I get mixed results.
Sometimes a blank string, other times the expected output.
=20
Why?

We can't possibly answer that without more information. Provide us =
enough information that we might be able to see the problem.
 

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
473,744
Messages
2,569,484
Members
44,903
Latest member
orderPeak8CBDGummies

Latest Threads

Top