05-13-2010
Hi Scott,
As i am suppose to list the current date files, i meant to add it at midnight so that i will get all the files modified today.
Moreover i cant run the script again, if so this touch will update the time stamp to now, and i will be getting the list of files which are modified from this time only and not from 00 hours...
Am i right?
10 More Discussions You Might Find Interesting
1. Solaris
How can I use the 'ps' command to view current sessions but only for a given process/user, with the -u parm?
In older versions of Unix, this used to work, but not in Sun Solaris.
Thanks (4 Replies)
Discussion started by: ElCaito
4 Replies
2. Shell Programming and Scripting
is there a direct command to find whether directory is empty, -s option doesn't seem to work.
Mark. (2 Replies)
Discussion started by: markjason
2 Replies
3. UNIX for Advanced & Expert Users
There r 2 servers. Lets call them S1 and S2..
S1 is OSF1 and S2 is SunOS..
One directory of S2 is mounted on S1. say abc/xyz
There is one application which continuously put xml files in that directory (on S2).
If we give command “ls -lrt” on S2 it gives proper output.. (i.e. gives list... (1 Reply)
Discussion started by: asmita
1 Replies
4. UNIX for Dummies Questions & Answers
Hi , Kindly help me out .:)
i want to find only the file t4 in directory t3. i am in dir t . the tree is as follows.
if i give,
find .
o/p is
.
./t4
./t1
./t1/t2
./t1/t2/t3
./t1/t2/t3/t4
./t1/t2/t4
./t1/t4
directories are like t/t1/t2/t3 and each directory has file t4.
my... (7 Replies)
Discussion started by: bhuvaneshlal
7 Replies
5. Shell Programming and Scripting
Hi
I have a directory say mydir and inside it there are many files and subdirectories and also a directory called lost+found owned by root user
I want to print all files directories and subdirectorres from my directory using find command except lost+found
If i do
find . \( -name... (3 Replies)
Discussion started by: xiamin
3 Replies
6. HP-UX
Running HP 11.31 on a HP3600. But when I log in as a user the who command works but if I use an option like "who -m" I get nothing. Any thoughts on what is causing this problem. (11 Replies)
Discussion started by: KMRWHUNTER
11 Replies
7. Shell Programming and Scripting
Hi All,
Could you please help me in searching files in a better way satisfying the below conditions
I want to search files in a path whose access time is more than 5min and less than 60 min and whose Byte size is greater than zero
For this, i am using the below command, but it is... (2 Replies)
Discussion started by: sparks
2 Replies
8. Shell Programming and Scripting
Hi,
I am a little bit confusing of using find command.
Actually, I am planning to delete the files whatever the files are existing in the day before yesterday. So, I am writing the command like this.
find . -name "*.txt" -ctime -2 { here I am confusing, if I will use +2 or +1 also I am... (5 Replies)
Discussion started by: nagraju.allam
5 Replies
9. Shell Programming and Scripting
Hi All,
on a Linux server I use this command to compress ONLY the files of yesterday
PATH=/home/user01/logs
TYPE="*"
DAYS=1
find $PATH -daystart -mtime $DAYS -type f -name "$TYPE" -exec gzip -f '{}' ';'
On SunOS the -daystart option is not allowed
A different test is the following on SunOS... (4 Replies)
Discussion started by: gio123bgg
4 Replies
10. Shell Programming and Scripting
Can you please figure out what is the issue here
$ find . -maxdepth 1 -type f -size 0 -print
find: bad option -maxdepth
please find the OS details
$ uname -a
HP-UX g5u1216 B.11.31 U ia64 2614088426 unlimited-user license
Use code tags, thanks. (6 Replies)
Discussion started by: TomG
6 Replies
LEARN ABOUT DEBIAN
cow-shell
cow-shell(1) cowdancer cow-shell(1)
NAME
cow-shell - Start a copy-on-write session and invoke a shell.
SYNOPSIS
cow-shell [commandline]
DESCRIPTION
cow-shell Executes specified command with cowdancer or a shell if no command-line option is given.
Inside the cowdancer session, files under the current directory are protected in a way so that a write operation to an i-node which existed
at the point of running cow-shell is not modified.
Useful for managing hard-linked source-trees and scratch-filesystems.
EXAMPLES
cp -al cowdancer/ cowdancer.new && cd cowdancer.new && cow-shell
Create a hardlinked tree, and cd into the newly created tree. After invoking cow-shell inside that tree, a write operation against
a file that is hardlinked with the original tree will be copied to a new file before write.
cp -al cowdancer/ cowdancer.new && cd cowdancer.new && cow-shell debuild
Tries to run dpkg-buildpackage on the new tree, to avoid damage to the original tree.
Configure debuild to ignore .ilist files, through -i or -I option.
FILES
.ilist Generated dynamically in the current directory. The file contains the list of i-node numbers that should be protected from write
operation.
/usr/lib/cowdancer/libcowdancer.so
The shared library used internally that overrides some functions that potentially write to files. This library implements the COW
feature and is preloaded with LD_PRELOAD.
/bin/cp
Used for copying. Requires GNU option -a to be functional.
ENVIRONMENT
COWDANCER_ILISTFILE
The path to the current .ilist file.
COWDANCER_IGNORE
Used internally to work around infinite loops. It will be unset.
LD_PRELOAD
Utilized to preload libcowdancer.so
COWDANCER_DEBUG
Debugging option. Enables debug messages. cowdancer will give verbose debug messages in standard error output.
COWDANCER_SO
Debugging option. Specifies a different path for libcowdancer.so.
COWDANCER_REUSE=yes
Enables reuse of cowdancer .ilist file found for consecutive runs of cow-shell.
RETURN VALUE
The functions that are overridden with cowdancer will give an errno value of ENOMEM when there is a problem.
System isn't really out of memory, but this error code is chosen because this error is usually handled gracefully by applications.
RESTRICTIONS
Can only support directories that are scanned by cow-shell command.
The operation is not semantically correct when files are originally hardlinked, hardlinks are always broken.
Does not support anything when LD_PRELOAD trick does not work.
Does not work unless hardlinks are supported on the filesystem.
Not very user-friendly.
Leaves .ilist file around.
AUTHOR
Junichi Uekawa (dancer@debian.org)
Upstream page is available at http://www.netfort.gr.jp/~dancer/software/cowdancer.html
SEE ALSO
cowdancer-ilistcreate (1)
cowdancer 2006 Jan 25 cow-shell(1)