Thanks PxT answered my "compare two files"question very quick and neat!!:-)
I have a question about .history file I couldn't find any satisfied answer from book.
1. This file was created automatically when you set up user's environment or you have to use a command to create it or you... (4 Replies)
is there a way to show information on all the users on your system? when i use 'finger' is only shows users names and info who are currently on the system. is there a way to show all accounts? thanx! (5 Replies)
Hi Friends,
We are currently 5 people using same Unix login-id on different terminals, .sh_history file contains list of commands typed by all 5 peoples(commands history) with the below list :
$tail .sh_history
ls -ltr
pwd
cd ..
ls -ltr
clear
cd temp
more kk.lst
Now my question... (9 Replies)
All,
I had a request to delete filed under a directory that was 35 days old . And they asked me to scedule it in CRON . I have done that .
I have use find and delete with mtime to perfrom this task .
But my script is not deleting this .cshrc,.exrc,.login,.profile,.sh_history file... (1 Reply)
Hello Everyone:
Does anyone know how I will setup my account to put timestamp in my .sh_history? I do not hold the root account. I am using AIX 5 and ksh shell. I tried every solution I can find in the internet but nothing seems to work OR I am just applying those in the wrong way. Anyone knows... (4 Replies)
I reviewed a couple old post where shockneck posted the use of the EXTENDED_HISTORY=ON variable to place a timestamp in the .sh_history file when using ksh and using the fc -t command to read the .sh_history file.
The fc command reads my history file. As an admin I would like to be able to read... (5 Replies)
Hi,
I'm on a linux machine. But I see that sh_history is not updated since february 15. How is it possible ?
Thank you.
uname -a
Linux MYSERVER 2.6.18-194.11.3.el5PAE #1 SMP Mon Aug 23 15:57:10 EDT 2010 i686 i686 i386 GNU/Linux
ls -al
-rw------- 1 oracle dba 3644 fév 15 09:28... (10 Replies)
Hi,
I can't get all the enties of AIX .sh_history in email. only first entry of the history is emailed after executing the below code.
mail -s "History `date +%d-%m-%Y`" myemail@xyz.com <$HOME/.sh_history
Can anyone help? (3 Replies)
Discussion started by: m_raheelahmed
3 Replies
LEARN ABOUT DEBIAN
utmpset
utmpset(8) System Manager's Manual utmpset(8)NAME
utmpset - logout a line from utmp and wtmp file
SYNOPSIS
utmpset [ -w ] line
DESCRIPTION
The utmpset program modifies the user accounting database utmp(5) and optionally wtmp(5) to indicate that the user on the terminal line has
logged out.
Ordinary init(8) processes handle utmp file records for local login accounting. The runit(8) program doesn't include code to update the
utmp file, the getty(8) processes are handled the same as all other services.
To enable local login accounting, add utmpset to the getty(8) finish scripts, e.g.:
$ cat /service/getty-5/finish
#!/bin/sh
exec utmpset -w tty5
$
OPTIONS -w wtmp. Additionally to the utmp file, write an empty record for line to the wtmp file.
EXIT CODES
utmpset returns 111 on error, 1 on wrong usage, 0 in all other cases.
SEE ALSO sv(8), runsv(8), runit(8), runit-init(8)runsvdir(8), runsvchdir(8), chpst(8), svlogd(8), getty(8)
http://smarden.org/runit/
AUTHOR
Gerrit Pape <pape@smarden.org>
utmpset(8)