From: Raveendran Jazzez Date: 2008-07-22T15:56:00+09:00 Subject: Re: Run command after Prompting from User... Usman Akram wrote: > so please any body tell me that how can i run the system command, by > using variable in the system() function....????? Hi Akram, May be it will help u more irb(main):003:0> a=`ipconfig` => "\r\nWindows IP Configuration\r\n\r\n\r\nEthernet adapter Local Area Connecti on:\r\n\r\n Connection-specific DNS Suffix . : \r\n IP Address. . . . . . . . . . . . : 192.168.1.45\r\n Subnet Mask . . . . . . . . . . . : 255.255.255.0\r\n Default Gateway . . . . . . . . . : 192.168.1.1\r\n" irb(main):004:0> a => "\r\nWindows IP Configuration\r\n\r\n\r\nEthernet adapter Local Area Connecti on:\r\n\r\n Connection-specific DNS Suffix . : \r\n IP Address. . . . . . . . . . . . : 192.168.1.45\r\n Subnet Mask . . . . . . . . . . . : 255.255.255.0\r\n Default Gateway . . . . . . . . . : 192.168.1.1\r\n" irb(main):005:0> Regards, P.Raveendran http://raveendran.wordpress.com -- Posted via http://www.ruby-forum.com/.