Sponsored Content
Top Forums Shell Programming and Scripting mailx -s not sending the file to mail address Post 302423597 by a1_win on Friday 21st of May 2010 11:37:42 AM
Old 05-21-2010
It's working and sending mail when I use ls -l and ls as pointed out by user 'ygemici' but not working with cat.

But my purpose is to send the contents of the file using cat and ls -l or ls will send only the path name to the file and file name.

Please advise!

Thanks,

---------- Post updated at 11:37 AM ---------- Previous update was at 11:35 AM ----------

Could anyone pls suggest alternatively, How could I send spool file as attachment in the mail.

Thanks,
 

10 More Discussions You Might Find Interesting

1. HP-UX

Sending Error msg from HP-UX to E-mail address

Sometimes, for any reason, the UX System sends messages to /var/mail/root and/or to Error Log of the guardian. I'll appreciating if you help me to configure so that those messages are also sent to the System Administrator's e-mail address. Regards Gege (1 Reply)
Discussion started by: cgege
1 Replies

2. Shell Programming and Scripting

sending mail through mailx

while trying to send a mail, though the output file doesn't contain any exclamatory mark(!), i am getting that in the mail with an extra line. please help me out from this ASAP. (3 Replies)
Discussion started by: pvamsikr
3 Replies

3. Shell Programming and Scripting

how to know if the mailx command really sends the mail to the email address?

Hi guys, I have a question about the returning message of the mailx command. if I run a mailx command, how can I know if the email has been sent to the email address? If the email address doesn't exist, is there any error message returned? If yes, how can I get the error message? Thanks... (3 Replies)
Discussion started by: sheenshine
3 Replies

4. UNIX for Dummies Questions & Answers

sending mail using mailx command

Hi All, Please help me regarding sending mails using mailx command in unix. I will be glad if some one give me the sintax of this. I tried using the below but vain. mailx -s 'Hi' 'xyz@abc.com' Regards, Manas (5 Replies)
Discussion started by: manas6
5 Replies

5. Shell Programming and Scripting

sending mail from perl using mailx

