As part of the script system build, I have a script that creates various files and configurations.
However, one part of the script assembly creates a new script that contains variables that I do not want to allow when the script assembly starts. Code snippet example
cat - > /etc/profile.d/mymotd.sh <<EOF hostname=`uname -n` echo -e "Hostname is $hostname" EOF
I tried all kinds of combinations of 'and' and (and [but I canβt get a script to send content without substituting values ββand placing substitutes in the new script, and not in the source text.
Ideas?
source share