<html><head><style type="text/css"><!-- DIV {margin:0px;} --></style></head><body><div style="font-family:arial,helvetica,sans-serif;font-size:10pt"><div>Hi<br><br>I am trying get an url from from file (sslvpn_host_name.txt) which is <span style="font-weight: bold;">sslvpn.blr.novell.com</span> and tyring to make it as<br>"<span style="font-weight: bold;"><span><a target="_blank" href="http://sslvpn.blr.novell.com:8080/sslvpn/login">http://sslvpn.blr.novell.com:8080/sslvpn/login</a></span></span>" by concatenating of String.<br><br>my scripts is here:<br><br>begin<br>system("echo #{Time.now}:url from /root/sslvpn_host_name.txt >> sslvpnconn.log") <br><br>ssl_url_File="/root/sslvpn_host_name.txt"
<br>f=File.open(ssl_url_File)
<br>String url ="full_url_of_sslvpn_server"
<br>File.open(ssl_url_File).each { |line|
<br> url=line }<br><br>puts url<br>full_url = "<font style="font-weight: bold;" size="3"><span><a target="_blank" href="http://%22+url+%22:8080/sslvpn/login">http://"+url+":8080/sslvpn/login</a></span></font>"<br>puts full_url ### <---Output want here<br><br>rescue<br>system("echo #{Time.now}:: create sslvpn_host_name.txt.Only ssl-url in it. >> sslvpnconn.log")<br>exit 0<br>end<br>But my output is coming correct up <font style="font-weight: bold;" size="3"><span><a target="_blank" href="http://sslvpn.blr.novell.com">http://sslvpn.blr.novell.com</a> only</span><br></font><font size="3">but </font><font style="font-weight: bold;" size="3"> :8080/sslvpn/login </font><font size="3">is </font><font size="3">coming in next line.<br>I tried a lots but it fails. I think some problem in colon(:)<br>I want full url in single line as<br><br></font><font style="font-weight: bold;" size="3"><span>"<a target="_blank"
href="http://sslvpn.blr.novell.com:8080/sslvpn/login">http://sslvpn.blr.novell.com:8080/sslvpn/login</a>"</span></font><br><font style="font-weight: bold;" size="3"><br>Please help me out.<br>Thanks<br>RAJ<br></font></div></div><br>
<!--3--><hr size=1></hr> Now surf faster and smarter ! Check out the new Firefox 3 - Yahoo! Edition * <a href="http://in.rd.yahoo.com/tagline_firefox_1/*http://downloads.yahoo.com/in/firefox/?fr=om_email_firefox"> Click here!</a></body></html>