Afficher un message
Vieux 31/03/2008, 21h56   #5
Marc Heiler
Aucun Avatar
 
Messages: n/a
Hébergeur:
Par défaut Re: how to restart the system with our code

Vamsi Krishna,
Any command/combination you use in your shell, you can use from ruby too

system "the command"
or
return_value = `the_command`


There are more ways, but system is the easiest one.
--
Posted via http://www.ruby-forum.com/.

  Réponse avec citation
 
Page generated in 0,04663 seconds with 9 queries