01-13-2012
Viewing changes in directory
Hi,
I have a directory, and there is a job running and constantly writes and removes files from and to this directory.
I would like to see somehow these changes without pressing `ls` every second. Kind of `tail -f` command, but for a directory list and not for file content.
I thought maybe kind of cron job could be useful, but from what I saw in web, the lowest frequency is minutes and not seconds, and it's too slow.
Thanks for the help
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
How do I view files in a directory? (1 Reply)
Discussion started by: Ania
1 Replies
2. UNIX for Dummies Questions & Answers
I have completely blanked out on this and I have done it a million times. I need to modify some tables in unix. What is the command for opening/viewing the tables?
Thanks so much. :o (2 Replies)
Discussion started by: itldp
2 Replies
3. UNIX for Dummies Questions & Answers
How do I view pdf files on a Solaris 9 environment?
Links and such would be grateful.
"AAAAHHH!! They're everywhere!!!" - Halo Grunt (3 Replies)
Discussion started by: antalexi
3 Replies
4. UNIX for Dummies Questions & Answers
I have a file (called CORE) that is a dump created by a crashing process. This file, I believe, is in "binary" form, so when I try to use cat, more, or vi on it, it has a bunch of garbage. Is there anything I can use to "read" or view this file just like I might a non-binary file? I am running... (2 Replies)
Discussion started by: dsimpg1
2 Replies
5. UNIX for Dummies Questions & Answers
Hi,
Can someone help me figure out how to view directory content while I navigate directories (without having to go to the actual directory and "ls-ing" it)? Is there some keyboard shortcut for this? For instance, it would be useful if I could see the content of a directory when I'm copying... (2 Replies)
Discussion started by: shelata
2 Replies
6. UNIX for Dummies Questions & Answers
Hi,
I have a program that get a directory name from the user, then the program should go through one by one of the file, asking the user whether to move it to another folder. I tried to list the time of the file one by one. But it seems like it doesn't work. The code is as follow:
check()
{... (10 Replies)
Discussion started by: mInGzaiii
10 Replies
7. Shell Programming and Scripting
Hey,
I know the head and tail function is to view like the top or bottom lines for each file. But lets say I want to view the top/bottom 100 or top/bottom 1000 for a file. whats the command that I use to do this?
thanks (2 Replies)
Discussion started by: kylle345
2 Replies
8. UNIX for Advanced & Expert Users
Hi all,
When I use BDF command on this particular server, it outputs mostly normal stuff. However, there is one directory it can't read at all.
Also, it doesn't seem to exist.
When I BDF my file system with a small panic script (it happens even if you use just the bdf command):
As you... (17 Replies)
Discussion started by: zixzix01
17 Replies
9. Shell Programming and Scripting
I have a file name as logfiles_tar.tgz. How can I view the contents of the log files present in logfiles_tar.tgz ? Any help would be really appreciated.
Thanks (3 Replies)
Discussion started by: bobby1015
3 Replies
10. UNIX for Dummies Questions & Answers
What is the command line for viewing the sizes(lines and bytes)of all the files in your present working directory?
Is it
>ls -la (2 Replies)
Discussion started by: Payton2704
2 Replies
atrm(1) User Commands atrm(1)
NAME
atrm - remove jobs spooled by at or batch
SYNOPSIS
atrm [-afi] [ [ job #] [user...]]
DESCRIPTION
The atrm utility removes delayed-execution jobs that were created with the at(1) command, but have not yet executed. The list of these jobs
and associated job numbers can be displayed by using atq(1).
atrm removes each job-number you specify, and/or all jobs belonging to the user you specify, provided that you own the indicated jobs.
You can only remove jobs belonging to other users if you have solaris.jobs.admin privileges.
OPTIONS
The following options are supported:
-a All. Removes all unexecuted jobs that were created by the current user. If invoked by the privileged user, the entire queue will
be flushed.
-f Force. All information regarding the removal of the specified jobs is suppressed.
-i Interactive. atrm asks if a job should be removed. If you respond with a y, the job will be removed.
FILES
/var/spool/cron/atjobs spool area for at jobs
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWcsu |
+-----------------------------+-----------------------------+
SEE ALSO
at(1), atq(1), auths(1), cron(1M), auth_attr(4), attributes(5)
SunOS 5.10 13 Aug 1999 atrm(1)