to send me a particular picture with the name of the data+jpg in a pictures folder, but this folder I use it for a timelapse proyect with more pictures , and what I need is a bash script to checking the last image and sending it in attachment to my mail once a day by a cron:
Code:
00 12 * * * * pi sh /home/pi/email_last_picture.sh
Thank You
Moderator's Comments:
Please use CODE tags as required by forum rules!
Last edited by RudiC; 10-07-2018 at 04:30 AM..
Reason: Added CODE tags.
I have been sending an email attachment from my unix box, but keep getting an error? All though the recipient still receives the email and attachment. Will this error cause problems in the future and how to I cure it?
$ uuencode PReSvPRINTER.txt file | mailx -s "File" me@world.com
uuencode:... (1 Reply)
Hi
I am new to unix and scripting.I am trying to send a html file as an attachment.
SUBJECT="Type of Exceptions in Application"
TO=Sushovan.Samals@gmail.com
SPOOLFILE=/data/reg/tlogs/Monitor.html
#echo "Send the E-mail message..."
uuencode $SPOOLFILE $SPOOLFILE | mailx -s "$SUBJECT" $TO... (2 Replies)
Issue on sending a mail with attachment using unix script ?
Below is my code and is working fine and there is a issue in the attachment, the attachment file printing as a text-encripted message in the mail draft box instead of putting as a attachment
(cat $msg; uuencode $attach1 in1.txt ;... (2 Replies)
Hi, I need to send a email as a txt file and i used the commands,
(echo `echo $EMAIL_MSG` ; uuencode "file.txt" "file.txt" ) | mailx -s "$EMAIL_SUBJECT" "$EMAIL_ID"
I received email with a attachment with all data but i get all of them in one row.
For example:
If file.txt contains value... (1 Reply)
Hi,
I am using Sun solaris OS unix server
I am trying to send mail with an attachment using below script
cat test.txt;uuencode test.txt test.txt|mailx -s "$subject" someone@somewhere
I m getting mails but with no attachment.
Hence i manipulate the script as below and i am... (2 Replies)
Hi Team,
I have written the following code snippet to send mail with attachment to recipient. But I am getting mail with attachment. But the file is empty. All the 3 Attachment* size is more than 80KB.
Not sure what is wrong in the command.
MSG_BODY1="hi"
LOG_FILE="a/b/c/log1.log"... (2 Replies)
Hi Everyone,
I am facing problems in sending html mail with attachemnt.
I will able to send mail with attachment (plain text ) using mailx -s and uuencode command and
also html mail without attachment using sendmail option.
However I am not able to send html mail along with attachment.Either... (2 Replies)
How to Send a mail with multiple attachment also differenet extension using uuencode in AIX.
Can you please help me. Its so urgent.
Thanks.
Regards,
Swapnil
---------- Post updated at 05:37 AM ---------- Previous update was at 05:35 AM ----------
I have below code. But attachment... (1 Reply)
Hi guys,
I am trying to send a mail with below command which is working fine. $FilePath_mail have To,From and other information along with mail body which is in HTML format. I want to have image(logo) in the body. So just wanted to send it as an an attachment.
/usr/sbin/sendmail -t <... (1 Reply)
Discussion started by: balakrishnaps
1 Replies
LEARN ABOUT SUSE
faxrcvd
FAXRCVD(8C)FAXRCVD(8C)NAME
faxrcvd - HylaFAX notification script for received facsimile
SYNOPSIS
/var/spool/fax/bin/faxrcvd qfile devid commid error-msg [ callid-1 [ callid-2 [ ... [ callid-n ] ] ] ]
DESCRIPTION
bin/faxrcvd is the command script invoked by the facsimile server whenever a facsimile is received. The default script sends electronic
mail to the FaxMaster user describing the content of the facsimile and other useful information such as the time spent receiving the docu-
ment. The arguments are:
qfile the pathname of the received TIFF file relative to the root of the spooling hierarchy.
devid the modem device on which the facsimile was received.
commid the communication identifier for the inbound call.
error-msg an error message that is non-null if an error was encountered during the receive operation.
callid the value of various identification indicators from the call
NOTES
This script can route facsimile directly to the intended recipient. To do this create a shell script bin/FaxDispatch in the spooling area
that sets SENDTO to the receiver's electronic mail address. For example,
case "$SENDER" in
*1*510*526*1212*) SENDTO=sam;; # Sam's test rig in Berkeley
*1*415*390*1212*) SENDTO=raster@asd;; # 7L Xerox room, used for scanning
*5107811212) SENDTO=peebles@mti;; # stuff from home
esac
case "$DEVICE" in
ttyS1) SENDTO=john;; # all faxes received on ttyS1
ttyLT0) SENDTO=mary@home;; # all faxes received on ttyLT0
esac
case "$CIDNUMBER" in
435*) SENDTO=lee; FILETYPE=pdf;; # all faxes from area code 435
5059627777) SENDTO=amy; FILETYPE=tif;; # Amy wants faxes in TIFF
esac
case "$SUBADDR" in
53) SENDTO=FaxMaster;; # without double-notification
roger) SENDTO=roger;; # possible text subaddressing
esac
Note that you must match any embedded white space. The facsimile will be sent as a MIME-encoded PostScript document as default.
CALLIDn
is equivalent to the nth call identification parameter
CIDNAME
is equivalent to CALLID2 above.
CIDNUMBER
is equivalent to CALLID1 above.
DEVICE is equivalent to device above.
FILETYPE
controls the filetype of the image attachment. Current filetype options are ``ps'', ``tif'', and ``pdf''. Multiple values may be
specified by separating them with whitespace. In that case a separate attachment is created for each filetype.
FROMADDR
controls the sender of the received fax notification. It is given as an e-mail address.
MSG is equivalent to error-msg above.
NOTIFY_FAXMASTER
(an underscore ``_'' character is between NOTIFY and FAXMASTER) indicates whether or not the HylaFAX administrator should be noti-
fied regarding incoming facsimile. Default is ``always''. Also available are ``never'', which means to never send any received
facsimile notification, and ``errors'', which means to send notification only if there were reception errors.
SENDER is the received TSI of the fax sender.
SENDTO controls the recipient of the received fax notification. It is given as an e-mail address, and it's value will be passed directly
to the MTA for delivery as well as being inserted into the email. If you want to send to multiple receipients in seperate messages
set the variable SENDTO1...SENDTOn in addition to SENDTO. faxrcvd will process additional SENDTOn variables starting at 1, and
stopping at the first empty SENDTOn variable it finds. The templates should continue to reference $SENDTO, and faxrcvd will make
sure it get's set correctly as the template is processed for each one.
SUBADDR
the received subaddress value, communicated by the sender for post-reception routing purposes
TEMPLATE
the template subdirectory to use when sending e-mails. HylaFAX ships with a base set of templates, and some direct translations.
To use the German translated templates, set TEMPLATE=de in FaxDispatch. This is relative to the base template directory.
Other shell variables are available. Consult the faxrcvd script directly.
FILES
/var/spool/fax spooling area
/usr/sbin/faxinfo for printing information about the facsimile
/usr/bin/fax2ps for converting TIFF to PostScript
/usr/sbin/sendmail for delivering mail
/var/spool/fax/etc/templates/ base directory for outgoing e-mail templates
SEE ALSO faxd(8C), hylafax-server(5F), recvq(5F)
May 28, 2001 FAXRCVD(8C)