You should really be using uuencode or one of the other techniques for encoding binary files as ascii text.
On Wed, Dec 12, 2007 at 02:13:38PM -0700, Eduardo Sanz-Garcia wrote: > This is a crazy idea. Sorry for my ignorance. > I want to create a bash script that contains a binary file using a here > document: > > cat> image.jpg<<'Here_the_binary' > binary code > Here_the_binary > > It is not working. > Is there a way to create an script that auto contains a binary file, for > example an image? > -------------------- > BYU Unix Users Group > http://uug.byu.edu/ > > The opinions expressed in this message are the responsibility of their > author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. > ___________________________________________________________________ > List Info: http://uug.byu.edu/mailman/listinfo/uug-list > -- Andrew McNabb http://www.mcnabbs.org/andrew/ PGP Fingerprint: 8A17 B57C 6879 1863 DE55 8012 AB4D 6098 8826 6868 -------------------- BYU Unix Users Group http://uug.byu.edu/ The opinions expressed in this message are the responsibility of their author. They are not endorsed by BYU, the BYU CS Department or BYU-UUG. ___________________________________________________________________ List Info: http://uug.byu.edu/mailman/listinfo/uug-list
