01-08-2011
Try something like
find / -type f |tee /tmp/output| xargs grep "something" > ok
and on other shell tail -f /tmp/output
to see what is happening.
It might be that it runs into network directory unaccesible for a normal.
That find might be run as
find / -type f -exec grep "something" {} \;
Regards
Sebastian
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
how can i change the superuser password?
the admin left the company, and we want to change the password.
to gain su access, i use:
# su -
password:***** (old password)
then, using passwd command it changes my own login password, not the root??
(this is not trying to block anybody's... (4 Replies)
Discussion started by: apalex
4 Replies
2. UNIX for Dummies Questions & Answers
Can I create a superuser account in scoadmin? If not how do I do it via command line (0 Replies)
Discussion started by: maconte
0 Replies
3. Shell Programming and Scripting
hi All,
In my script I want to run some drop and select statements in the same host as a different user.I am inputting password for the superuser from the user who will be executing the script.
ie ,
I would be greatfull to you experts if you could suggest me how to proceed. (4 Replies)
Discussion started by: Sreejith_VK
4 Replies
4. Shell Programming and Scripting
Hi,
I am trying to find files with specific name using find / -name core -print..
this command is hanging and never completes as it is searching for all the automount filesystems ..i cant eliminate using "! -fstype nfs" as this is not a nfs filesystem
pls let me know if anyone know how to... (2 Replies)
Discussion started by: to_bsr
2 Replies
5. Shell Programming and Scripting
Hi, I have written a script and placed in an application and the script can be executed manually only. But somehow one of the method in the script is being called and bringing the application down. But we are not able to find any instance of script running.
Is there a way to findout whether the... (1 Reply)
Discussion started by: Satyak
1 Replies
6. UNIX for Dummies Questions & Answers
Is there a way to find out the total no of processes that were running ?
- 2 or 3 hours before
- list those no of processes (3 Replies)
Discussion started by: jansat
3 Replies
7. AIX
Hello every one.
I know little to nothing about AIX. Recently I have been assigned to an AIX project.
For some reason or another the find command is hanging the server.
Well it does not hand server per say, it just freezes my terminal session.
after running find, I waited up to 40 min and... (3 Replies)
Discussion started by: busi386
3 Replies
8. UNIX for Dummies Questions & Answers
Hello!
I found this on net:
This is the ``prompt''. If you entered you username, or your password incorrectly, you will be greeted by:
Login incorrect
localhost login: Don't panic, try again. Likely you either mis-typed either your login name, or your password. Try again. You're not... (2 Replies)
Discussion started by: pinklemon
2 Replies
9. Solaris
I have just installed Solaris 11. When I turn the computer on I don't want to see a login in screen. I want to automatically be logged in as "SUPERUSER".
My research tells me someone is going to tell me that's not wise or safe. I'm not interested in security advice. If someone I know is... (10 Replies)
Discussion started by: kkeevv
10 Replies
LASTCOMM(1) General Commands Manual LASTCOMM(1)
NAME
lastcomm - show last commands executed in reverse order
SYNOPSIS
lastcomm [ -f file ] [ command name ] ... [user name] ... [terminal name] ...
DESCRIPTION
Lastcomm gives information on previously executed commands.
Option:
-f file Read from file rather than the default accounting file.
With no arguments, lastcomm prints information about all the commands recorded during the current accounting file's lifetime. If called
with arguments, only accounting entries with a matching command name, user name, or terminal name are printed. So, for example,
lastcomm a.out root ttyd0
would produce a listing of all the executions of commands named a.out by user root on the terminal ttyd0.
For each process entry, the following are printed.
The name of the user who ran the process.
Flags, as accumulated by the accounting facilities in the system.
The command name under which the process was called.
The amount of cpu time used by the process (in seconds).
The time the process exited.
The flags are encoded as follows: ``S'' indicates the command was executed by the super-user, ``F'' indicates the command ran after a fork,
but without a following exec, ``C'' indicates the command was run in PDP-11 compatibility mode (VAX only), ``D'' indicates the command ter-
minated with the generation of a core file, and ``X'' indicates the command was terminated with a signal.
FILES
/usr/adm/acct Default accounting file.
SEE ALSO
last(1), sigvec(2), acct(8), core(5)
4th Berkeley Distribution February 3, 1995 LASTCOMM(1)