| Author |
ftp a particualr file?
|
|
| kr.badrinath@gmail.com 2005-10-26, 6:01 pm |
| We have unix server in which we have various logs lieing.
>From windows machine/Desktop I wanted to run a program/batch file which
should access the unix machine and grep logs with particular id like
S1111.
need to get those logs to Desktop which all have entries of that
particular string.
as of now I am manually going to server and greping the particualar id
in the logs and FTPing it my local machine.
I just wanted to automate this.
I would really appreciate if you can help me regarding this issue.
| |
| Chris F.A. Johnson 2005-10-26, 6:01 pm |
| On 2005-10-26, kr.badrinath@gmail.com wrote:
> We have unix server in which we have various logs lieing.
>
> should access the unix machine and grep logs with particular id like
> S1111.
>
> need to get those logs to Desktop which all have entries of that
> particular string.
>
>
> as of now I am manually going to server and greping the particualar id
> in the logs and FTPing it my local machine.
>
> I just wanted to automate this.
Put the commands you use manually into a script and execute it by
ssh.
--
Chris F.A. Johnson <http://cfaj.freeshell.org>
========================================
==========================
Shell Scripting Recipes: A Problem-Solution Approach, 2005, Apress
<http://www.torfree.net/~chris/books/cfaj/ssr.html>
| |
| Bill Marcum 2005-10-26, 6:01 pm |
| On 26 Oct 2005 09:10:05 -0700, kr.badrinath@gmail.com
<kr.badrinath@gmail.com> wrote:
> We have unix server in which we have various logs lieing.
>
> should access the unix machine and grep logs with particular id like
> S1111.
>
Do you want to look for S1111 in the file names or file contents? If it
is the contents, you can ftp the files to your machine; or run a script
on the unix server via ssh; or use NFS or Samba to share files between
the two machines.
> need to get those logs to Desktop which all have entries of that
> particular string.
>
>
> as of now I am manually going to server and greping the particualar id
> in the logs and FTPing it my local machine.
>
If you use ssh, perhaps you can scp files from the server to your local
machine.
--
This life is a test. It is only a test. Had this been an actual life, you
would have received further instructions as to what to do and where to go.
| |
| kr.badrinath@gmail.com 2005-10-26, 6:01 pm |
| Hi,
I am not looking for the contents of FILE.
sorry ! I forgot mention earlier that I am not supposed to create any
shell script on unix box.
So is there any way I can send grep commands to search particular id in
the unixlogs from my windows Desktop.
Thx
|
|
|
|