David Aldridge
asked on
Writing a heredoc to a file
I'm having an issue with trying to get a heredoc in a ksh script to write to a file. I have used the following code. It creates the file, but doesn't write anything in it.
Thanks!
David
CFGFILE=/home/share/daldri d/work/tas ks/bmc/con figfile/ag enthwdebug .txt
echo <<EOF > $CFGFILE
PATROL_CONFIG
"/SENTRY/HARDWARE/debugEnd Time" = { REPLACE = "$DATE $TIME" },
"/SENTRY/HARDWARE/debugMod e" = { REPLACE = "1" },
"/SENTRY/HARDWARE/automati cReinitial ization" = { REPLACE = "1" }
EOF
Thanks!
David
CFGFILE=/home/share/daldri
echo <<EOF > $CFGFILE
PATROL_CONFIG
"/SENTRY/HARDWARE/debugEnd
"/SENTRY/HARDWARE/debugMod
"/SENTRY/HARDWARE/automati
EOF
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER