09-30-2011
Quote:
Originally Posted by
canon273
The files themselves were not accessed (opened).
Clearly, something did access them. You saw their atimes yourself, when you did ls -lu.
For the third time:
finder is known to mess up atimes. It does it when it indexes the system, not just when you browse. If you want to use atimes, you'll have to tell finder not to index those files.
Your script is not finding those files because their atimes are very, very recent. YOu can see their atimes yourself in one of your own posts.
Quote:
Originally Posted by Methyl
Reference post #1. You should be using "-mtime" which references the same timestamp as "ls -l".
He states clearly in his OP that he's looking for the time a file was last read and
not the time it was last modified.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hello.
Consider the following magic words:
# ls `which adduser`
ls: /usr/sbin/adduser: No such file or directory
#
Hmmm...
Then:
# ls /usr/sbin/adduser
/usr/sbin/adduser
#
Now what?
Unforunately this little sniippet is used in my debian woody server's mysql pre install script.... (2 Replies)
Discussion started by: osee
2 Replies
2. Shell Programming and Scripting
Hi,
I use the command
ls a\b\c\*.txt
from the command line on HP UNIX and it works fine - It lists all files matching *.txt in the a\b\c directory
When embeded in a ksh script
`ls a\b\c\*.txt`
it does not work - I get *.txt not found (even though there are files)
I tried... (10 Replies)
Discussion started by: GNMIKE
10 Replies
3. UNIX for Dummies Questions & Answers
Portion of my script below :
if ; then
NUMBEROFFEILDS=`cat ${BASE_SCRIPT_LOC}/standardfilecleanup.lst|grep -w ${db_file_path}|awk -F: '{print NF}'`
COUNT=4
while ; do
awk_var="$"`echo $COUNT`
file_name1=`cat ${BASE_SCRIPT_LOC}/standardfilecleanup.lst|grep -w... (1 Reply)
Discussion started by: findprakash
1 Replies
4. Red Hat
Hi,
I need to write a Linux shell script which will perform an FTP operation to another server.
main.sh will contain -
ftp -nd Dest.IP.address < ftpScript.sh
Contents of ftpScript.sh is given below -
user userid passwd
prompt
lcd /vidya/Input
cd vidya/Output
mput *.*
close
... (1 Reply)
Discussion started by: vidyak
1 Replies
5. Shell Programming and Scripting
total=0
seq 1 5 | while read i ; do
total=$(($total+$i))
echo $total
done
echo $totalThis outputs:
1
3
6
10
15
0whereas I am expecting:
1
3
6
10
15
15My bash version: (4 Replies)
Discussion started by: meharo
4 Replies
6. Shell Programming and Scripting
for i in `cat /export/home/afahmed/Arrvial_time.txt`
do
echo $i
echo $i | awk '$3 < $D { print $4 }' >> dynamic_DF.txt;
done
When i echo, its echo as
Nov
15
02:24
/export/home/pp_adm/inbound//wwallet_20111115.txt where i expect it to be Nov 15 02:24... (7 Replies)
Discussion started by: afahmed
7 Replies
7. UNIX for Dummies Questions & Answers
Hi. I am trying to start a script on my router that will execute even if i log off. To execute the script I write:
nohup ./dslconnection > dslstat.out 2>&1 &
It starts the job:
21968 admin 1604 S /bin/ash ./dslconnection
The problem is that when I log back in the job has been... (6 Replies)
Discussion started by: sebcou
6 Replies
8. Shell Programming and Scripting
Hi,
I have prepared a script and trying to execute it but not getting expected output. Could you please help and advise what is going wrong.
"If else" part in below script is not working basically.
I am running it on HP-UX.
for i in slpd puma sfmdb
do
echo "******\t$i\t*******"
echo... (10 Replies)
Discussion started by: sv0081493
10 Replies
9. UNIX for Advanced & Expert Users
I ran into the following and still do not understand entirely the rationale behind this. If someone could explain why things are as they are I'd be thankful.
The following was tested on AIX 7.1 with ksh88, but i suspect that to be ubiquitous. In an installation routine i had to create a set of... (6 Replies)
Discussion started by: bakunin
6 Replies
10. Shell Programming and Scripting
Hi Experts,
Need your kind help with gsub awk.
Below is my pattern:"exec=1_host_cnt=100_dup=4_NameTag=targetSrv_500.csv","'20171122112948"," 100"," 1"," 1"," 4","400","","",
" aac sample exec ""hostname=XXXXX commandline='timeout 10 openssl speed -multi 2 ; exit 0'"" ","-1","-1","1","... (6 Replies)
Discussion started by: pradyumnajpn10
6 Replies
LEARN ABOUT DEBIAN
mkzftree
MKZFTREE(1) H. Peter Anvin MKZFTREE(1)
NAME
mkzftree - Create a zisofs/RockRidge compressed file tree
SYNOPSIS
mkzftree [OPTIONS]... INPUT OUTPUT
DESCRIPTION
Takes an input file tree (INPUT) and create a corresponding compressed file tree (OUTPUT) that can be used with an appropriately patched
mkisofs(8) to create a transparent-compression ISO 9660/Rock Ridge filesystem using the "ZF" compression records.
OPTIONS
-f, --force
Always compress all files, even if they get larger when compressed.
-z level, --level level
Select compression level (1-9, default is 9). Lower compression levels are faster, but typically result in larger output.
-u, --uncompress
Uncompress an already compressed tree. This can be used to read a compressed filesystem on a system which cannot read them
natively.
-p parallelism, --parallelism parallelism
Compress in parallel. The parallelism value indicates how many compression threads are allowed to run.
-x, --one-filesystem
Do not cross filesystem boundaries, but create directory stubs at mount points.
-X, --strict-one-filesystem
Do not cross filesystem boundaries, and do not create directory stubs at mount points.
-C path, --crib-path path
Steal ("crib") files from another directory if it looks (based on name, size, type and modification time) like they match entries in
the new filesystem. The "crib tree" is usually the compressed version of an older version of the same workload; this thus allows
for "incremental rebuilds" of a compressed filesystem tree. The files are hardlinked from the crib tree to the output tree, so if
it is desirable to keep the link count correct the crib path should be deleted before running mkisofs. The crib tree must be on the
same filesystem as the output tree.
-l, --local
Do not recurse into subdirectories, but create the directories themselves.
-L, --strict-local
Do not recurse into subdirectories, and do not create directories.
-F, --file
Indicates that INPUT may not necessarily be a directory; this allows operation on a single file. Note especially that if -F is
specified, and INPUT is a symlink, the symlink itself will be copied rather than whatever it happens to point to.
-s, --sloppy
Treat file modes, times and ownership data as less than precious information and don't abort if they cannot be set. This may be
useful if running mkisofs on an input tree you do not own.
-v, --verbose
Increase the program verbosity.
-V value, --verbosity value
Set the program verbosity to value.
-q, --quiet
Issue no messages whatsoever, including error messages. This is the same as specifying -V 0.
-h, --help
Display a brief help message.
-w, --version
Display the release version.
BUGS
Long options (beginning with --) may not work on all systems. See the message printed out by mkzftree -h to see if this applies to your
system.
Inode change times (ctimes) are not copied. This is a system limitation and applies to all file copy programs.
If using the parallel option (-z) the access times (atimes) on directories may or may not be copied. If it is important that the atimes on
directories are copied exactly, avoid using -z.
AUTHOR
Written by H. Peter Anvin <hpa@zytor.com>.
COPYRIGHT
Copyright (C) 2001-2002 H. Peter Anvin.
This is free software; see the source for copying conditions. There is NO warranty; not even for MERCHANTABILITY or FITNESS FOR A PARTICU-
LAR PURPOSE.
SEE ALSO
mkisofs(8)
zisofs-tools 30 July 2001 MKZFTREE(1)