Hi All,
I have a shell script which is configured for the user. The main task of the shell script is to email certain user with a particular result.
The shell script runs perfectly when run from a Konsole terminal and configured through a crontab generates empty entries.
Below is my crontab for my user.
Code:
# DO NOT EDIT THIS FILE - edit the master and reinstall.
# (/tmp/crontab.XXXXSyNyp1 installed on Wed Jan 6 09:14:14 2010)
# (Cron version V5.0 -- $Id: crontab.c,v 1.12 2004/01/23 18:56:42 vixie Exp $)
#!/bin/bash
#
# Minute (0-59), Hour (0-23), Day (1-31), Month (1-12), Day of Week (0-7)
#
*/5 * * * * /home/bldteam/bin/vmail_summary_findbugs.sh
vmail_summary_findbugs.sh
Code:
#!/bin/bash
FRAMEWORK=`cat ~/public_html/checkstyle/results/psw/projects/core.framework/reports/find_bugs.txt | parse_find_bugs`
COMPONENTS=`cat ~/public_html/checkstyle/results/psw/projects/core.components/reports/find_bugs.txt | parse_find_bugs`
PSW=`cat ~/public_html/checkstyle/results/psw/projects/psw/reports/find_bugs.txt | parse_find_bugs`
HDAV=`cat ~/public_html/checkstyle/results/hdav/projects/hdav/reports/find_bugs.txt | parse_find_bugs`
echo "Report taken from: http://tcl00012/checkstyle/
===== Core Framework =====
$FRAMEWORK
===== Core Components =====
$COMPONENTS
===== PSW =====
$PSW
===== HDAV =====
$HDAV" |
mail -s "[ALERT] Venue Software FindBugs Summary by Class" vjayara9@rockwellcollins.com