This issue seems to be caused by users closing Windows terminal emulation sessions without first signing off, (clicking on the X before exiting the session.)
On SCO systems, these "ghost" sessions tend to consume all the available CPU trying to re-connect.
I wrote the following script to deal with this issue, but it should be used with caution.
On SCO systems telnet sessions are named ttypnn, on HP-UX it appears they are named pts/nnn.
Hi,
suppose i want to display the child processess that are running at the background.how do u do it.
ps -ef shows both parent and child processess i need to see only the child processess.
cheers. (3 Replies)
Hi,
i want to remove a certain pattern when i type pwd.
pwd will look like this:
..../....../....../Pat_logs/..../....../...../......
the dotted lines are just random directory names,
i want it to remove the "Pat_logs/...../....../....../" part
so for example:
... (8 Replies)
it still display header and footer
header
SQL*Plus: Release 10.2.0.1.0 - Production on Mon Sep 24 13:41:51 2012
Copyright (c) 1982, 2005, Oracle. All rights reserved.
Connected to:
Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bit Production
With the Partitioning, Real... (0 Replies)
Hi,
I have some files with some extension e.g. abc.xml.REMOVE,xyz.xml,efg.xml.REMOVE .
I have to remove the .REMOVE extension. I can display it using the below script but cannot rename it.
ls -l|sed 's/\.REMOVE//'
How can I rename this?
Thanks in advance (7 Replies)
Hi,
I just upgraded one my server to latest version RHEL, I have many users who will do SSH from another server. I wanted to update all of the users home directory and remove the security key. For example.
/home/XYZ/.ssh/known_hosts and remove this hostsname.
Please see below and advise.... (2 Replies)
Hi,
I have a file with contents.
file1:
<2013 tttaaa
abc123
<2013 gggdddd
<2013 sssssss
<2013 eeeee
I need to remove the lines which do not have the word "tttaaa"
can some one help ? (7 Replies)
Hi,
I'm on AIX 5.2. I wrote a script that makes a traceroute to a host. The script works fine but each time it using the traceroute command its generate the 2 output lines.
this is the command in my script
traceroute -n -m 5 -w 2 $Host | grep 172 | awk '{print $2}' | tail -1
traceroute... (2 Replies)
Hi Gurus,
I have below files in one directory. the file name has date and time portion which is exactly the file be created. I need keep only lasted created file which is abc_20140101_1550 and remove rest of the file.
abc_20140101_1300
abc_20140101_1200
abc_20140101_1400
abc_20140101_1500... (2 Replies)
Discussion started by: ken6503
2 Replies
LEARN ABOUT HPUX
last
last(1) General Commands Manual last(1)NAME
last, lastb - indicate last logins of users and ttys
SYNOPSIS
file] [name ...] [tty ...]
file] [name ...] [tty ...]
DESCRIPTION
The command searches backwards through the file (which contains a record of all logins and logouts) for information about a user, a tty, or
any group of users and ttys. Arguments specify names of users or ttys of interest. The names of ttys can be given fully or abbreviated.
For example, is the same as If multiple arguments are given, the information that applies to any of the arguments is printed. For example,
lists all of sessions as well as all sessions on the console terminal. The command prints the sessions of the specified users and ttys,
most recent first, indicating when the session began, the duration of the session, and the tty on which the session took place. indicates
if the session is still in progress or if it was cut short by a reboot.
The pseudo-user logs each time the system reboots. Thus, is a useful command for evaluating the relative time between system reboots.
If is interrupted, it indicates how far the search has progressed in If interrupted by a quit signal (generated by a Ctrl-), indicates how
far the search has progressed, then continues the search.
The command searches backwards through the database file to display bad login information. Access to should be restricted to users with
appropriate privileges (owned by and readable only by because it may contain password information.
Options
The and commands recognize the following options and arguments:
(none) If no arguments are specified, prints a record of all logins and logouts in reverse order, most recent first.
When used with
and displays the user's host name as it is stored in the files and respectively. The host name is displayed between the
tty name and the user's login time.
Limits the report to
number of lines.
Use file as the name of the accounting file instead of or
Use file as the name of the accounting database instead of This option should be used along with the option.
Display the fields in long format if this flag is used
along with the flag. Without the flag, normal output is displayed.
AUTHOR
was developed by the University of California, Berkeley and HP.
FILES
Bad login database
Login database
New login database
New bad login database
SEE ALSO login(1), utmp(4), wtmps(4).
last(1)