I have a shell script which executes to write html codes into a text file. My next step is to email the text file so that receiving person (people who i send email to) should be able to see pie/chart or bar graph (whatever i design in my code) in their email. Following is the example of a sample shell script which writes a html file with pie chart codes in it. I need to email this html file and the receiver needs to see the pie chart in their email.
I have tried using mutt and send email but nothing works.
I have tried : chart.XXXXX is the filename created when the shell script is executed and this chart.XXXXX file will have the html content in it.
Appreciate your time and help.
Thanks!!
Moderator's Comments:
Please use CODE tags for ALL sample input, output, and code segments.
No. The command TEMP=$(mktemp -t chart.XXXXX) (and your shell script above) does not create a file named chart.XXXXX, it creates a file with a name more like: /var/folders/hb/zmv2wvjx07sc_lqgzmwrsvt80000gn/T/chart.XXXXX.32sQA0j4 (your pathname will vary, but this is the pathname of the file created when I ran that command on my system a few minutes ago).
So, the command:
will probably generate an error message saying something like:
unless you created a file by that name some other way.
If you use mktemp to create your output file, your script needs to also produce output that will allow other programs that want to use that data to find the output file it created.
What operating system are you using? On most systems, the options to mutt should be presented before the operands. Did you get any output at all from the commands you ran?
I want to send a text file from Unix as an attachment to a Microsoft Outlook address. I have tried the 'elm' command which does this. But it is in an interactive mode. I want this to be automatically done by a program. Is there any other way to this? (3 Replies)
Hi
A) I am able to send eMail using mailx from a UNIX ( solaris 8 ) host to my Outlook-email-ID : FName.Surname@Citigroup.com ( This is NOT my actual -eMail-ID). But in Outlook the "From :" eMail address is displayed as
" usr1@unix-host1.unregistered.email.citicorp.com " .i.e the words... (2 Replies)
I ran a search for "Unix Dos" in the search field box and checked a few pages' results but did not find what I was looking for. I am trying to find out if there are choices of applications that would enable using Unix commands inside a Windows environment, particularly the DOS Prompt. The only... (2 Replies)
Hi Every one,
I have to install microsoft outlook on unix operating system. We can install microsoft outlook on Linux operating system using WINE HQ Emulator. Like wise any Emulator , interface or compatibility layer for running Windows Applications. Please give some suggestions links to do... (3 Replies)
Hello all,
I need the scripts automatic generate 3D pie Graph. What I have now is as below:
Run at terminal by $ CMD R BATCH graph.R
# 3D Exploded Pie Chart
library(plotrix)
slices <- c(20, 15, 4, 15, 8)
lbls <- c("Media", "Document", "DB", "Others", "Available")
pct <-... (5 Replies)
Hi Friends,
I am trying to send a graph in Body of HTML Email which is generated using a SAS Code. But, I am not able to see the picture, Instead seeing a red cross mark in Email Body.
Could you please help me in fixing this problem? Also, I do not have a Shared Place (or) a web server to... (0 Replies)
For example, I have a file called data.txt. And the content is:
Iker_Casillas 181
Raphael_Varane 182
Sergio_Ramos 182May I know how to write a script for gnuplot, so I can have a bar graph as the column 1 will be the x and column 2 will be the y? And I hope that the x value can be seen clearly.... (0 Replies)
I have a ksh script that emails a report to outlook from a Unix Solaris. On server the report formatted perfectly. However, the email version the format is not.
On the server report looks like this:
TN Region Old SPiAD Server Order/Req Local Status NAAC Status Request Date New... (1 Reply)
Hi guys,
Hoping someone can help with the below - involves basic commands and some scripting. Thanks so much in advance for your amazing time and help.
3. The file /etc/profile contains the default initialization options for your shell.
Produce a unique list of all variables with uppercase... (1 Reply)