05-27-2011
Am working in message Queueing(IBM MQ)
Am working in message Queueing(IBM MQ) and i write some script to automate the process in my work...The crontab will run every month on 15th and you will get remainder mail.
0 0 15 * * /home/your_script.ksh
The script should have below code:
echo -e "Hello,/n/nTime to renew your SSL certificate\n\nThanks,\nyour_name" | mail -s "SSL certificate"
your_mailID@yyy.xxxx
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I have a file that was created yesterday that I want to access...
daily.log2008-02-16
I am using...
curr_time=`date +"%Y %m %d"`
yesterday=`./datecalc.ksh -a $curr_time - 1`
the value for yesterday is now "2008 2 16"
in ksh, how do I transform the string "2008 2 16" into "2008-02-16" (5 Replies)
Discussion started by: martyb555
5 Replies
2. Shell Programming and Scripting
I have a file that contains the output of the ls -iR command, something like this:
./results:
2504641011 result_1410 2500957642 result_525
2504641012 result_1425 2500957643 result_540
./tests/1:
2500788755 1 2500788743 1000
./tests/2:
2500788759 3 2500788758 999
... (6 Replies)
Discussion started by: looza
6 Replies
3. Shell Programming and Scripting
I need to parse the following out put and determine if the USB is a DISK and whether or not it's External.
If an HBA line contains "USB" then does the next line contain
"DISK" and "External".
0:0,31,0: HBA : (aacraid,1) AAC SCSI
0,0,0: DISK : Adaptec ASR4800SAS Volu0001
... (6 Replies)
Discussion started by: lochraven
6 Replies
4. UNIX for Dummies Questions & Answers
Hi All
There is a file "apple_2008-08-15.log".
I have to use grep on this file to collect my test log. There are 45 such files. Is there a command that I can use to dynamically substitute the daily date as part of the file name? As of now Iam renaming the file to the new date and running my... (6 Replies)
Discussion started by: pk_eee
6 Replies
5. Shell Programming and Scripting
Hi,
From the above output of df command I need to parse only 43G (available space) and display it.
root@localhost:> df -h /vol1/joy
Filesystem Size Used Avail Capacity Mounted on
/vol1/joy 180G 137G 43G 76% ... (3 Replies)
Discussion started by: cjjoy
3 Replies
6. Shell Programming and Scripting
Can somebody provide a solution to parse the following;
cat /tmp/xxx
Name: QUE_REQU (o.mtaseast-o.dmart) (MTPost queue)
Number of messages: 66446 (Age 686 min; Size 214 mb)
Backlog (messages): 0 (Age 0 min)
Name: QUE_REQU... (6 Replies)
Discussion started by: BeefStu
6 Replies
7. UNIX for Dummies Questions & Answers
Hi Guys,
Anyone who knows how to compare the current date with the a file containing a date, say for example I have a file that looks like this:
Command was launched from partition 0.
------------------------------------------------
Executing command in server server6
Fri Dec 16... (7 Replies)
Discussion started by: rymnd_12345
7 Replies
8. Shell Programming and Scripting
Hi ,
i am trying to set up an alert, when CPU usage (0.2%us in below output) is more than 40%
top | head | grep '^Cpu'
Cpu(s): 0.2%us, 0.2%sy, 0.0%ni, 99.1%id, 0.6%wa, 0.0%hi, 0.0%si, 0.0%st
using CUT, i pulled the value 0.2 and assigned to CPU (variable)
CPU=$(expr `top | head -10... (5 Replies)
Discussion started by: Prateek007
5 Replies
9. Shell Programming and Scripting
Hi ... extremely new to Unix scripting ... I have to get a date field from mm/dd/yyyy to yyyy/mm/dd format ... I have a variable that I want parsed. I don't seem to be doing it right?? Thanks. (19 Replies)
Discussion started by: MJKeeble
19 Replies
10. UNIX for Dummies Questions & Answers
Hi,
I am new to Unix and need some help with a problem I have.
I have been asked to ftp a file(s) from a directory to another system.
I need to be able to allow the current days file to build and only send any other file across that is in the directory. I need a peice of code that will read... (3 Replies)
Discussion started by: darrenwg99
3 Replies
LEARN ABOUT CENTOS
reporter-ureport
REPORTER-UREPORT(1) LIBREPORT MANUAL REPORTER-UREPORT(1)
NAME
reporter-ureport - Reports ABRT problems in format of micro report
SYNOPSIS
reporter-ureport [-v] [-c CONFFILE] [-u URL] [-k] [-A -a bthash -B -b bug-id -E -e email] [-r] [-d DIR]
DESCRIPTION
The tool reads problem directory DIR, assembles an micro report from the loaded problem data and sends the micro report to uReport server
for updating statistics and fast analysis. The results of the analysis are stored in problem data in form of problems elements.
reporter-ureport updates reported_to
Configuration file
If not specified, CONFFILE defaults to /etc/libreport/plugins/ureport.conf. Configuration file lines should have PARAM = VALUE format. The
parameters are:
URL
Base sever HTTP(S) address.
SSLVerify
Use no/false/off/0 to disable verification of server's SSL certificate. (default: yes)
SSLClientAuth
If this option is set, client-side SSL certificate is used to authenticate to the server so that it knows which machine it came from.
Possible values are:
rhsm
Uses the system certificate that is used for Red Hat subscription management.
puppet
Uses the certificate that is used by the Puppet configuration management tool.
<cert_path>:<key_path>
Manually supply paths to certificate and the corresponding key in PEM format.
ContactEmail
Email address attached to a bthash on the server.
Parameters can be overridden via $uReport_PARAM environment variables.
OPTIONS
-c FILE
Path to configuration file
-a, --attach BTHASH
bthash of uReport to attach (conflicts with -A)
-A, --attach-rt
Attach to a bthash from reported_to (conflicts with -a)
-b, --bug-id NUM
Attach RHBZ bug (requires -a)
-B, --bug-id-rt
Attach last RHBZ bug from reported_to (requires -a|-A, conflicts with -b)
-e, --email EMAIL
Contact e-mail address (requires -a|-A, conflicts with -E)
-E, --email-env
Contact e-mail address from environment (requires -a|-A, conflicts with -e)
-d, --problem-dir DIR
Path to problem directory.
-k, --insecure
Allow insecure connection to ureport server
-t, --auth SOURCE
Enables client authentication. See SSLClientAuth configuration file option for list of possible values.
-v
Be more verbose. Can be given multiple times.
-u, --url URL
Specify server URL
ENVIRONMENT VARIABLES
Environment variables take precedence over values provided in the configuration file.
uReport_URL
Base sever HTTP(S) address.
uReport_SSLVerify
Use yes/true/on/1 to verify server's SSL certificate. (default: yes)
uReport_ContactEmail
Email address attached to a bthash on the server.
SEE ALSO
ureport.conf(5)
AUTHORS
o ABRT team
LIBREPORT 2.1.11 06/18/2014 REPORTER-UREPORT(1)