I have a bash script which reads lines from a text file with 4 columns(no headers). The number of lines can be a maximum of 4 lines or less. The words in each line are separated by SPACE character.
I need to se开发者_运维问答nt a file via mailx or mail, but I wat to sent it as attachment not in the body message. Is there any way how to do it ?
I have the commands that I need. If I execute these commands at the prompt, everything works as expected. SQLPlus runs the query, exports the result to a file and then Mailx emails that file to me.
if the subject of a mail is a little longer then it is not possible to pipe it to any command or external file without getting truncated. Why? And how do you do it correctly?
I want to send an email from a bash script when my script creates a new file. This is the code I have written so far:
Here\'s my code that is not working: print \"To: \";my $to=<>;chomp $to; print \"From: \";my $from=<>;chomp $from;