04-19-2009
2 questions regarding the WGET command
I'm using the "wget" command to get the date from Yahoo.com. So this is what I use on Solaris:
/usr/sfw/bin/wget --timeout=3 -S
Yahoo!
This works well when my computer is linked to the Net. But when it's not, this command just hangs. I thought putting the timemout = 3 will make this command stop in 3 seconds, but it doesn't. Does anyone know what the exact command is to make this command stop after a few seconds if it can't make a connection to the Net?
Also, when this command runs successfully, it creates a file called "index.html" What do I need to do so that it doesn't automatically create the file "index.html" in my local directory? Thanks.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hi All,
I think wget command would not download any directories. But please confirm it. If it downloads directories, please let me know how to do it.
Thank you. (1 Reply)
Discussion started by: ThrdF
1 Replies
2. Shell Programming and Scripting
hi
I was run thix command(wget) it was runing in some severs
but in some servers it wasn't run ??
......
how to it run in that server ?
thx
:( (1 Reply)
Discussion started by: XPS
1 Replies
3. UNIX for Dummies Questions & Answers
I was recently reading a manual of wget and there was command as "binding-address" and I read about tcp/ip binding but i don't understand one thing is...what is the use of binding address in wget..
Can anyone help me with this. (6 Replies)
Discussion started by: jFreak619
6 Replies
4. Shell Programming and Scripting
I need to get the current date off a remote site, such as Google or Yahoo.
Does anyone know how to use the wget command on a Solaris 10 system to do this? I recall a long time ago, where using "wget" will get a bunch of info off a site, and then, you can extract the date from all of that info.
... (6 Replies)
Discussion started by: newbie09
6 Replies
5. Shell Programming and Scripting
Hi All,
While using below command I am getting some unusual character in Release.txt file.How could I remove or stop them to go into Release.txt file
wget -q http://m0010v.prod.wspan.com/nggfmonatl/Default.aspx
cat Default.aspx|egrep -in "EFS|HOTFIX" | awk -F/ '{print $(NF-1)}'|cut -d... (1 Reply)
Discussion started by: anuragpgtgerman
1 Replies
6. Shell Programming and Scripting
Hi ,
Iam using " WGET " command to hit the URL,i.e. servlet url.
I can trigger the servlet using wget but when servlet is not responding this command retries automatically until it get the positive response from the server.
So this script is running for more than 8 hrs to get the positive... (2 Replies)
Discussion started by: vinothsekark
2 Replies
7. UNIX for Dummies Questions & Answers
Dear all,
I would like to use the wget command to download on my laptop some free e-books for then being able to read them when I am off the internet.
could you please let me know, what is the best of doing that?
Let's say, I want download the bible that can be found here:
The Project... (3 Replies)
Discussion started by: freddie50
3 Replies
8. Shell Programming and Scripting
Hello friends,
I've been working on a solaris server,
I need to test responses of a web service using WGET command, if the response is successful, how quick it is etc.
I have scirpt like this, I modified it, i try to redirect the output of time command to total.txt but i couldn't manage, i... (4 Replies)
Discussion started by: EAGL€
4 Replies
9. Shell Programming and Scripting
If there were 3 files put in a folder on /Desktop/Test then transferred to a site.
would
gzip -r /Desktop/Test zip them so that
wget --http-user cmccabe --http -passwd xxxx*** https://something.sharefile.com/login.aspx -O - | tar -zxf - could be used to connect to the site, login,... (6 Replies)
Discussion started by: cmccabe
6 Replies
10. Shell Programming and Scripting
hi,
i need help for downloading excel file from internet and convert it to text file
wget http://spreadsheetpage.com/downloads/xl/wordfrequency.xls (4 Replies)
Discussion started by: raghur77
4 Replies
LEARN ABOUT DEBIAN
finance::quote::yahoo::brasil
Finance::Quote::Yahoo::Brasil(3pm) User Contributed Perl Documentation Finance::Quote::Yahoo::Brasil(3pm)
NAME
Finance::Quote::Yahoo::Brasil - Fetch Brasiln stock quotes via Yahoo.
SYNOPSIS
use Finance::Quote;
my $q = Finance::Quote->new;
my %info = $q->fetch("yahoo_brasil","BHP"); # Use this module only.
my %info = $q->fetch("brasil","BHP"); # Failover with other methods.
DESCRIPTION
This module allows information to be fetched from Yahoo abouts stocks traded on the Brasilian Stock Exchange.
This module is loaded by default on a Finance::Quote object, although it can be explicitly loaded by passing the argument "Yahoo::Brasil"
to Finance::Quote->new().
This module provides both the "brasil" and "yahoo_brasil" fetch methods. You should use the "brasil" method if you wish to allow failovers
to other sources, and "yahoo_brasil" if you only want to obtain quotes from this module.
Information obtained via this module is governed by Yahoo's terms and conditions, see http://br.finance.yahoo.com/ for more details.
LABELS RETURNED
This module returns all the standard labels (where available) provided by Yahoo, as well as the currency label. See
Finance::Quote::Yahoo::Base for more information.
SEE ALSO
Yahoo Brasil, http://br.finance.yahoo.com/
Finance::Quote::Yahoo::Base
perl v5.14.2 2014-03-03 Finance::Quote::Yahoo::Brasil(3pm)