View Full Version : Grabbing linux log file - problems


Phanerothyme
23-02-2005, 10:35
I'm trying to get a copy of /var/logs/messages onto my windows box -

ive done
cd /var/log/ <-- change directory to the log directory
scp messages /home/httpd/vhosts/<placename>/ <--copy the messages fileto an ftp accessible directory.

In the ftp app (Direct FTP) I am looking at the messages file and it is listed as 328Kb

When I download (mode set to auto) i get a blank file of 0 bytes?

Not sure what I am doing wrong here? Is it the ftp xfer mode (Ascii or binary) or something linux oriented that I have no idea about?

Help, thoughts comments welcome ! :)

JoeP
23-02-2005, 11:39
Try setting download mode to ASCII.

Also, do you have permissions on the file?

What's the CHOWN and CHMOD settings?

Cheers,

Joe :)

steev
23-02-2005, 12:52
If you have proper access to the linux box then you can do the following...

download psftp
http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html

run it

type
open hostname

login

cd /var/logs

lcd c:\ (or wherever)

get messages

Phanerothyme
23-02-2005, 17:45
twas chmod -

thanks again ppl!