Mailing List Archives
Authenticated access
|
|
|
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
RE: [condor-users] How to tell if condor is installed?
- Date: Tue, 25 May 2004 11:09:47 +0100
- From: "Andrey Kaliazin" <A.Kaliazin@xxxxxxxxxxx>
- Subject: RE: [condor-users] How to tell if condor is installed?
Why can't you use ps for this purpose?
On the linux box you can get :
$ ps -ef |grep condor_master
condor 3655 1 0 May24 ? 00:00:21
/usr/condor/sbin/condor_master
root 5641 3615 0 11:03 pts/2 00:00:00 grep condor_master
and on Windows (using cygwin tools) :
c:\> ps -efW |grep condor_master
0 1396 0 ? 20:16:39
c:\progra~1\Condor\bin\condor_master.exe
with a bit of awk or sed or whatever utility you prefer you can get
$(release_dir) without problem
cheers,
Andrey Kaliazin
> -----Original Message-----
> From: owner-condor-users@xxxxxxxxxxx
> [mailto:owner-condor-users@xxxxxxxxxxx] On Behalf Of Tim Harsch
> Sent: Monday, May 24, 2004 11:48 PM
> To: condor-users@xxxxxxxxxxx
> Subject: Re: [condor-users] How to tell if condor is installed?
>
> Thanks Jonathan!
>
> I think what I'm looking for value of ${RELEASE_DIR}, the
> problem is I can't
> determine the path of the condor release dir without knowing
> the path of the
> condor release dir ( if I must parse the config file :-)
>
> Can a running daemon tell us, or is there a condor_X command
> that could.
> I'm willing to require my users to have condor in the path so
> that condor_X
> can be executed to determine the release dir.
>
> Thanks.
>
> ----- Original Message -----
> From: "Jonathan Giddy" <J.P.Giddy@xxxxxxxxxx>
> To: <condor-users@xxxxxxxxxxx>
> Sent: Sunday, May 23, 2004 8:29 AM
> Subject: Re: [condor-users] How to tell if condor is installed?
>
>
> > If condor_status exists and produces sensible output, then Condor is
> > probably installed and running. If you need to find
> condor_status in a
> > failsafe manner, then you have to go to quite some effort.
> >
> > Find the first existing file from the list ${CONDOR_CONFIG},
> > /etc/condor/condor_config, ~condor/condor_config.
> >
> > Now, you can either assume it's a fairly standard setup,
> and parse the
> > RELEASE_DIR line, adding /bin to find the location of condor_status.
> >
> > To be absolutely correct in all circumstances, you also
> need to parse any
> > files listed in the Condor variable $(LOCAL_CONFIG_FILE),
> as well as the
> > first existing file from /etc/condor/condor_config.root,
> > ~condor/condor_config.root. Then use the value of the
> Condor BIN variable.
> >
> >
> >
> > Condor Support Information:
> > http://www.cs.wisc.edu/condor/condor-support/
> > To Unsubscribe, send mail to majordomo@xxxxxxxxxxx with
> > unsubscribe condor-users <your_email_address>
> >
>
> Condor Support Information:
> http://www.cs.wisc.edu/condor/condor-support/
> To Unsubscribe, send mail to majordomo@xxxxxxxxxxx with
> unsubscribe condor-users <your_email_address>
>
>
Condor Support Information:
http://www.cs.wisc.edu/condor/condor-support/
To Unsubscribe, send mail to majordomo@xxxxxxxxxxx with
unsubscribe condor-users <your_email_address>