Hello,

When I try to read the value of a file into an environment variable using setenv and < I get back an empty environment variable e.g

setenv AWS_ACCESS_KEY_ID < /etc/xrootd/access_key

Doesn't change the environment variable AWS_ACCESS_KEY_ID.

I can however read from a file into a variable using set and then copy that variable to the environment variable e.g

set ACCESS_KEY < /etc/xrootd/access_key
setenv AWS_ACCESS_KEY_ID = $ACCESS_KEY

Makes the environment variable AWS_ACCESS_KEY_ID have the value of the contents of /etc/xrootd/access_key

setenv also works if I were to pass the value directly e.g

setenv AWS_ACCESS_KEY_ID = 1234

I am using xrootd 5.5.1 from the epel repository.

Thanks


Reply to this email directly, view it on GitHub, or unsubscribe.
You are receiving this because you are subscribed to this thread.Message ID: <xrootd/xrootd/issues/1899@github.com>

[ { "@context": "http://schema.org", "@type": "EmailMessage", "potentialAction": { "@type": "ViewAction", "target": "https://github.com/xrootd/xrootd/issues/1899", "url": "https://github.com/xrootd/xrootd/issues/1899", "name": "View Issue" }, "description": "View this Issue on GitHub", "publisher": { "@type": "Organization", "name": "GitHub", "url": "https://github.com" } } ]

Use REPLY-ALL to reply to list

To unsubscribe from the XROOTD-DEV list, click the following link:
https://listserv.slac.stanford.edu/cgi-bin/wa?SUBED1=XROOTD-DEV&A=1