From: Tim Hunter Date: 2008-07-22T01:47:00+09:00 Subject: Re: Run command after Prompting from User... Usman Akram wrote: > i do this but not working :-( > > user_name = gets > > system ('adduser -m $user_name') > > so please any body tell me that how can i run the system command, by > using variable in the system() function....????? U:>irb irb(main):001:0> user_name = "timothy" => "timothy" irb(main):002:0> puts "user_name is #{user_name}" user_name is timothy See "Strings" here: http://ruby-doc.org/docs/ProgrammingRuby/html/tut_stdtypes.html -- Posted via http://www.ruby-forum.com/.