Help with shar needed!

Marten Terpstra a20 at nikhefh.nikhef.nl
Tue Oct 9 20:34:14 AEST 1990


In article <1990Oct8.181633.6838 at ux1.cso.uiuc.edu> gordon at osiris.cso.uiuc.edu (John Gordon) writes:
>
>	Hi.  I'm having some problems trying to run the shar program.  I have
>some files in a directory that I want to put in a shell archive, so I cd to the
>directory, then type "shar * > shar.file".  This produces a 5-minute wait, and
>then a "write failed, disk full" error, as shar keeps writing the same stuff
>over and over ad infinitum.  Anyone have any help for me?
>

The solution is quite simple. When typing shar * > shar.file your shell will
also include the file shar.file to the wildcard. This because the file
shar.file is created before the wildcard is fully expanded. Therefore it will
put this output file again in the output file etc. This causes the disk full
message.
So make sure the output file is not in the wildcard e.g. by putting the output
file in another directory.

Marten
--
"               Quidquid Latine Dictum Sit, Altum Viditur.                    "
              ( Whatever is said in Latin, sounds profound )
-------------------------------------------------------------------------------
Marten Terpstra                                  National Institute for Nuclear
Internet : terpstra at nikhef.nl 	          	        and High Energy Physics
Oldie-net: {...}mcsun!nikhefh!terpstra    			     (NIKHEF-H)
DECnet   : nikvx1::a20                                     PO Box 1882, 1009 DB
Phone-net: +31 20 592 5102			     Amsterdam, The Netherlands
-------------------------------------------------------------------------------



More information about the Comp.unix.questions mailing list