This link has been bookmarked by 11 people . It was first bookmarked on 25 Sep 2007, by swan lin.
-
24 Feb 15
-
it returns true if the command was found and executed properly. It returns false if command exited with a nonzero exit status, and nil if the command failed to execute
-
-
27 Jun 14
-
05 May 11
-
Another way to spawn a separate process is to use the Kernel method system.
-
-
30 Apr 11
-
18 Sep 10
-
It's worth knowing that a special kind of string exists that uses the back-tick (`)
-
The command output string is sent to the operating system as a command to be executed
-
system("tar xzf test.tgz")
-
-
25 Sep 07
-
does not have anything in it at all; we call that an empty string.
-
puts 'It\'s my Ruby'
-
n Ruby, strings are mutable. They can expand as needed, without using much time and memory. Ruby stores a string as a sequence of bytes.
-
The command output string is sent to the operating system as a command to be executed
-
Would you like to comment?
Join Diigo for a free account, or sign in if you are already a member.