Getting Results from Other Programs : system « Development « Ruby






Getting Results from Other Programs

x = system("date")
x = 'date'

 








Related examples in the same category

1.run an operating system command with system:
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