Path: utzoo!attcan!utgpu!news-server.csri.toronto.edu!mailrus!wuarchive!zaphod.mps.ohio-state.edu!rpi!leah!wfh58 From: wfh58@leah.Albany.Edu (William F. Hammond) Newsgroups: comp.sys.amiga Subject: Re: Little question about 'Run' and pipes... Summary: Escape the '|' Keywords: ARP, ConMan, pipe, UN*X, Shell Message-ID: <3587@leah.Albany.Edu> Date: 1 Sep 90 18:31:21 GMT References: <25395@boulder.Colorado.EDU> Reply-To: wfh58@leah.albany.edu.UUCP (William F. Hammond) Organization: Dept of Math & Stat, SUNYA, Albany, NY Lines: 32 In article <25395@boulder.Colorado.EDU> hunt@snoopy.Colorado.EDU (HUNT LEE CAMERON) writes: >I'm using ARP v. 1.3 with ConMan v.1.3. I'm used to UN*X's shell piping > . . . >BUT, I wanted to be clever and run that in the background, in UN*X: > > ls -alR * | fgrep .zoo & >HOWEVER, on the Amiga, one would expect it to be: > run dir files size all * | search STDIN .zoo >which *doesn't* work. It appears that the run applies only to the >"dir" command and ignores the search command. With that syntax the output from "run" (which is almost nothing) is piped to search. Then you get the output from "dir files size all". (To see this enter run dir files size all * | search STDIN shell .) You'll want to use "\|" above instead of "|" so that the piping will be done in the background shell. The first line of output will be unpleasantly indented. That can be fixed with run dir files size all * \| search STDIN .zoo | tee | echo "" Here the (small) stdout stream from tee goes to "echo", which swallows it, while the stderr stream goes to the console before the console output from the background process. ---------------------------------------------------------------------- William F. Hammond Dept. of Mathematics & Statistics 518-442-4625 SUNYA, Albany, NY 12222 hammond@leah.albany.edu wfh58@albnyvms.bitnet ----------------------------------------------------------------------