1just-man-pages/condor_urlfetcGhe(n1e)ral Commands Mjaunsuta-lman-pages/condor_urlfetch(1)
2
3
4

Name

6       condor_urlfetch fetch configuration given a URL
7

Synopsis

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

Description

12       Depending  on  the  command  line  arguments, condor_urlfetch sends the
13       result of a query from the url to both standard output and  to  a  file
14       specified  by  local-url-cache-file  ,  or it sends the contents of the
15       file specified by local-url-cache-file to standard output.
16
17       condor_urlfetch is intended to be used  as  the  program  to  run  when
18       defining 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
24       of a configuration file changes the use of the  definition.  It  causes
25       the  command listed on the right hand side of this assignment statement
26       to be invoked, and standard output becomes the configuration. The value
27       of   $(SUBSYSTEM)  becomes the daemon that caused this configuration to
28       be read. If  $(SUBSYSTEM) evaluates to  MASTER ,  then  the  URL  query
29       always  occurs,  and  the  result is sent to standard output as well as
30       written to the file specified by argument local-url-cache-file  .  When
31       $(SUBSYSTEM)  evaluates  to  a daemon other than  MASTER , then the URL
32       query only occurs if the file specified  by  local-url-cache-file  does
33       not  exist.  If  the file specified by local-url-cache-file does exist,
34       then the contents 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.
47          If a daemon other than  -MASTER , for example  STARTD or   SCHEDD  ,
48          then  the  URL  query  only occurs if the file defined by local-url-
49          cache-file does not exist.
50
51
52
53
54

Exit Status

56       condor_urlfetch will 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-2018 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    just-man-pages/condor_urlfetch(1)
Impressum