05-29-2002
Logging
G'day
Just wondering if anyone out there knows how to log files, using the example I provided in the earlier message / question earlier today:
If I was to backup a file, how could I setup a log file to record the filename, date (This one I've got figured), and that the file was backed-up (Or restored)?
Any help on this topic would be greatly appreciated
Cheers and Beers
Aussie_Bloke
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
I have a SCO R5 Open Server Box running at a remote location, and from time to time it seems to "spontaneously" re-boot itself. Is there a specific log file that I can examine to see why the machine is doing this ? Any suggestions gratefully appreciated (1 Reply)
Discussion started by: pcs7088
1 Replies
2. Cybersecurity
is there a log/ how do i make a log that logs every packet inbound or outbound through my server?
I want every packet or packet fragment to be logged that comes to my server. (5 Replies)
Discussion started by: The Fridgerator
5 Replies
3. UNIX for Dummies Questions & Answers
Is there a file that captures info whenever someone logs to su? i know it comes across as standard output on the server, but is it saved anywhere? Time and date info included??
thanks, kym (1 Reply)
Discussion started by: kymberm
1 Replies
4. UNIX for Dummies Questions & Answers
Hi, just wriiten a sh script and as my script will try to log into another server to delete some files but when i run , it keeps on saying that my files do not exist. It seems to refer to my local directory instead. Below is my script :
FTP_HOST=ip_number
FTP_USER="user password"
... (1 Reply)
Discussion started by: blueberry80
1 Replies
5. UNIX for Dummies Questions & Answers
Hi all!
On our current Solaris 8 machine we only have "standard" logging configured, and now i need to put on more. What i specificly need is time in the logfiles. Ex. When a user is logging in,
when a user makes it self SU. etc.
Regards...
dOzY (3 Replies)
Discussion started by: dozy
3 Replies
6. Programming
Hi
How to manage logging in an application.
Actually I am developing a Client-Server application in c/c++ and want to manage an optional logging in my application, but since prior I have never done ths activity.
Plz guide me.
thanks. (2 Replies)
Discussion started by: sumsin
2 Replies
7. AIX
What is the best way to logoff users from my Unix system? I have done a search and found that you can do a w or who - find who is on, and ps-ef | grep <user> and kill their processes. But what if you have a bunch of users and you need them off the system quickly? Killing individual processes... (1 Reply)
Discussion started by: outtacontrol
1 Replies
8. Shell Programming and Scripting
Hi all
Can anyone tell me how to login inot telnet,i heard that it is an interface between unix and windows,if i am wrong please correct me.
Thanks in anticipation (1 Reply)
Discussion started by: vinayrao
1 Replies
9. Post Here to Contact Site Administrators and Moderators
Hi Everyone. First, I want to thank all of you for letting me participate in this great group.
I am having a bit of a problem.
After I get an email from a responder, I login to make my reply.
In the mean time I get another response by email from another member, I go to reply to them and I... (6 Replies)
Discussion started by: Ccccc
6 Replies
10. Linux
When unlocking a Linux server's console there's no event indicating successful logging
Is there a way I can fix this ?
I have the following in my rsyslog.conf
auth.info /var/log/secure
authpriv.info /var/log/secure (1 Reply)
Discussion started by: walterthered
1 Replies
LEARN ABOUT NETBSD
logger
LOGGER(1) BSD General Commands Manual LOGGER(1)
NAME
logger -- make entries in the system log
SYNOPSIS
logger [-is] [-d SD] [-f file] [-m msgid] [-p pri] [-t tag] [message ...]
DESCRIPTION
logger provides a shell command interface to the syslog(3) system log module.
Options:
-d sd Log this in the structured data (SD) field. (sd has to be passed as one argument and will require careful quoting when used from
the shell.)
-f file Log the specified file.
-i Log the process id of the logger process with each line.
-m msgid The MSGID used for the message.
-p pri Enter the message with the specified priority. The priority may be specified numerically or as a ``facility.level'' pair. For
example, ``-p local3.info'' logs the message(s) as informational level in the local3 facility. The default is ``user.notice''.
-s Log the message to standard error, as well as the system log.
-t tag Mark every line in the log with the specified tag.
message Write the message to log; if not specified, and the -f flag is not provided, standard input is logged.
EXIT STATUS
The logger utility exits 0 on success, and >0 if an error occurs.
EXAMPLES
logger System rebooted
logger -p local0.notice -t HOSTIDM -f /dev/idmc
SEE ALSO
syslog(3), syslogd(8)
STANDARDS
The logger utility conforms to IEEE Std 1003.2-1992 (``POSIX.2'').
BSD
May 14, 2010 BSD