meta data for this page
heredoc
Suppress variable expansion
To do not handle $ in heredoc you need to quote (' or ") heredoc delimiter:
cat > /opt/bin/startup.sh << "ENDSCRIPT" #!/bin/sh export LD_LIBRARY_PATH=...:$LD_LIBRARY_PATH source /opt/bin/env.sh /opt/bin/hello ENDSCRIPT