.\" Man page generated from reStructuredText. . . .nr rst2man-indent-level 0 . .de1 rstReportMargin \\$1 \\n[an-margin] level \\n[rst2man-indent-level] level margin: \\n[rst2man-indent\\n[rst2man-indent-level]] - \\n[rst2man-indent0] \\n[rst2man-indent1] \\n[rst2man-indent2] .. .de1 INDENT .\" .rstReportMargin pre: . RS \\$1 . nr rst2man-indent\\n[rst2man-indent-level] \\n[an-margin] . nr rst2man-indent-level +1 .\" .rstReportMargin post: .. .de UNINDENT . RE .\" indent \\n[an-margin] .\" old: \\n[rst2man-indent\\n[rst2man-indent-level]] .nr rst2man-indent-level -1 .\" new: \\n[rst2man-indent\\n[rst2man-indent-level]] .in \\n[rst2man-indent\\n[rst2man-indent-level]]u .. .TH "CONDOR_URLFETCH" "1" "Apr 01, 2024" "" "HTCondor Manual" .SH NAME condor_urlfetch \- HTCondor Manual .sp fetch configuration given a URL .SH SYNOPSIS .sp \fBcondor_urlfetch\fP [\fB\-\fP ] \fIurl\fP \fIlocal\-url\-cache\-file\fP .SH DESCRIPTION .sp Depending on the command line arguments, \fIcondor_urlfetch\fP sends the result of a query from the \fIurl\fP to both standard output and to a file specified by \fIlocal\-url\-cache\-file\fP, or it sends the contents of the file specified by \fIlocal\-url\-cache\-file\fP to standard output. .sp \fIcondor_urlfetch\fP is intended to be used as the program to run when defining configuration, such as in the nonfunctional example: .INDENT 0.0 .INDENT 3.5 .sp .EX LOCAL_CONFIG_FILE = $(LIBEXEC)/condor_urlfetch \-$(SUBSYSTEM) \e http://www.example.com/htcondor\-baseconfig local.config | .EE .UNINDENT .UNINDENT .sp The pipe character (|) at the end of this definition of the location of a configuration file changes the use of the definition. It causes the command listed on the right hand side of this assignment statement to be invoked, and standard output becomes the configuration. The value of \fB$(SUBSYSTEM)\fP becomes the daemon that caused this configuration to be read. If \fB$(SUBSYSTEM)\fP evaluates to \fBMASTER\fP, then the URL query always occurs, and the result is sent to standard output as well as written to the file specified by argument \fIlocal\-url\-cache\-file\fP\&. When \fB$(SUBSYSTEM)\fP evaluates to a daemon other than \fBMASTER\fP, then the URL query only occurs if the file specified by \fIlocal\-url\-cache\-file\fP does not exist. If the file specified by \fIlocal\-url\-cache\-file\fP does exist, then the contents of this file is sent to standard output. .sp Note that if the configuration kept at the URL site changes, and reconfiguration is requested, the \fB\-\fP argument needs to be \fB\-MASTER\fP\&. This is the only way to guarantee that there will be a query of the changed URL contents, such that they will make their way into the configuration. .SH OPTIONS .INDENT 0.0 .INDENT 3.5 .INDENT 0.0 .TP \fB\-\fP The upper case name of the daemon issuing the request for the configuration output. If \fB\-MASTER\fP, then the URL query always occurs. If a daemon other than \fB\-MASTER\fP, for example \fBSTARTD\fP or \fBSCHEDD\fP, then the URL query only occurs if the file defined by \fIlocal\-url\-cache\-file\fP does not exist. .UNINDENT .UNINDENT .UNINDENT .SH EXIT STATUS .sp \fIcondor_urlfetch\fP will exit with a status value of 0 (zero) upon success and non zero otherwise. .SH AUTHOR HTCondor Team .SH COPYRIGHT 1990-2024, Center for High Throughput Computing, Computer Sciences Department, University of Wisconsin-Madison, Madison, WI, US. Licensed under the Apache License, Version 2.0. .\" Generated by docutils manpage writer. .