in reply to Using temporary file as body of email

This node falls below the community's threshold of quality. You may see it by logging in.
  • Comment on Re: Using temporary file as body of email

Replies are listed 'Best First'.
Re: Re: Using temporary file as body of email
by merlyn (Sage) on Apr 20, 2001 at 01:07 UTC
    • That'd be a useless use of cat.
    • That's a dangerous use of mailx. Imagine if any of the lines of mailfile began with tilde!
    • You can send directly to mailx (notwithstanding the last comment) by opening it as a pipe. no need for the separate file.

    -- Randal L. Schwartz, Perl hacker

      I agree, but would argue with the last. Once sent to a pipe cannot be extracted. I would use a temporary file of variable to make sure my data is consistent before sending.

      EVERYTHING is dangerous if not used properly. However, this doesn't mean mailx shouldn't be used.