i understand that using system returns a boolean. but how can i get the
actual output from the system command?
Pavel P. wrote:
i understand that using system returns a boolean. but how can i get the
actual output from the system command?
Use backticks.
output = command
Tim H. wrote:
Pavel P. wrote:
i understand that using system returns a boolean. but how can i get the
actual output from the system command?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
On Dec 22, 2007, at 9:09 PM, Pavel P. wrote:
well the thing is that when using system, the output is a boolean
bc it
returns whether the system command executed successfully
stdout = #{ command }
status = $?.exitstatus
for more try
gem install session
gem install open4
etc.
ara.t.howard wrote:
On Dec 22, 2007, at 9:09 PM, Pavel P. wrote:
well the thing is that when using system, the output is a boolean
bc it
returns whether the system command executed successfullystdout =
#{ command }
status = $?.exitstatusfor more try
gem install session
gem install open4etc.
other way around (unless im wrong). i want the output rather then the
exit status. i tried this out but it still gave me only the exti status
Pavel P. wrote:
well the thing is that when using system, the output is a boolean […]
DON’T use system. Use backticks.
Sebastian H. wrote:
Pavel P. wrote:
well the thing is that when using system, the output is a boolean […]
DON’T use system. Use backticks.
i finally realized that a backtick is a `. sorry amd thank you very
much