I need help to check content of ftp log files. I forgot to say that I am on Solaris 9. I am using KSH.
I have 2 log files.
Here is an example of content :
LOG File from 21 October
Code:
-rw-rw-r-- 1 cvbntr xarf 94974 Nov 1 2009 TAG__SC___2006175_0.TAB
-rw-rw-r-- 1 cvbntr xarf 94974 Nov 1 2009 TAG__SC___2006175_0.HDR
-rw-rw-r-- 1 cvbntr xarf 3563 May 8 04:07 TAG__KSM__2012063_0.HDR
-rw-rw-r-- 1 cvbntr xarf 3585 May 8 04:07 TAG__KSO__2012063_0.HDR
-rw-rw-r-- 1 cvbntr xarf 95106 Aug 31 12:56 MAG__KSO__2012171_0.TAB
-rw-rw-r-- 1 cvbntr xarf 3647 Aug 31 12:56 MAG__KSO__2012171_0.HDR
-rw-rw-r-- 1 cvbntr xarf 83424 Oct 21 02:41 TAG__SC___2012230_0.TAB
-rw-rw-r-- 1 cvbntr xarf 3602 Oct 21 02:41 TAG__SC___2012230_0.HDR
LOG File from 22 October
Code:
-rw-rw-r-- 1 cvbntr xarf 95974 Nov 1 2009 TAG__SC___2006175_0.TAB
-rw-rw-r-- 1 cvbntr xarf 95974 Nov 1 2009 TAG__SC___2006175_0.HDR
-rw-rw-r-- 1 cvbntr xarf 3563 May 8 04:07 TAG__KSM__2012063_0.HDR
-rw-rw-r-- 1 cvbntr xarf 3585 May 8 04:07 TAG__KSO__2012063_0.HDR
-rw-rw-r-- 1 cvbntr xarf 95106 Aug 31 12:56 MAG__KSO__2012171_0.TAB
-rw-rw-r-- 1 cvbntr xarf 3647 Aug 31 12:56 MAG__KSO__2012171_0.HDR
-rw-rw-r-- 1 cvbntr xarf 83424 Oct 22 02:41 TAG__SC___2012230_0.TAB
-rw-rw-r-- 1 cvbntr xarf 3602 Oct 22 02:41 TAG__SC___2012230_0.HDR
What I need :
1 : Find the new files : Files that does not exist on the old ftp log file : print date size & filename
2 : Find the files with a grather size on the new log file ( compare to the old ftp log file ) : : print date size & filename
NOTE : I can't trust dates of files as some old files may be reprocess and get a new date, and some others not. ( I assume you imagine the mess )
Here is output needed as an example :
Code:
RESULT PART 1 : 0
RESULT PART 2 :
Nov 1 2009 95974 TAG__SC___2006175_0.TAB
Nov 1 2009 95974 TAG__SC___2006175_0.HDR
Hello,
A couple of times per week, i receive emails notifications when files are available for processing.
Currently i read these eamails with a java program and store the attachement on my C: drive and would now like to generate a PC script to send this file name up to UNIX-Solaris and... (3 Replies)
Hello,
I am new to unix , and I need to create a shell sciprt which helps me FTPing file from LAn to Unix box.
These files r then processed using Perl script and put in a database.
I also need to log the entire process of all the above methods in a log file in the same shell script.
Like ,... (2 Replies)
hi,
I have one file located in ftp.I want to place that file in different ftp location.
Up to now i am doing it manually using get command and copying that file in to my local system and then putting that file in different ftp using put command.
now i want to automate that using shell... (1 Reply)
Hi,
We have some clients who will place huge files in to one of the remote server.
And the shell script written in our local server to retrieve client files (using FTP) placed on one of the remote server of ours by clients.
My question Is there any FTP command/script to check from my local... (1 Reply)
Hi,
I am getting error when i am deleting file from FTP and also transferring file from local to FTP server.
I am getting 221 error. I am getting this error some time only.
Some time the existing file from FTP is deleted and file from local directory is transferred to FTP server.
... (2 Replies)
Hi all..
The following set of statements is used in a shell script to ftp a file to a remote machine
I want to redirect the ftp messages thrown by the first ftp statement to a log file. As you can see there is a logic downstream to decide if the ftp was a success or not. But i am not... (5 Replies)
Hi,
I need to create a script that checks if a file exists on an offsite server
which only has ftp enabled. I was originally going to use perls Net::FTP
class but the client does not have perl installed nor wants it.
So, I have to use a shell script which logs into the server, then ... (1 Reply)
Hi Guys
I did a forum search for "ftp scripts" Looked at 8 pages and didnt see anything that would help. Most seem to be logging into a ftp server and transfering files.
What I need to do is login to a FTP server. Goto a folder and list it so it showes newest files first. It would be nice to... (4 Replies)
Hello All,
I am trying to connect to ftp server and get the files. Also i need to rename the file in other ftp dir.
rename method is not allowing me to rename the file in other dir. When i tried copy command by using net::FTP:FILE then perl says it is not installed.
Can some body help me to... (2 Replies)
OS: Solaris 9
Configuration /etc/syslog.conf
daemon.debug
/etc/inetd.conf
ftp stream tcp6 nowait root /usr/sbin/in.ftpd in.ftpd -A -l -d
Found the ftp.log only generate those entries from other servers/hosts.
Can we trace on all ftp entries either from/to the server?
... (6 Replies)
Discussion started by: KhawHL
6 Replies
LEARN ABOUT CENTOS
ftpusers
FTPUSERS(5) Linux Programmer's Manual FTPUSERS(5)NAME
ftpusers - list of users that may not log in via the FTP daemon
DESCRIPTION
The text file ftpusers contains a list of users that may not log in using the File Transfer Protocol (FTP) server daemon. This file is
used not merely for system administration purposes but for improving security within a TCP/IP networked environment. It will typically
contain a list of the users that either have no business using ftp or have too many privileges to be allowed to log in through the FTP
server daemon. Such users usually include root, daemon, bin, uucp, and news. If your FTP server daemon doesn't use ftpusers then it is
suggested that you read its documentation to find out how to block access for certain users. Washington University FTP server Daemon
(wuftpd) and Professional FTP Daemon (proftpd) are known to make use of ftpusers.
Format
The format of ftpusers is very simple. There is one account name (or username) per line. Lines starting with a # are ignored.
FILES
/etc/ftpusers
SEE ALSO passwd(5), proftpd(8), wuftpd(8)COLOPHON
This page is part of release 3.53 of the Linux man-pages project. A description of the project, and information about reporting bugs, can
be found at http://www.kernel.org/doc/man-pages/.
Linux 2000-08-27 FTPUSERS(5)