Re: OT: unathorized network user.

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Bob Goodwin wrote:
Tim wrote:
On Sun, 2008-01-27 at 11:39 -0500, Bob Goodwin wrote:
Now if only I could get it to actually mail me it's logged data.  I
told it to do so, but that doesn't work and I can't find the log files
except via the browser screen?

A CRON job to wget the logs from the device's HTTP server?


Except I do not know enough to make wget do the job.

wget --user=xxxxxxxx --password=xxxxxxxx 192.168.1.1 -o logwb

Produces:

cat logwb

--04:06:09--  http://192.168.1.1/
          => `index.html.2'
Connecting to 192.168.1.1:80... connected.
HTTP request sent, awaiting response... 200 OK
Length: 1,210 (1.2K) [text/html]

0K . 100% 129.36 KB/s

04:06:09 (129.36 KB/s) - `index.html.2' saved [1210/1210]


When viewed in the browser "index.html.2" produces the error msg:

Firefox can't find the file at /root/Desktop/start.htm.


   *   Check the file name for capitalization or other typing errors.

   *   Check to see if the file was moved, renamed or deleted.

wget connects but I don't know how to tell it to collect the log file?

Any thoughts on how to do that?

I don't think wget is the right tool for this; I prefer scp (tunnels through ssh) or rsync (ditto).

wget needs an ftp or http server at the other side, that has access to the logs. I'd not ordinarily allow that.

Another possibility is a cron job to mail the logs:
mail -s "Here's today's log" smith#example.com <logfile



--

Cheers
John

-- spambait
1aaaaaaa@xxxxxxxxxxxxxxxx  Z1aaaaaaa@xxxxxxxxxxxxxxxx
-- Advice
http://webfoot.com/advice/email.top.php
http://www.catb.org/~esr/faqs/smart-questions.html
http://support.microsoft.com/kb/555375

You cannot reply off-list:-)


[Index of Archives]     [Current Fedora Users]     [Fedora Desktop]     [Fedora SELinux]     [Yosemite News]     [Yosemite Photos]     [KDE Users]     [Fedora Tools]     [Fedora Docs]

  Powered by Linux