Scenario:  I wrote a shell script called ``jo'' which outputs information,
           sleeps for 10 seconds, and keeps looping.  I redirected stderr
           and stdout to a file named ``jo.out'' in my home directory.
           My home directory is in AFS (3.3).  We have 4 AFS file servers
           and one database server, all with NTP running.

Question:  Why is it that on any machine other than the one I started the
           process on, the file size is 0 still and the modification time
           is the time when I started ``jo'', BUT the file size and
           file modification are being updated properly as ``jo'' runs
           on the machine I started ``jo'' from?

tomthumb% ls -l jo.out
-rw-r--r--  1 jblaine         0 Jan  3 11:24 jo.out

gargoyle% ls -l jo.out
-rw-r--r--  1 jblaine         0 Jan  3 11:24 jo.out

dinky% ls -l jo.out
-rw-r--r--  1 jblaine   5280873 Jan  4 10:32 jo.out

[ dinky is where jo was started and is still running ]
[ All machines listed above are AFS clients ]

What's the deal with my cache manager / file servers?  The file should
be written out to the file server every 10 seconds.

#!/bin/csh -f
#
# Yeah, I know, C-Shell programming considered harmful, etc etc.
#
# Ran as: ./jo 2>&1 > jo.out &
#
# Shell it was run from is Z-Shell 2.6something

while (1)
        date
        pstat -T | tail -1
        ps -auxwww | grep jlsmith
        echo ""
        sleep 10
end
# end of jo

-------
Jeff Blaine
CIESIN Operations

Reply via email to