D
Damjan Rems
You can run linux command:
a = `ls /home`
and receive output in variable a.
But I would like /home to be variable. So I would invoke command like
this:
a = `"ls #{dir}"`
This of course doesn't work, but I hope you get the point.
a = system("ls #{dir}") works, but returns only true or false not the
standard output of command.
How can I get standard output of the command and use variable as
parameter?
by
TheR
a = `ls /home`
and receive output in variable a.
But I would like /home to be variable. So I would invoke command like
this:
a = `"ls #{dir}"`
This of course doesn't work, but I hope you get the point.
a = system("ls #{dir}") works, but returns only true or false not the
standard output of command.
How can I get standard output of the command and use variable as
parameter?
by
TheR