05-11-2006
Login ID cleanup
Hello
I have many old IDs on my AIX and would like to know the
simplest way of knowing the last time an ID was used.
I am familiar with the "last" command.
Thanks for any info
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
What is the correct procedures to clean up /var/spool/mqueue? Any help appreciated. This directory gets really clogged up at times. :( :( (1 Reply)
Discussion started by: thomi39
1 Replies
2. Shell Programming and Scripting
I am trying to add a unique string to a variable to prevent some name space collisions.
DATAFILE=/u001/app/unica/affinium644/campaign/partitions/limited/tmp/ebf9aaah.t~#
DATETIME=`date +%Y%m%d_%H%M%S`
echo $DATAFILE > tmpnme.txt
sed 's_/_ _g' tmpnme.txt > tmpnme2.txt
DATA=$(cat tmpnme2.txt)... (2 Replies)
Discussion started by: whdr02
2 Replies
3. Shell Programming and Scripting
Hi!
I would like to write a script which remove some files, all beginning with the same prefix :
prefix.1
doc/prefix.2
../prefix.3
etc.
So, I would create a file and chmod it executable. But I dont know how to pass a variable to a script. I would like to write something like
... (2 Replies)
Discussion started by: tipi
2 Replies
4. Solaris
Hi All,
I have this script for linux on cleaning up orphaned folder. But I need to use this on solaris 8/9/10
for user in $(ls | grep -v lost+found) ; do
id $user >/dev/null 2>&1
if ]
then
ls -ld $user
grep $user /etc/passwd
fi
done
Can someone please convert this script? ... (1 Reply)
Discussion started by: itik
1 Replies
5. Shell Programming and Scripting
Hello there,
I want to remove duplicate directories of $PATH. I already have the code (found in this forum), which removes duplicate lines in a textfile.
awk 'x++==0' filename
By how do I use this for the $PATH-variable? (17 Replies)
Discussion started by: doc_symbiosis
17 Replies
6. Shell Programming and Scripting
Hi,
I am trying to clean up data between parenthesis () in a file.
See example below....
Input File :
(New York) Chicago (London)
New York (Chicago) London
New York Chicago (London)
(New York) (Chicago) (London)
New York (Chicago)
... (3 Replies)
Discussion started by: msalam65
3 Replies
7. Red Hat
I have a server running redhat 5.5 and it has one SAN device presented to it as LUN9. How can I clean up the remaining entries. I cannot afford to interupt the service. Please assist.
# multipath -l
mpath0 (36000097000019260298953666633436) dm-11 EMC,SYMMETRIX
\_ round-robin 0
\_ 2:0:0:9 ... (2 Replies)
Discussion started by: Tirmazi
2 Replies
8. OS X (Apple)
I am trying to come up with a universal way of cleaning up after CS5 (and 5.5) installs. The history is this: adobe has a deployment tool called AAMEE that lets you re-package items and deploy them. Unfortunately it's very messy and leaves Application folders (and pieces of the apps) that do not... (1 Reply)
Discussion started by: kleinboy
1 Replies
9. OS X (Apple)
Hi there,
i do get some text files that i'd lile to clean them up based on following rule: if a line starts with " then remove return (new line, carriage return) before ".
Example, my input text file
line 1
line 2
"line 3
I'd like this to come as
line 1
line 2line3
How can i... (4 Replies)
Discussion started by: gigagigosu
4 Replies
10. UNIX for Advanced & Expert Users
Greetings all,
I have inherited this offline Red Hat YUM repo that contains over 42000 packages. You read that right. There are 71 kernels alone. The process that I've inherited has us reposync on an Internet-connected-server then sneaker-net the delta to our offline repo where we do a yum... (2 Replies)
Discussion started by: geoeldsul
2 Replies
rlpstat(1M) rlpstat(1M)
NAME
rlpstat - print status of LP spooler requests on a remote system
SYNOPSIS
printer] user] [id]...
DESCRIPTION
reports the status of the specified jobs or all requests associated with the specified users on the specified printer. At least one id or
the name of a printer must be specified.
For each request submitted (by command -- see lp(1)) reports the request ID, user's name, total size of the request, date of the request,
and, if it is being transferred, the device.
This command is intended to be used only by the spool system in response to the command and should not be invoked directly (see lpstat(1)).
Options
recognizes the following options and command-line arguments:
Status is requested on the specified printer.
Status is requested on all requests for the user who executed the
command on the specified printer (see the option). You can repeat the option to specify more users. The maximum
number of users that can be specified is 50.
id Status is requested on the specified request IDs (as returned by All the request IDs must be for the same printer.
The maximum number of request IDs that can be specified is 50.
AUTHOR
was developed by the University of California, Berkeley, and HP.
FILES
SEE ALSO
enable(1), lp(1), lpadmin(1M), lpsched(1M), lpstat(1), rcancel(1M), rlp(1M), rlpdaemon(1M).
rlpstat(1M)