Path: utzoo!utgpu!jarvis.csri.toronto.edu!mailrus!cs.utexas.edu!samsung!uunet!mcsun!unido!mikros!mwtech!martin From: martin@mwtech.UUCP (Martin Weitzel) Newsgroups: comp.unix.i386 Subject: Re: Why no job control in 386/ix? Message-ID: <483@mwtech.UUCP> Date: 23 Nov 89 11:32:44 GMT References: <3880@amelia.nas.nasa.gov> <1989Nov19.180741.8950@tolerant.com> <124@dumbcat.UUCP> <15246@haddock.ima.isc.com> Reply-To: martin@mwtech.UUCP (Martin Weitzel) Organization: MIKROS Systemware, Darmstadt/W-Germany Lines: 36 In article <15246@haddock.ima.isc.com> suitti@anchovy.UUCP (Stephen Uitti) writes: [some lines deleted] > % find . -print | cpio -ocB | (cd otherdir ; cpio -icdmB) >seems to work. I know, cpio has an option to just copy the directory >tree without the other invocation of cpio, but cpio has lots of options... WHAT! Also internally at ISC there is no online manual. Upgrade to 2.2 :-) (OK, I know, the topic was allready beaten to death.) BTW: If memory serves, try cpio -p ... >> chmod user.group file ... >>such as I do on my BSDish sun at work all the time. I know the litany... [some lines deleted] Wait a minute ... the following shell-script should do it Place it in a directory *before* /bin in your PATH. ------------------------------------------ # BSD-Style(?) chown via chmod # BUGS: Doesn't allow blanks in file names # Doesn't allow dots or blanks in user/group names case $1 in *.*) u="$1";shift;f="$*";IFS=.;set $u;IFS=' ' chgrp $2 $f && exec chown $1 $f ;; *) exec /bin/chmod ${1+"$@"} esac ------------------------------------------ Excuse me, this is a three minute hack, I didn't test very much. I didn't know about this particular BSD-feature before I read this posting. A *real* improvment, I allways wanted, would be a command which *automatically* determines the group of the new user and chgrp-s a file, if I 'chown' it - does BSD have it? [more lines deleted] MW