On Wed, Jul 19, 2006 at 11:12:24AM -0600, Andrew Hunter wrote: > #!/bin/sh > exec > textfile > echo "This is the first line of text" > exec > /dev/stdout > echo "This is the second line of text" > exit 0 > > That failed, of course. Thanks in advance for any suggestions--
#!/bin/sh echo "This is the first line of text" > textfile echo "This is the second line of text" Or maybe you're real script is a lot more complicated than this example? If so, why not just split your script into two scripts? Phillip -- Phillip Hellewell <phillip AT hellewell.homeip.net> -------------------- 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/cgi-bin/mailman/listinfo/newbies
