Path: utzoo!utgpu!news-server.csri.toronto.edu!cs.utexas.edu!qt.cs.utexas.edu!yale.edu!think.com!spool.mu.edu!uunet!ora!jerry From: jerry@ora.com (Jerry Peek) Newsgroups: comp.mail.mh Subject: Re: Problem with Print Command Message-ID: <1991Jun27.152134.1250@ora.com> Date: 27 Jun 91 15:21:34 GMT References: Organization: O'Reilly and Associates Inc., Cambridge, MA Lines: 20 In article maassen@kreon.informatik.rwth-aachen.de (Andreas Maassen) writes: > Xmh*PrintCommand: mp -l | lpr -Plaser -h -c >/dev/null 2>/dev/null > > With this print command, nothing happens, although the command > as such is correct, since it works if I type it into a shell. The problem is that xmh tacks the filenames to print onto the *end* of the command line, after the pipe. The command xmh runs to print messages 1 and 2 in your inbox will be like: mp -l | lpr -Plaser -h -c >/dev/null 2>/dev/null inbox/1 inbox/2 Write a little shell script that puts the filenames (inbox/1 inbox/2) in the right place and use that shell script as the Xmh*PrintCommand. The "MH & xmh" Nutshell Handbook has an "xmhprint" shell script in section 12.8. You can get a copy of it by anonymous ftp or uucp from uunet.uu.net in the file nutshell/MHxmh/MHxmh.tar.Z. --Jerry Peek, jerry@ora.com or uunet!ora!jerry