I'm writing a script that adds an LOFS to a zone, using a pre-made
batch file it works but I rather generate this on the fly.
It looks something like this:
if [ something ]; then
zonecfg -z $myzone << EOF
add options rw
add options nodevices
zoneadm -z $ZONENAME boot
This should work, but I get a syntax error at line 78: `end of file'
unexpected, (script is only 77 lines long, btw.) I also tried
cat > /tmp/foo << EOF
zonecfg -z $myzone -f /tmp/foo
but same problem. How can I solve this? I prefer not to keep a batch
file around to slice & dice with sed.
zones-discuss mailing list