* Stupid mailx question
@ 2008-07-16 7:34 Greg Rudd
0 siblings, 0 replies; only message in thread
From: Greg Rudd @ 2008-07-16 7:34 UTC (permalink / raw)
To: Tru64-UNIX-Managers; +Cc: bryanc
Hi all
I am trying to port some scripts that were writen in tru64 over to linux
and when I try to execute the script that uses mailx to send a uuencoded
attachment that takes in a command as standard input from a file and
appends the standard output from the commands executed in that file and
then mail it to a number of users.
On the alpha the commands work as you would expect however on the linux
box the standard imput from the file is passed to mailx as a litteral
with the mail message being the contents of the input file.
eg mailx -s "why does this work on an alpha" foo@bar.edu.au < input-file
the input file contains the following:
on the alpha
~<! /usr/bin/uuencode /usr/opt/sis/flx_interfaces/pay_alloc_report
PALLOX.xls
on the linux box*
~! /usr/bin/uuencode /usr/opt/sis/flx_interfaces/pay_alloc_report
PALLOX.xls
* the linux version of mail/mailx does not appear to like ~<! command to
run a script or command but yet it is listed in the man page.
Is there something different with the RHEL implementation of mailx
(which is a posix implementation of mail) or am I doing something wrong
or stupid here.
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2008-07-16 7:34 UTC | newest]
Thread overview: (only message) (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2008-07-16 7:34 Stupid mailx question Greg Rudd
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox