Hello. I should have asked this awhile ago but here is my situation. My task is to generate LOC for different directories. I have a text file that has dates in this format (01-Aug-2006). My task is to read each line and compare it to a branch date. Depending on the date, it should generate a... (0 Replies)
I have a log file on our system which fills up with lines that have been timestamped, as follows....
03/03/2008 10:56:06:815] (ERROR) balance: continuing session to genapp02 : 18500
03/03/2008 10:56:06:820] (ERROR) balance: continuing session to genapp02 : 18500
03/03/2008 10:56:07:003]... (2 Replies)
Here's my problem: the $1 parameter is getting permanently set when you dot-run a script - and I cannot unset it.
Here's how to duplicate the problem:
1) Create a script called testme and put this simple command in the script:
echo 1=$1
Save the script
2) Make the testme script... (12 Replies)
I'd like to create a cron script that checks filesystems. For example if it reaches 95% USED, I'd like it to send me an email. Can this be possible for up to say 4 filesystems using the df -k command? Any samples to get me started would be much appreciated. (7 Replies)
Hi all,
I got an error when running this script (from BigAdmin community)
the error is
test: argument expected
my server version is
SunOS XXX 5.8 Generic_117350-46 sun4u sparc SUNW,Sun-Fire-V890
any idea on it?
#! /usr/bin/ksh
###
### This script can be run from cron to... (9 Replies)
Hey guys I am learning Linux and I am working on script for a college class project to check usage of file system. I pulled this from a different site but have to tweak it a little to work but I still get errors. Here is what I got so far.
ALERT=5
function main_prog() {
while read output;... (1 Reply)
Hi,
I wanted to find out that in my database server which filesystems are shared storage and which filesystems are local. Like when I use df -k, it shows "filesystem" and "mounted on" but I want to know which one is shared and which one is local.
Please tell me the commands which I can run... (2 Replies)
Dear all,
We are facing prolem when we are going to mount AIX filesystem, the system returned the following error
0506-307The AFopen call failed
: A file or directory in the path name does not exist.
But when we ls filesystems in the /etc/ directory it show
-rw-r--r-- 0 root ... (2 Replies)
Good day UNIX forum, could you help me with my clear printer queue script, i have problems with the consistency of this function, sometimes it works sometimes it doesn't. Thanks in advance
}
preRemovePrintQ(){
clear;
echo;
echo... (1 Reply)
I am new to Shell Scripting and need some help.
The following batch job has been failing for me due to the .nfsxxx files in use. I need to know how to modify the following script to exclude the .nfsxxx files so this batch job will not fail on me. I have done lots of googling and keep coming back... (2 Replies)
Discussion started by: kimberlyg2007
2 Replies
LEARN ABOUT HPUX
wtmps
wtmps(4) Kernel Interfaces Manual wtmps(4)NAME
wtmps, btmps - user login information
SYNOPSIS DESCRIPTION
and hold user and accounting information for such commands as and (see last(1), who(1), write(1), and login(1)).
File contains bad login entries for each invalid logon attempt. File contains a record for all logins and logouts apart from accounting
records. These files contain structure, the key elements of the structure are given below:
char ut_user[] User login name
char ut_id[] Unique Id to distinguish an entry
char ut_line[] Device name
pid_t ut_pid Process Id
short ut_type Type of Entry
struct ut_exit The exit status of a process
struct timeval ut_tv Time entry was made
char ut_host[] Host name, if remote
uint8_t ut_addr[] Internet Address of the Host,
if remote
short ut_addr_type Flag to identify type of address
in ut_addr
#define WTMPS_FILE "/var/adm/wtmps"
#define BTMPS_FILE "/var/adm/btmps"
Note that and tend to grow without bound, and should be checked regularly. Information that is no longer useful should be removed periodi-
cally to prevent the file from becoming too large. Also note that and are not created by the programs that maintain them. Thus, if these
files are removed, login record-keeping is turned off.
AUTHOR
and were developed by Hewlett-Packard Company.
FILES SEE ALSO last(1), login(1), who(1), write(1), acctcon(1M), fwtmp(1M), wtmpfix(1M), getuts(3C).
wtmps(4)