> -----Original Message----- > From: Paul Jasa [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 27, 2001 10:09 AM > To: 'Bob Showalter'; [EMAIL PROTECTED] > Subject: RE: Send e-mail attachment > > > Good question. I think that is done so that you can write > other things to > the LETTER prior to mailing it? > Paul
But it doesn't work like that. Output to LETTER doesn't get to mailx on my system, does it on yours? After mailx has read from the file, it exits, closing the other end of the pipe. You have an unreaped child process until you close LETTER. Writes to LETTER go nowhere. > > > -----Original Message----- > From: Bob Showalter [mailto:[EMAIL PROTECTED]] > Sent: Tuesday, November 27, 2001 8:02 AM > To: Paul Jasa; [EMAIL PROTECTED] > Subject: RE: Send e-mail attachment > Importance: High > > > > -----Original Message----- > > From: Paul Jasa [mailto:[EMAIL PROTECTED]] > > Sent: Tuesday, November 27, 2001 9:53 AM > > To: 'paul beckett (JIC)'; [EMAIL PROTECTED] > > Subject: RE: Send e-mail attachment > > > > > > Paul, > > one of my favorite lines in my scripts is: > > > > open LETTER, "|mailx -s "SUBject Here!!" someone\@somewhere.com < > > /some/file"; > > I don't understand this code. What do you do with LETTER? > It should be a pipe to mailx stdin, but you've redirected > that, so writes to LETTER don't go anywhere, do they? > > Why not just use system()? > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]