03-29-2008
Help with wget
Hi,
i need temperature hourly from a web page
Im using wget to get the web page. I would like to save the page downloaded in a file called
page. I check the file everytime i run the wget function but its
not saving but instead
creates a wx.php file....Each time i run it...a new wx.php file is created...but ITS NOT SAVING the page to
page.....WHY
here's my code:
page=$(wget
Newcastle Weather Forecast)
temperature=$(cat page | grep -o"Temperature:[[:space]]*[0-9][0-9]*" | grep -E -o "[0-9]+")
please help!
Last edited by vadharah; 03-29-2008 at 12:42 PM..
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have noticed a lot of expensive books appearing
online so I have decided to copy them to CD.
I was going to write a program in java to do this,
but remembered that wget GNU program some of
you guys were talking about.
Instead of spending two hours or so writing a
program to do this.... (1 Reply)
Discussion started by: photon
1 Replies
2. Shell Programming and Scripting
i am trying to ftp files/dirs with wget. i am having an issue where the path always takes me to my home dir even when i specify something else. For example:
wget -m ftp://USER:PASS@IP_ADDRESS/Path/on/remote/box
...but if that path on the remote box isn't in my home dir it doesn't change to... (0 Replies)
Discussion started by: djembeplayer
0 Replies
3. Shell Programming and Scripting
Hi
I want to download some files using wget , and want to save in a specified directory. Is there any way to save it.Please suggest me. (1 Reply)
Discussion started by: mnmonu
1 Replies
4. Shell Programming and Scripting
can someone please help in understanding this shell script?
wget --progress=dot:mega --cut-dirs=4 -r -c -nH -np --reject index.html*,icons/*.gif \
http://*****.oz.xxxxx.com:<portnum>/omcsm/releases/dew/${UPGRADE_VERSION}/ (1 Reply)
Discussion started by: dnam9917
1 Replies
5. UNIX for Dummies Questions & Answers
...... (1 Reply)
Discussion started by: hoo
1 Replies
6. Shell Programming and Scripting
Hi Friends,
I have an url like this
https://www.unix.com/help/
In this help directory, I have more than 300 directories which contains file or files.
So, the 300 directories are like this
http://unix.com/help/
dir1
file1
dir2
file2
dir3
file3_1
file3_2... (4 Replies)
Discussion started by: jacobs.smith
4 Replies
7. Red Hat
If I run the following command
wget -r --no-parent --reject "index.html*" 10.11.12.13/backups/
A local directory named 10.11.12.13/backups with the content of web site data is created.
What I want to do is have the data placed in a local directory called $HOME/backups.
Thanks for... (1 Reply)
Discussion started by: popeye
1 Replies
8. UNIX for Dummies Questions & Answers
How can I download only *.zip and *.rar files from a website <index> who has multiple directories in root parent directory?
I need wget to crawl every directory and download only zip and rar files. Is there anyway I could do it? (7 Replies)
Discussion started by: galford
7 Replies
9. Shell Programming and Scripting
Can wget be used to goto a site and piped into a .gz extrated command?
wget ftp://ftp.ncbi.nlm.nih.gov/pub/clinvar/vcf_GRCh37 | gunzip -d clinvar_20150603.vcf.gz (1 Reply)
Discussion started by: cmccabe
1 Replies
10. Shell Programming and Scripting
Hi,
I need to download a zip file from my the below US govt link.
https://www.sam.gov/SAMPortal/extractfiledownload?role=WW&version=SAM&filename=SAM_PUBLIC_MONTHLY_20160207.ZIP
I only have wget utility installed on the server.
When I use the below command, I am getting error 403... (2 Replies)
Discussion started by: Prasannag87
2 Replies
LEARN ABOUT DEBIAN
psensor
PSENSOR(1) User Commands PSENSOR(1)
NAME
psensor - Temperature monitoring application
SYNOPSIS
psensor [OPTION]...
DESCRIPTION
psensor is a GTK application for monitoring hardware sensors, including temperatures and fan speeds.
It displays a curve for each sensor, and uses Desktop Notification to raise an alarm when a temperature is too high. On Ubuntu an Applica-
tion Indicator is also available, its icon changes when a temperature alert is raised.
It can monitor:
* the temperature of the motherboard and CPU sensors (using lm-sensors).
* the temperature of the NVidia GPUs (using XNVCtrl).
* the temperature and fan rotation speed of the ATI GPUs.
* the temperature of the Hard Disk Drives (using hddtemp).
* the rotation speed of the fans (using lm-sensors).
* the sensors of a remote computer (using psensor-server).
Psensor requires lm-sensors to be correctly installed and configured, it can be checked by running the command 'sensors'. If it has never
be done, you may need to run the command 'sensors-detect' and follow the instruction. See the manpages of sensors(1) and sensors-detect(8)
for more information.
To retrieve the temperature of the Hard Disk Drives, the hddtemp daemon must be running.
For remote monitoring:
* start psensor-server(1) on the remote computer
* run psensor with '--url' option: 'psensor --url=http://localhost:3131'
ATI/AMD GPUs monitoring is available if the library libatiadlxx is present in the directory /usr/lib and psensor has been compiled with the
ATI ADL SDK.
Log is written to '$HOME/.psensor/log'.
OPTIONS
-h, --help
display this help and exit
-v, --version
display version information and exit
-u, --url=URL
the URL of the psensor-server, example: http://hostname:3131
-d, --debug=LEVEL
set the debug level, integer between 0 and 3
REPORTING BUGS
Report bugs to: jeanfi@gmail.com
psensor home page: <http://wpitchoune.net/psensor>
COPYRIGHT
Copyright (C) 2010-2012 jeanfi@gmail.com License GPLv2: GNU GPL version 2 or later <http://www.gnu.org/licenses/old-licenses/gpl-2.0.html>
This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law.
SEE ALSO
psensor-server(1), sensors(1), sensors-detect(8), hddtemp(8)
psensor 0.6.2.17 March 2012 PSENSOR(1)