Hello Joan,

>> Is there a way to find out if a user is using an afs volume? 
>I.E. if a user is actually executing a binary that is on an AFS volume.  
>
>thanks,
>       Joan Riggs

Simplest way is to ask user.

I guess that you ask this because you are thinking of
replacing or removing a binary in /afs?

Consider renaming the binary to some unique name
(for example: ${oldname}.${epoch} where ${epoch} is 
UNIX epoch number of seconds since Jan 1 1970)
and then installing new version of binary.

Users of old copy will continue with renamed binary.
New invocations get new binary.
-- 
cheers
paul                             http://acm.org/~mpb

      The Feynman problem solving Algorithm
              1) Write down the problem
              2) Think real hard
              3) Write down the answer
                      Murray Gell-mann in the NY Times


mpb@tricorder $ epoch
937474695


/*
 * @(#)epoch.c  1.1 (ASSC) 5/20/93
 *
 * Display seconds since UNIX epoch - 1 jan 1070
 *
 * [EMAIL PROTECTED] (Paul Blackburn)
 *
 * 20th May 1993
 */


#include <time.h>
main()
{
        time_t *curtime = (time_t*)malloc(sizeof(time_t));
        printf("%ld\n",time(curtime));
}

Reply via email to