11-01-2001
ftp log
Hi,
I have been trying to write a script to maintain mu ftp log as to what time did the FTP start and till what time did it work
I was unable to do it after several attempts, may be b'cos i'am new to Shell scripting.
So can anyone provide me any solutions for this problem, as it would be really helpful
thax,
I'am working on linux and aix, and more over I really don't avenaything as a script. will any be able to help ne out
Thanx
Rajesh
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
We would like to see :
who is logging in to our box via ftp and what they did when logged in.
THis would also be of value if the client ftp'ing in cannot get logged in and we'd like to look at it from our side (The ftp server side)
So ..is there logging that can be turned on or available in... (2 Replies)
Discussion started by: ytakbob
2 Replies
2. Solaris
How to trace FTP activity / event in both servers?
Please advise.
Thank you. (3 Replies)
Discussion started by: KhawHL
3 Replies
3. AIX
Hi,
Where can I find FTP log location for AIX 4?
Thanks,
Itik (2 Replies)
Discussion started by: itik
2 Replies
4. Shell Programming and Scripting
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)
Discussion started by: agarwalniru
2 Replies
5. UNIX for Dummies Questions & Answers
I am trying to do the FTP using .netrc.In my .netrc file in $HOME dir i am placing the machine ip,user name and pwd.Then i am creating dynamically a file which contains the ftp commands.
My script is like below:
__________________________________
export REMOTE_DIR= <some path>
export... (4 Replies)
Discussion started by: dr46014
4 Replies
6. UNIX for Dummies Questions & Answers
Hello All,
Below is the control card or the file which i am using in shell script to mget files from remote machine via FTP.
bash-3.00$ cat ftp_ALD_DAC.log
open 10.xx.yy.zzz
user D00000187 nb8tr4xx2u
ascii
cd prod/out
lcd /Internal_Impact_TT_Input
mget ALD*.TXT
bye
Below is the... (0 Replies)
Discussion started by: Ariean
0 Replies
7. Shell Programming and Scripting
Hello,
I was wanting to know if there is any log/tracker for anonymous ftp activity for users that are logging in to our server. We migrated over to a new server and cleaning up some loose ends on the old server. We noticed that some files are being loaded on the old server via anonymous ftp.... (1 Reply)
Discussion started by: shorty
1 Replies
8. UNIX for Dummies Questions & Answers
Hi I'm here again.
This time I have a question that is not a really issue because I 've already found a workaround but I don't know if the behaviour is correct or not.
In my ksh shell I open a sftp connection to a remote machine.
this is the code:
sftp ${Csi_USER}@${Csi_HOST}<<EOF0 >>... (1 Reply)
Discussion started by: leobdj
1 Replies
9. Shell Programming and Scripting
Hello,
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
-rw-rw-r-- 1 cvbntr xarf 94974 Nov 1 2009 TAG__SC___2006175_0.TAB
-rw-rw-r-- 1 cvbntr ... (3 Replies)
Discussion started by: Aswex
3 Replies
10. Solaris
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
SCRIPT(1) BSD General Commands Manual SCRIPT(1)
NAME
script -- make typescript of terminal session
SYNOPSIS
script [-a] [-c COMMAND] [-e] [-f] [-q] [-t] [file]
DESCRIPTION
Script makes a typescript of everything printed on your terminal. It is useful for students who need a hardcopy record of an interactive
session as proof of an assignment, as the typescript file can be printed out later with lpr(1).
If the argument file is given, script saves all dialogue in file. If no file name is given, the typescript is saved in the file typescript.
Options:
-a Append the output to file or typescript, retaining the prior contents.
-c COMMAND
Run the COMMAND rather than an interactive shell. This makes it easy for a script to capture the output of a program that behaves
differently when its stdout is not a tty.
-e Return the exit code of the child process. Uses the same format as bash termination on signal termination exit code is 128+n.
-f Flush output after each write. This is nice for telecooperation: One person does `mkfifo foo; script -f foo' and another can super-
vise real-time what is being done using `cat foo'.
-q Be quiet.
-t Output timing data to standard error. This data contains two fields, separated by a space. The first field indicates how much time
elapsed since the previous output. The second field indicates how many characters were output this time. This information can be used
to replay typescripts with realistic typing and output delays.
The script ends when the forked shell exits (a control-D to exit the Bourne shell (sh(1)), and exit, logout or control-d (if ignoreeof is not
set) for the C-shell, csh(1)).
Certain interactive commands, such as vi(1), create garbage in the typescript file. Script works best with commands that do not manipulate
the screen, the results are meant to emulate a hardcopy terminal.
ENVIRONMENT
The following environment variable is utilized by script:
SHELL If the variable SHELL exists, the shell forked by script will be that shell. If SHELL is not set, the Bourne shell is assumed. (Most
shells set this variable automatically).
SEE ALSO
csh(1) (for the history mechanism), scriptreplay(1).
HISTORY
The script command appeared in 3.0BSD.
BUGS
Script places everything in the log file, including linefeeds and backspaces. This is not what the naive user expects.
AVAILABILITY
The script command is part of the util-linux package and is available from ftp://ftp.kernel.org/pub/linux/utils/util-linux/.
Linux July 30, 2000 Linux