U
Usman Akram
Hi,
i am new in Ruby, and i got a problem, that is when i run the system
command..
i want to add users to the Linux OS, so for that i have to prompt
the username from the user, and i store that username in a variable,
Now please tell me that how can i use that variable in the system()
function of Ruby...
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....?????
from
Name: Lucky
Email: (e-mail address removed)
i am new in Ruby, and i got a problem, that is when i run the system
command..
i want to add users to the Linux OS, so for that i have to prompt
the username from the user, and i store that username in a variable,
Now please tell me that how can i use that variable in the system()
function of Ruby...
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....?????
from
Name: Lucky
Email: (e-mail address removed)