Re: Import config file form URL instead of local file?
Date: Fri, 19 Jun 2020 10:15:20 -0600
On 2020-06-19, at 01:26:32, NAS Kearn via curl-users wrote:
> On Fri, 19 Jun 2020 at 6:32 am, Ray Satiro via curl-users wrote:
> On 6/18/2020 7:16 PM, NAS Kearn via curl-users wrote:
>> At the moment I have to type this into CMD:
>> curl -sL script.mydomain.com -o script.bat && script.bat
>> I would like to make use of the config command instead to make the command shorter.
>> I would like to do something like this:
>> curl -K config.mydomain.com && script.bat
>> Could the config argument be modified to allow a config file to be imported by url instead of a local file???
>> Also is there a way to have the config file run the script after it has downloaded??
> You cannot specify a URL as the config file.  Use multiple curl commands.
This looks like a case for POSIX command substution. Would the
Windows 10 Bash shell support that?