run an operating system command with system: : system « Development « Ruby






run an operating system command with system:


system "echo 'Hello, Matz!'"

 








Related examples in the same category

1.Getting Results from Other Programs
2.submit each part of a command separately, as an argument to system:
3.Create a zero-length file with a system command
4.Run notepad.exe with system function