Hi,
Is it possible for me to include the results from a command in the subject line? What I am looking to do is get the file count and include it into the subject line as well as the list of files in the body.
Example Subject line: Currently 25 files in directory
My Code:
I am a little new to scripting so I appreciate the help.
I can successfully email me the list of files out, formatted how I need, but would like to include the file count in the subject of the email.
Can someone please tell me how to modify/add to this code so that it recognizes UNIX command options (all beginning with "-") and executes the command with options?
#include<stdio.h>
#include<stdlib.h>
int main(int argc, char *argv)
{
int i;
system("stty -echo");
... (8 Replies)
If anyone can give me some ideas on this it would be great. What I'm trying to do is to have emails be sent to my unix account. Once they are emailed to the unix account, I want to use the text in the subject field to invoke a shell script, so basically I need to find a way that I can... (4 Replies)
Hi All,
I have a script that reads a file and echo it back to std out.
Test.txt
1aaaaaaaaaaa .
The script is ReadLine.sh
#!/bin/ksh
cat $1 | while read file
do
echo $file
done
I invoke the script as ReadLine.sh Test.txt
The output that I get is (1 Reply)
I want to instert Category:XXXXX into the 2. line
something like this should work, but I have somewhere the wrong sytanx. something with the linebreak goes wrong:
sed "2i\\${n}Category:$cat\n"
Sample:
Titel Blahh Blahh abllk sdhsd sjdhf
Blahh Blah Blahh
Blahh
Should look like... (2 Replies)
Hi All,
Can anyone please provide the command for sending an mail with attachment using mailx command.
Thanks in Advance :)
Regards,
Siram. (3 Replies)
Hi ,
I want to add date to the subject of the email. I am using mail and used
-s "SQL Loader was not able to load enid on `date` due to data error"
But it didnt work. can any one help me ??
Thanks
Sithara (1 Reply)
Hi,
I need to extract the subject of an e-mail sent using mailx. mailx is in a a file and the command reads like the following
Ex: sendMail.sh
mailx -s ' This is the subject' $recepiant
note that anything can come within ' ' which goes to the subject.
Please help (5 Replies)
I'm finally about to make the jump from PHP's mysql driver to the newer mysqli one using the mysqli converter tool.
The tool is called by this command line:
php /usr/share/nginx/html/rather/converter/cli.php -d -p ".php,.shtml,.inc" -u -b -v -w >> /tmp/convert.log
e.g. at the web root:... (2 Replies)
Hi All,
I want to send the csv to an email address.
I have tried the below two approaches.
Approach1: Got error -ksh: uuencode: not found
$ uuencode test_file.csv test_file.csv | mailx -s "Attaching test" msdc.kiran@gmail.com </usr/home/test_file.csv
-ksh: uuencode: not found
Approach2:... (6 Replies)
Hi
Newbie here with first post. I've got a shell script (ksh) whereby I run a SQL*Plus script and output the results to a file. I then check the output file in an if statement that looks like this:
if ]; then
export GAPNUM=`awk '{print $4}' $OUTFILE`
if ] then
mailx -s... (10 Replies)
Discussion started by: ltzwoman
10 Replies
LEARN ABOUT DEBIAN
rt-email-dashboards-4
rt-email-dashboards(8) Request Tracker Reference rt-email-dashboards(8)NAME
rt-email-dashboards - Send email dashboards
SYNOPSIS
rt-email-dashboards [options]
DESCRIPTION
This tool will send users email based on how they have subscribed to dashboards. A dashboard is a set of saved searches, the subscription
controls how often that dashboard is sent and how it's displayed.
Each subscription has an hour, and possibly day of week or day of month. These are taken to be in the user's timezone if available, UTC
otherwise.
SETUP
You'll need to have cron run this script every hour. Here's an example crontab entry to do this.
0 * * * * /usr/bin/perl /opt/rt4/local/sbin/rt-email-dashboards
This will run the script every hour on the hour. This may need some further tweaking to be run as the correct user.
OPTIONS
This tool supports a few options. Most are for debugging.
-h
--help Display this documentation
--dryrun
Figure out which dashboards would be sent, but don't actually generate or email any of them
--time SECONDS
Instead of using the current time to figure out which dashboards should be sent, use SECONDS (usually since midnight Jan 1st, 1970,
so 1192216018 would be Oct 12 19:06:58 GMT 2007).
--epoch SECONDS
Back-compat for --time SECONDS.
--all Ignore subscription frequency when considering each dashboard (should only be used with --dryrun for testing and debugging)
perl v5.14.2 2013-05-22 rt-email-dashboards(8)