1condor_urlfetch(1)          General Commands Manual         condor_urlfetch(1)
2
3
4

Name

6       condor_urlfetchfetch configuration given a URL
7

Synopsis

9       condor_urlfetch[-<daemon>] urllocal-url-cache-file
10

Description

12       Depending  on  the  command  line  arguments,  condor_urlfetchsends the
13       result of a query from the urlto both standard output  and  to  a  file
14       specified by local-url-cache-file, or it sends the contents of the file
15       specified by local-url-cache-fileto standard output.
16
17       condor_urlfetchis intended to be used as the program to run when defin‐
18       ing configuration, such as in the nonfunctional example:
19
20       LOCAL_CONFIG_FILE = $(LIBEXEC)/condor_urlfetch -$(SUBSYSTEM) \
21         http://www.example.com/htcondor-baseconfig  local.config |
22
23       The pipe character (|) at the end of this definition of the location of
24       a configuration file changes the use of the definition. It  causes  the
25       command  listed  on the right hand side of this assignment statement to
26       be invoked, and standard output becomes the configuration. The value of
27       $(SUBSYSTEM)becomes  the  daemon  that  caused this configuration to be
28       read. If $(SUBSYSTEM)evaluates to MASTER, then  the  URL  query  always
29       occurs, and the result is sent to standard output as well as written to
30       the file specified by  argument  local-url-cache-file.  When  $(SUBSYS‐
31       TEM)evaluates  to  a  daemon other than MASTER, then the URL query only
32       occurs if the file specified by local-url-cache-filedoes  notexist.  If
33       the file specified by local-url-cache-filedoes exist, then the contents
34       of this file is sent to standard output.
35
36       Note that if the configuration kept at the URL site changes, and recon‐
37       figuration  is  requested,  the  -<daemon>argument needs to be -MASTER.
38       This is the only way to guarantee that there will be  a  query  of  the
39       changed  URL contents, such that they will make their way into the con‐
40       figuration.
41

Options

43       -<daemon>
44
45          The upper case name of the daemon issuing the request for  the  con‐
46          figuration  output. If -MASTER, then the URL query always occurs. If
47          a daemon other than -MASTER, for example STARTDor SCHEDD,  then  the
48          URL  query  only occurs if the file defined by local-url-cache-file‐
49          does not exist.
50
51
52
53
54

Exit Status

56       condor_urlfetchwill exit with a status value of 0 (zero)  upon  success
57       and non zero otherwise.
58

Author

60       Center for High Throughput Computing, University of Wisconsin-Madison
61
63       Copyright  (C) 1990-2019 Center for High Throughput Computing, Computer
64       Sciences Department, University of Wisconsin-Madison, Madison, WI.  All
65       Rights Reserved. Licensed under the Apache License, Version 2.0.
66
67
68
69                                     date                   condor_urlfetch(1)
Impressum