[Top][All Lists]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
[Bug-wget] wget with no stdout delivers no result
From: |
Maurus Frey |
Subject: |
[Bug-wget] wget with no stdout delivers no result |
Date: |
Sat, 12 Dec 2009 15:54:24 +0100 |
User-agent: |
Thunderbird 2.0.0.23 (X11/20090817) |
Hi,
I'm regularly using wget without any problem for wide spread of web tasks.
Now I got a problem using wget (Ver. 1.12 - compiled from source) on a
"embedded" Linux device (running kernel 2.6.28 and busybox).
The following shell script works fine if called from the console. It
"doesn't work" if it's started from the background (crond) or with
redirected Output to /dev/null. "It doesn't work" means that there is a
empty Variable logged to syslog (by the command logger)
#!/bin/sh
wget -q -o /home/maus/wget.log -O /home/maus/wget.result
http://maus.blabla.ch/myip.php
IP=`cat /home/maus/wget.result`
logger $IP
rm /home/maus/wget.result
I'm confused completely from the fact, that the same script works fine
on my Linux (Mint [Ubuntu]) computer but not on the embedded device.
Any suggestions? Thanks.
regards
maurus
- [Bug-wget] wget with no stdout delivers no result,
Maurus Frey <=