Bir Ruby komut dosyasında Bash komutunu çalıştırmam gerekiyor. Bunu "6 Ways to Run Shell Commands in Ruby" by Nate Murray ve diğer birkaç googled kaynağına göre yapmak için yaklaşık 6 yol vardır.ruby execute bash komutu ile değişkenler
print "enter myid: "
myID = gets
myID = myID.downcase
myID = myID.chomp
print "enter host: "
host = gets
host = host.downcase
host = host.chomp
print "winexe to host: ",host,"\n"
command = "winexe -U domain\\\\",ID," //",host," \"cmd\""
exec command
"Sınıfı" hangi sınıfta beklersiniz? –