Path: utzoo!utgpu!news-server.csri.toronto.edu!rpi!usc!wuarchive!uwm.edu!linac!att!ucbvax!PAN.SSEC.HONEYWELL.COM!thompson From: thompson@PAN.SSEC.HONEYWELL.COM (John Thompson) Newsgroups: comp.sys.apollo Subject: re: backing up files Message-ID: <9104021508.AA11965@pan.ssec.honeywell.com> Date: 2 Apr 91 15:08:09 GMT Sender: daemon@ucbvax.BERKELEY.EDU Organization: The Internet Lines: 37 > I want to back up all the .ftn, .f, .c, and .h files in a directory tree > that is about 40 meg binaries and source. I did a tried this: > > wbak `find $SRC \( -name '*.[fch]' -o -name '*.ftn' \) ...` \ > -dev ct -f 1 > > This basic command came back with an 'argument list too long' error message > or something to that effect. It diddn't work. > > All I want is the .ftn, .f, .c, and .h files. I don't want the bin or .o > files. How can I do this? I want to put it into a weekly cron job if > not a daily. The problem is almost certainly that the resulting list of names is just too long. This can happen in Unix as well as Aegis, so I wouldn't start screaming about one flavor of the O/S or the other. Aegis programs will perform wildcard expansion _after_ invocation (unlike Unix, where each shell is responsible for expanding the argument list). Because of this, if you have Aegis loaded (even if you don't? Im not sure) you can easily do it by not expanding the wildcards with your 'find' command. You may need to escape or quote the meta-chars to avoid having your shell expand them, though. /usr/apollo/bin/wbak ?*.[fch] ?*.ftn -dev ct -f 1 is the base command. I lose track of the escape-char rules, but I imagine that you might need something along the lines of /usr/apollo/bin/wbak \?\*.\[fch\] \?\*.ftn -dev ct -f 1 in order to prevent cron or it's default shell from expanding them. -- jt -- John Thompson Honeywell, SSEC Plymouth, MN 55441 thompson@pan.ssec.honeywell.com Me? Represent Honeywell? You've GOT to be kidding!!!