hi All, i am trying to send a mail from perl using mailx. the script runs fine if i hard code the file path which is to be attached to the mail. but when i give a variable containing the path of the file , perl is not able to send the file. ex: system('uuencode /attach/test.txt... (3 Replies)
Discussion started by: adityamahi
3 Replies

6. Shell Programming and Scripting

sending mail using Mailx with data from oracle table

Hi, i need to send emails to the mail ids i receive using the sql query . SELECT L.ALARM_DEF,L.CRITERIA,L.DISTANCE_METRE,L.EMAIL,L.LAC_ID,L.LAST_CHECK,L.RANGE, L.RESOURCE_MSISDN,LM.ADDRESS,LM.NAME FROM LANDMARK_ALARM_CONF l, LANDMARK lm WHERE L.LANDMARK_ID=LM.LANDMARK_ID AND... (0 Replies)
Discussion started by: aemunathan
0 Replies

7. Shell Programming and Scripting

sending mail through mailx command

Hi I need help to send mail through mailx command . Currenlt my program is like #!/bin/ksh -x echo " " >> path.lst MAIL_LIST='someone1@gamil.com someone2@gamil.com someone3@gamil.com' cat path.lst | mailx -s "path loaction" $MAIL_LIST echo "End" exit 0 Its work fine . But i... (3 Replies)
Discussion started by: mani_isha
3 Replies

8. Shell Programming and Scripting

How to embed a html file in a mail sending from Linux box with uuencode or mailx?

How to embed a html file as subject in a mail sending from Linux box with uuencode or mailx or any other way? we do not want the file as attachment, it should be embedded in the mail subject. (2 Replies)
Discussion started by: johnveslin
2 Replies

9. UNIX for Dummies Questions & Answers

Mailx working but not sending mail

Hi All, I have a unix server on which mailx is configured . Earlier i was getting proper mails but now some mails are getting stuck and i am not receiving the emails from the server. I can see the mails in mailq. Can you please help me with this . How can i receive these emails? (2 Replies)
Discussion started by: pratikm23
2 Replies

10. Red Hat

Problems sending mail: Difference between Mail and Mailx?

Whats the difference between mail and mailx? I'm trying to troubleshoot a problem where I can send mail from server A with this `echo $MESSAGE | mail -s "$SUBJECT" -r $FROM $RECIPIENTS` command but executing the same command from server B throws me this error (Both servers are RHEL) ... (1 Reply)
Discussion started by: RedSpyder
1 Replies
faxrunq(1)						       mgetty+sendfax manual							faxrunq(1)

NAME
faxrunq - send fax jobs queued by faxspool(1) SYNOPSIS
faxrunq DESCRIPTION
Run the fax queue set up by faxspool(1), try to send all faxes, record result, remove job and send notify mails. faxrunq looks for all the jobs queued by faxspool(1) to /var/spool/fax/outgoing/*. For each job in the queue, faxrunq tries to send it, using sendfax(8). If the send succeeds, the job is removed from the queue, and a "success" mail is sent to the originator of the spooled job. If the send fails, it's logged, and faxrunq proceeds to the next job. If the job fails five times "fatally", that is, not with a locked or engaged line, but with "NO CARRIER" (no fax machine, or line noise), the job is suspended, and the requestor gets a mail, telling him so. faxrunq can be run from the command line (but make sure the user doing this has write access to the modem device and to the fax queue, that is, usually this should be done by "fax" or "root"). In a production environment, it's more useful to start faxrunq from cron(8) in regu- lar intervals, like "run it every 5 minutes". See the cron(8) and/or crontab(1) man pages for this (which man page exists depends on your system). OPTIONS
-q Tells faxrunq to be quiet, that is, suppress all status messages. Error messages will still be printed. FILES
/var/spool/fax/outgoing/stop if this file exists, faxrunq (and faxrunqd) will do nothing. You can use this to stop queue processing while testing something, or if you know that the modem(s) are unavailable and do not want to run into oany error messages, etc. /var/spool/fax/outgoing/faxqueue_done Every time faxrunq (or faxrunqd) run the fax queue, a time stamp is written into that file. It is used by faxspool to display a warning if the queue hasn't been run recently (so faxes may get stuck). CONFIGURATION FILE
Some aspects of the behaviour of faxrunq can be controlled by a configuration file, /etc/mgetty+sendfax/faxrunq.config. In this file, you can use the following options: success-send-mail [y/n] A boolean parameter that controls whether a mail will be sent after successful completition of the fax job. failure-send-mail [y/n] A boolean parameter that controls whether a mail will be sent after the fax job has failed more than the maximum number of times. success-call-program <name> Here, you can specify a program that will be run when the fax has been successfully sent. It will be passed two command line parame- ters. The first is the full path to the fax JOB file (see faxq(5)), the second is the last exit code from sendfax (for success-call- program, this is always "0"). failure-call-program <name> Similar to the "success-call-program", this program will be run when the fax has been failed too often and faxrunq gives up. This script could, for example, print out the fax on a printer so that it can be sent manually on a paper fax machine. maxfail-costly <n> This specifies the number of times that a fax may fail "fatally", that is, causing telephone costs (explained above). The default value is 5. maxfail-total <m> This is the absolute maximum number of times that faxrunq will try to send any given fax. The default value is 10. (Right now, it's not yet implemented). delete-sent-jobs [y/n] Determines whether faxrunq should delete jobs after sending, or leave them in the fax queue (while moving the "JOB" file to "JOB.done") so that they can be seen at by "faxq -o". The default value is "do not delete sent faxes". acct-log <path> Specifies where faxrunq should protocol success and failure of each try to send a fax job. The default location is /var/spool/fax/outgoing/acct.log. There are some other options that are allowed, but ignored. These are: max-modems, and faxrunqd-log. They are used by faxrunqd(8) (which reads the same config file, but has more options). BUGS
faxrunq doesn't handle proper time scheduling yet Don't use faxrunq if you have malevolent users with access to the fax spool. It doesn't handle all cases of file movement tricks cor- rectly. Use faxrunqd(8) instead, which does it correctly (this point is mostly moot if the fax queue is set up correctly - that is, owned by 'fax', mode 755, and faxrunq(1) is also run as user 'fax'). SEE ALSO
faxspool(1), sendfax(8), faxq(1), faxqueue(5), faxrunqd(8) AUTHOR
faxrunq is Copyright (C) 1993-2002 by Gert Doering, <gert@greenie.muc.de>. greenie 23 Nov 02 faxrunq(1)
All times are GMT -4. The time now is 01:42 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy