The UNIX and Linux Forums  
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.

Go Back   The UNIX and Linux Forums > Top Forums > Shell Programming and Scripting
.
google unix.com




View Single Post in the UNIX and Linux Forums - Click on the Thread or Permalink to View Entire Thread -->
  #4 (permalink)  
Old 11-17-2008
yongitz yongitz is offline
Registered User
  
 

Join Date: Apr 2008
Location: Philippines
Posts: 68
Quote:
Originally Posted by Lakris View Post
Hi,
to assign the output of wget to string1 You should use this insted:
Code:
string1=$(wget --dns-timeout=0.001 http://napdweb${i}.eao.abn-iad.ea.co.../test/test.jsp)
I doubt if it will work with wget(assigning the output of wget to string1), at least with my box, I didn't get any output..

Code:
yongitz@wolfgang:~$ string1=$(wget --dns-timeout=0.001 http://napdweb${i}.eao.abn-iad.ea.com:8000/webcore/test/test.jsp)
--14:18:38--  http://napdweb.eao.abn-iad.ea.com:8000/webcore/test/test.jsp)
           => `test.jsp'
Resolving napdweb.eao.abn-iad.ea.com... failed: Connection timed out.
yongitz@wolfgang:~$ echo $string1

yongitz@wolfgang:~$
Or I am just missing something...