P
Pavel Pvl
i understand that using system returns a boolean. but how can i get the
actual output from the system command?
actual output from the system command?
Pavel said:i understand that using system returns a boolean. but how can i get the
actual output from the system command?
Tim said:Use backticks.
output = `command`
well the thing is that when using system, the output is a boolean
bc it
returns whether the system command executed successfully
ara.t.howard said:stdout = `#{ command }`
status = $?.exitstatus
for more try
gem install session
gem install open4
etc.
a @ http://codeforpeople.com/
Pavel said:well the thing is that when using system, the output is a boolean [...]
Sebastian said:Pavel said:well the thing is that when using system, the output is a boolean [...]
DON'T use system. Use backticks.
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.