Forum: Ruby on Rails Execute shell command from Rails

Announcement (2017-05-07): www.ruby-forum.com is now read-only since I unfortunately do not have the time to support and maintain the forum any more. Please see rubyonrails.org/community and ruby-lang.org/en/community for other Rails- und Ruby-related community platforms.
Chuong Huynh (Guest)
on 2007-01-23 12:19
(Received via mailing list)
Hi all,

Can anyone tell what is the way to execute OS shell command from within
Rails programs? I tried to use "exec" but it terminate the console
(which
run "ruby script/server" originally).

Thank you very much.

- Chuong
This topic is locked and can not be replied to.