The -X option is for the /var/adm/wtmps.* files, otherwise fwtmp reads the /var/adm/wtmp.* files.
I have no clue what the extra numbers mean. The man pages are too short (and a bit confusing).
If you want to try the last command, the following extracts most out of the files:
--
Normally, at least during a system login, wtmp and wtmps are written simultaneously. wtmps has room for more information. So reading wtmps alone should be sufficient.
Last edited by MadeInGermany; 02-10-2016 at 06:18 AM..
Hi
How can i dynamically read files names from a list file and execute them from a single shell script.
Please help its urgent
Thanks in Advance (4 Replies)
Hi Gurus,
I am having an requirement. i have to read a list file which contains file names and send mail to different users based on the files in the list file.
eg. if file a.txt exists then send a mail to a@a.com
simillary for b.txt,c.txt etc.
Thanks for your help,
Nimu (6 Replies)
I have 2 boxes running HP-UX B.11.23 U ia64, one production, one development.
I just found out that "last" is not working on the production machine. After some investigation, I find that the /var/adm/wtmps file has been allowed to grow and then has not been touched since Dec 2007. /var/adm/wtmp... (2 Replies)
Need to develop a unix shell script for the below requirement and I need your assistance:
1) search for file.log and file.bad file in a directory and read them
2) pull out "Load_Start_Time", "Data_File_Name", "Error_Type" from log file
4) concatinate each row from bad file as... (3 Replies)
Hi,
I am running this command through a shell script and getting the error mentioned in the subject line:
testing.awk -f x.txt TNAME
My testing.awk file contains something like
++++++++++++++++++
#!/usr/bin/awk -f
BEGIN{
TAB_NAME="INSERT_ONE_" ARGV ;
}
if ( $1=="JAM_ONE" &&... (1 Reply)
Hi All
I have written the following script:
#!/bin/ksh
while read cmdline
do
echo `$cmdline`
pid="$cmdline"
done<commands.txt
===========
commands.txt contains:
ps -ef | grep abc | grep xyz |awk '{print $2};
My objective is to store the o/p of the command in a variable and do... (8 Replies)
hi guys, i want help... Reding XML file and print the values into the text file using linux shell script file as per below xml file
<sequence>
<Filename>aldorzum.doc</Filename>
<DivisionCode>US</DivisionCode>
<ContentType>Template</ContentType>
<ProductCode>VIMZIM</ProductCode>
</sequence>... (1 Reply)
hi guys, i want help... Reding XML file and print the values into the text file using linux shell script file as per below xml file
<sequence>
<Filename>aldorzum.doc</Filename>
<DivisionCode>US</DivisionCode>
<ContentType>Template</ContentType>
<ProductCode>VIMZIM</ProductCode>
</sequence>... (4 Replies)
So I'm stumped.
First... APOLOGIES... my work is offline in an office that has zero internet connectivity, as required by our client. If need be, I could print out my script attempts and retype them here. But on the off chance... here goes.
I have a text file (file_source) of terms, each line... (3 Replies)
Discussion started by: Brusimm
3 Replies
LEARN ABOUT HPUX
utmpd
utmpd(1M)utmpd(1M)NAME
utmpd - user accounting database daemon
SYNOPSIS DESCRIPTION
user accounting database daemon, manages the user accounting database which is the database of currently logged-in users. This was previ-
ously maintained by and files on HP-UX.
Upon startup, writes its pid to the file Applications can add, update, or query entries into the database using the APIs. See the
getuts(3C) manual page for more information.
utmpd(1M) takes care of synchronizing the legacy file and its own in-memory database. The synchronization is bi-directional from the data-
base to the and from the file to database. However, this synchronization does not happen in real time. There is a time lag which could
span from a few seconds on a lightly loaded system to a few minutes on a heavily loaded system.
Signal Processing
Perform graceful shutdown.
This causes the daemon to write its in-memory user accounting database to the file and exit.
DIAGNOSTICS
logs error messages to the system log using syslog(3C).
WARNINGS
If is shutdown using synchronization between file and the file does not take place. should not be shutdown by the user unless it is for
debugging purpose. On restart, utmpd(1M) rebuilds its database from the file.
AUTHOR
was developed by Hewlett-Packard Company.
FILES SEE ALSO rlogind(1), telnetd(1), who(1), init(1M), bwtmps(3C), getuts(3C), getutx(3C), btmps(4), utmp(4), utmpx(4), wtmps(4).
utmpd(1M)