12-16-2010
10 More Discussions You Might Find Interesting
1. Solaris
Hi,
I have a script that sends a db extract file as an email attachment.
I have a crontab created to run it everyday at 8 am..
00 08 * * * ksh /home/rtaaa/tbasd/report.sh > /home/rtaaa/tbasd/logs/report.log
When i just run the "ksh /home/rtaaa/tbasd/report.sh >... (5 Replies)
Discussion started by: ryannam
5 Replies
2. Shell Programming and Scripting
Dears,
i have user called dellsh
i hope to make this script
when this user recieve email
check the budy of the email about (StatusRequest)
when i find this email contain this subject
run crontab do this job (create file in my home directory called index)
thanks for your attention (1 Reply)
Discussion started by: dellsh
1 Replies
3. Shell Programming and Scripting
hi all,
how do i email a file in the body of an email rather than as an attachment ??
have a ksh script which i need to read a file and email as part of the body rather than an attachment.
my code is :
uuencode file.log | mailx -s "test"
but this sends file as an attachment.
... (2 Replies)
Discussion started by: cesarNZ
2 Replies
4. Shell Programming and Scripting
Hi,
I am using mailx command to send an email and i took the body of the email from a file,
mailx -r gtt.org -s "Status Report " ss@org.com < $ProcessStatisticsFile
but now i want to declare the body of the email in the command itself.
I have tried with the following command but... (4 Replies)
Discussion started by: chinnu01
4 Replies
5. UNIX for Dummies Questions & Answers
Hi
I want to able to attach a file to a email and send it with a body
the body of the email is within the "body" file, and the attachment in "atch"
if i send like below it will send the email correctly
/usr/sbin/sendmail me@you.com< body
And when i send the attachment alone... (3 Replies)
Discussion started by: sridanu
3 Replies
6. Shell Programming and Scripting
Hi,
I have written shell program to send email as below -
#!/bin/ksh
filename=`ls -ltrh *.Z`
echo $filename |mailx -s "FOR TESTING" rahul.b@infotech.net
I am getting the email but email body is -
-rw-rw-r-- 1 bahulra dba 173M Mar 22 04:37 corphist.txt.Z -rw-rw-r-- 1 bahulra dba 107M... (3 Replies)
Discussion started by: rahulbahulekar
3 Replies
7. Shell Programming and Scripting
Hello All,
I been trying to get a solution for a while not able to figure out. I am generating a file and sending that as an body of message to my outlook account. For some reason reason everything is showing up as one line in the email.
for i in `cat "${GEN_PARAM_LIST3}"`
do
... (0 Replies)
Discussion started by: Ariean
0 Replies
8. Shell Programming and Scripting
I am making use of the following code to display the results of my txt file in an email:
mail -s 'Count Validation Test Comparison Results' Ronit@XYZ.com < Count_Validation_Results_`date +%m%d%Y`.txt
Email Output:
----------Query 1 Count Validation Results--------
Source count is 4
Target... (7 Replies)
Discussion started by: ronitreddy
7 Replies
9. Shell Programming and Scripting
I have a unix shell script generate.sh that writes to a file hello.txt using redirect.
For example:echo " Today's report shows progress by: " > hello.txt
This hello.txt is then send as an email body to the recipients.
My requirement is to have this special characters(up arrow and down arrow... (6 Replies)
Discussion started by: mohtashims
6 Replies
10. UNIX for Beginners Questions & Answers
Below is the code snippet and I'm not able to generate the table in email, output email has nothing
if ; then
echo "File $fName exists."
awk -F "," ' BEGIN {
print "MIME-Version: 1.0"
print "Content-Type: text/html"
print "Subject: Out OF Network Fee - Portfolio Level Stats"
print... (1 Reply)
Discussion started by: vyomdev
1 Replies
cron(8) System Manager's Manual cron(8)
NAME
cron - The system clock daemon
SYNOPSIS
/usr/sbin/cron
DESCRIPTION
The cron daemon runs shell commands at specified dates and times. Commands that are to run according to a regular or periodic schedule are
found within the crontab files. Commands that are to run once only are found within the at files. You submit crontab and at file entries
by using the crontab and at commands. Because the cron process exits only when killed or when the system stops, only one cron daemon
should exist on the system at any given time. Normally, you start the cron daemon from within a run command file.
During process initialization and when cron detects a change, it examines the crontab and at files. This strategy reduces the overhead of
checking for new or changed files at regularly scheduled intervals. The cron command creates a log of its activities. The cron daemon
must be started from the system startup scripts because it must begin execution without a login user ID set. The cron daemon starts each
job with the following process attributes stored with the job by the invoking process: Login user ID Effective and real user IDs Effective
and real group IDs Supplementary groups
It also establishes the following attributes from the authentication profile of the account associated with the login user ID of the invok-
ing process: Audit control and disposition masks Kernel authorizations
DIAGNOSTICS
The at and batch programs will refuse to accept jobs submitted from processes whose login user ID is different from the real user ID.
FILES
Specifies the command path. Main cron directory Directory containing the crontab files. List of allowed users. List of denied users His-
tory information for cron Queue description file for at, batch, and cron
RELATED INFORMATION
Commands: at(1), crontab(1), rc0(8), rc2(8), rc3(8)
Files: queuedefs(4) delim off
cron(8)