From rajkumarmeena09 at yahoo.in Tue May 12 03:07:49 2009 From: rajkumarmeena09 at yahoo.in (Raj Kumar) Date: Tue, 12 May 2009 12:37:49 +0530 (IST) Subject: [Wtr-general] not able to get url as String from file Message-ID: <247872.53755.qm@web95112.mail.in2.yahoo.com> Hi I am trying get an url from from file (sslvpn_host_name.txt) which is sslvpn.blr.novell.com and tyring to make it as "http://sslvpn.blr.novell.com:8080/sslvpn/login" by concatenating of String. my scripts is here: begin system("echo #{Time.now}:url from /root/sslvpn_host_name.txt >> sslvpnconn.log") ssl_url_File="/root/sslvpn_host_name.txt" f=File.open(ssl_url_File) String url ="full_url_of_sslvpn_server" File.open(ssl_url_File).each { |line| url=line } puts url full_url = "http://"+url+":8080/sslvpn/login" puts full_url ### <---Output want here rescue system("echo #{Time.now}:: create sslvpn_host_name.txt.Only ssl-url in it. >> sslvpnconn.log") exit 0 end But my output is coming correct up http://sslvpn.blr.novell.com only but :8080/sslvpn/login is coming in next line. I tried a lots but it fails. I think some problem in colon(:) I want full url in single line as "http://sslvpn.blr.novell.com:8080/sslvpn/login" Please help me out. Thanks RAJ Now surf faster and smarter ! Check out the new Firefox 3 - Yahoo! Edition http://downloads.yahoo.com/in/firefox/?fr=om_email_firefox -------------- next part -------------- An HTML attachment was scrubbed... URL: From zeljko.filipin at gmail.com Mon May 25 06:18:47 2009 From: zeljko.filipin at gmail.com (=?UTF-8?Q?=C5=BDeljko_Filipin?=) Date: Mon, 25 May 2009 12:18:47 +0200 Subject: [Wtr-general] not able to get url as String from file In-Reply-To: <247872.53755.qm@web95112.mail.in2.yahoo.com> References: <247872.53755.qm@web95112.mail.in2.yahoo.com> Message-ID: I do not see how this is related to Watir. Also, Watir list moved to http://groups.google.com/group/watir-general/ ?eljko -------------- next part -------------- An HTML attachment was scrubbed... URL: