I guess * is expanded .. try below:
Also try same command on command line to see what you get ...
with newer grep it will show you what is matched in different colour .
Hi All,
I have a log file which consists of log messages as follows ->
GLOBALCALLID_CLUSTERID_B NEXT * , O(") CHARACTER
JOINONBEHALFOF NEXT * , O(") CHARACTER
Record 1: Rejected - Error on table IFA_MMV_CDR, column CDRRECORDTYPE.... (1 Reply)
Hi,
I am running my script using nohup, but I am not able to capture the log file for that process could naybody please help...
Here is what I am doing....
nohup ./script & 1>/home/user1/log.txt
but I am not able to capture the log.....Is there anyother way I can capture the log... (2 Replies)
Hi all,
i have a log file that captures success or failure messges when i run a daily job.
here is a sample of my log.
20060312 start
successful
successful
failure
failure
20060312 end
i need to write a subroutine that opens up the log daily after my job completes to examine the log... (2 Replies)
Hi All,
I want to send a message through email.
I have written below code. But it is not worling. Anybody has idea, why it is not working?.
export $file1=$home1/pip1.$$
mailx -s "This Message from unix" abc@yahoo.com< $file1
thanks,Mary. (5 Replies)
i have a file new1.txt
i want to send the contents of that file as a message to email ali@sms.com
i m using ksh script.........
plz help me (5 Replies)
Hello All
i need Shell Script to send /var/log/message or another if he have or grep this file to have some info
like PID or value (e.g like NFS mount - stop ) to some body in my System
Thanks for Advanced (2 Replies)
Hi
I have a script that will run multiple unix & sql commands. I want to see the output as well as capture it to a log file for further analysis. Is there an easy way to do that instead of adding "tee -a logfile" on everyline or even on the execute line (i.e. script | tee -s logfile).
Thanks (1 Reply)
Hi guys i have one script which is as below
do
some sqlplus output in to $LOG
sed '/^$/d' $LOG > /tmp/job.log
mv /tmp/job.log $LOG
awk '{if ($5=="COMPLETED") {print "backup completed at "$3" "$4 " of " $6 " for " d>> "/home/email.log" } else {print "check backup for " d}}' d="$ORACLE_SID"... (2 Replies)
Hi,
I require need help in two aspects actually:
1) Fatal error that gets generated as %F% from a log file say ABClog.dat to trigger a mail. At present I manually grep the log file as <grep %F% ABClog.dat| cut-d "%" -f1>. The idea is to use this same logic to grep the log file which is... (1 Reply)
Hi All,
I have the below code(.sh) and need to send an email.
#!/bin/bash
cp /u02/xxc_incoming/TEST*.dat /u02/xxc_archive_incoming/AMER7764_ARPP_2/
cat /u02/xxc_incoming/TEST*.dat > /u02/xxc_incoming/XXC_TEST.dat
rm /u02/xxc_incoming/TEST*.dat
cd $XXC_TOP/bin
sqlldr userid=apps/<pwd> ... (12 Replies)
Discussion started by: Mist123
12 Replies
LEARN ABOUT DEBIAN
paranoid::log::email
Paranoid::Log::Email(3pm) User Contributed Perl Documentation Paranoid::Log::Email(3pm)NAME
Paranoid::Log::Email - Log Facility Email
VERSION
$Id: Email.pm,v 0.82 2010/04/15 23:23:28 acorliss Exp $
SYNOPSIS
use Paranoid::Log;
enableFacility('crit-alert', 'email', 'debug', '+', $mailhost,
$recipient);
enableFacility('crit-alert', 'email', 'debug', '+', $mailhost,
[ @recipients ]);
enableFacility('crit-alert', 'email', 'debug', '+', $mailhost,
$recipient, $sender, $subject);
DESCRIPTION
This module implements an e-mail transport for messages sent to the logger. It supports one or more recipients as well as overriding the
sender address and subject line. It also supports connecting to a remote mail server.
DEPENDENCIES
o Net::SMTP
o Net::Domain
o Paranoid::Debug
SUBROUTINES /METHODS
NOTE: Given that this module is not intended to be used directly nothing is exported.
init
log
remove
dump
SEE ALSO
o Paranoid::Log
BUGS AND LIMITATIONS
No validation of any information, be it the mail server, recipient, or anything else is done until a message actually needs to be sent.
Because of this you may have no warning of any misconfigurations just by enabling the facility.
AUTHOR
Arthur Corliss (corliss@digitalmages.com)
LICENSE AND COPYRIGHT
This software is licensed under the same terms as Perl, itself. Please see http://dev.perl.org/licenses/ for more information.
(c) 2005, Arthur Corliss (corliss@digitalmages.com)
perl v5.14.2 2010-04-15 Paranoid::Log::Email(3pm)