10-07-2018
What are you trying to do, exactly?
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Is there an easy way to spit out a screen with all the password setting parameters set out? For example:
MINWEEKS=1
MAXWEEKS=8
etc.
I'm looking for a way to have all the settings consolidated on a report for inclusion in policy documents. (4 Replies)
Discussion started by: Hoju
4 Replies
2. UNIX for Dummies Questions & Answers
Right, I'm really new to the UNIX stuff, and the main reason for posting is as follows:
I am attempting to install postnuke on the local council webserver. for web server stats search for http://www.haybridge.worcs.sch.uk here and I am being asked to change the CHMOD settings for two of the... (3 Replies)
Discussion started by: womble
3 Replies
3. UNIX for Advanced & Expert Users
I need to configure my .profile so that it should always reflect my present directory path during my session. How can i do that.
Please help (1 Reply)
Discussion started by: satgur
1 Replies
4. Programming
Hello all,
i've written a small piece of code that will read commands from standard input and executes the commands.
Its working fine and is execting the commands well. Accepting arguments too. e.g
#mkdir <name of the directory>
The problem is that its not letting me change the directory i.e... (4 Replies)
Discussion started by: Phrozen Smoke
4 Replies
5. Shell Programming and Scripting
What are the environment setting during a cron session?
I have HP-UX and I want to send the output/file from a script to several e-mail addresses. I want to create an env-var to store the e-mail addresses in my .profile, but I do not know if it will be visible when a script is executed in a cron. (4 Replies)
Discussion started by: ALTRUNVRSOFLN
4 Replies
6. Linux
Hi,
How to set ip address in linux.
Regards,
Guguli (1 Reply)
Discussion started by: guguli
1 Replies
7. Shell Programming and Scripting
I want to log into a remote server transfer over a new config and then backup the existing config, replace with the new config.
I am not sure if I can do this with BASH scripting.
I have set up password less login by adding my public key to authorized_keys file, it works.
I am a little... (1 Reply)
Discussion started by: bash_in_my_head
1 Replies
8. Red Hat
Hi all,
Please help to check weather the SMTP settings are configured or not on my LINUX server?
I want to send a mail to mailbox. I know that the target SMTP server has to be configured on LINUX box to do so.
How can i see weather it is configured or not?
--Ramesh Ch. (3 Replies)
Discussion started by: Raamc
3 Replies
9. HP-UX
can any one provide me Vi Edior Settings for HP-UX
I searched the forum i cound't able to find much information.
1) Need Vi editor setting for Color Code ... to work in C++ (Highlight Syntax .... as Vi Editor in Linux ... which we enable the syntax)
2)Delete , backspace , arrows , home ,... (3 Replies)
Discussion started by: girija
3 Replies
10. AIX
Hi all,
I'm new in this forum.
I'm looking for the difference between the HACMP commands with the prefix "cl" and "cli".
The first type are under /usr/es/sbin/cluster/sbin directory and the second are under /usr/es/sbin/cluster/cspoc directory.
I know that the first are called HACMP for AIX... (0 Replies)
Discussion started by: peppix
0 Replies
LEARN ABOUT REDHAT
lastcomm
LASTCOMM(1) General Commands Manual LASTCOMM(1)
NAME
lastcomm - print out information about previously executed commands.
SYNOPSIS
lastcomm
[ command-name ... ]
[ user-name ... ]
[ terminal-name ... ]
[ --strict-match ]
[ -f filename | --file filename ]
[ --user name ] [ --command name ] [ --tty name ]
[ --debug ] [ -V | --version ] [ -h | --help ]
DESCRIPTION
lastcomm prints out information about previously executed commands. If no arguments are specified, lastcomm will print info about all of
the commands in acct (the record file). If called with one or more of command-name, user-name, or terminal-name, only records containing
those items will be displayed. For example, to find out which users used command `a.out' and which users were logged into `tty0', type:
lastcomm a.out tty0
This will print any entry for which `a.out' or `tty0' matches in any of the record's fields (command, name, or terminal). If you want to
find only items that match *all* of the arguments on the command line, you must use the '-strict-match' option. For example, to list all
of the executions of command a.out by user root on terminal tty0, type:
lastcomm --strict-match a.out root tty0
The order of the arguments is not important.
For each entry the following information is printed:
+ command name of the process
+ flags, as recorded by the system accounting routines:
S -- command executed by super-user
F -- command executed after a fork but without a following exec
C -- command run in PDP-11 compatibility mode (VAX only)
D -- command terminated with the generation of a core file
X -- command was terminated with the signal SIGTERM
+ the name of the user who ran the process
+ time the process exited
OPTIONS
--strict-match
Print only entries that match *all* of the arguments on the command line.
--user name
List records for user with name. This is useful if you're trying to match a username that happens to be the same as a command
(e.g., ed ).
--command name
List records for command name.
--tty name
List records for tty name.
-f filename, --file filename
Read from the file filename instead of acct
--debug
Print verbose internal information.
-V, --version
Print the version number of lastcomm.
-h, --help
Prints the usage string and default locations of system files to standard output and exits.
FILES
acct
The system wide process accounting file. See acct(5) (or pacct(5)) for further details.
AUTHOR
The GNU accounting utilities were written by Noel Cragg <noel@gnu.ai.mit.edu>. The man page was adapted from the accounting texinfo page by
Susan Kleinmann <sgk@sgk.tiac.net>.
SEE ALSO
last(1), acct(5)
1995 October 31 LASTCOMM(1)