Hey there,
One last suggestion. Could possibly be an issue with the # symbol within the here doc. Just noticed that as I re-read my reply. You may need to backslash those depending on your shell. Also, I believe that I've seen them cause issues in Here Documents before, but I believe the reaction (breaking the Here Document) was dependent on the program being used (for instance ftp vs cat will naturally do different things given the same lines in a Here Document).
I'll need to test some later and see if I can reproduce that in a different setting.
Until then, hope this gets resolved
, Mike
Linux and Unix Tips, Tricks and Individual Advice -
The Linux and Unix Menagerie!
------------------------------------------------------------------------
The greatest viral marketing idea of all time, get your copy of this
Free Report now!