How to create a crontab in Linux to print qldump output with an interval.
book
Article ID: KB0092867
calendar_today
Updated On:
TIBCO ActiveSpaces
|
-
|
Not Applicable
|
-
|
Description
Description:
How to create a crontab in Linux to print qldump output with an interval.
Issue/Introduction
How to create a crontab in Linux to print qldump output with an interval.
Environment
Product: TIBCO ActiveSpaces
Version:
OS: Linux Systems
--------------------
Resolution
1). Write an as-admin script to print qldump.
2). Use as-admin -i to redirect the output.
3). Use the Linux command to print it with an interval.
Example.
the as-admin script (qldump.asadmin) File attached.
++++++++++
connect
qldump
disconnect
quit
++++++++++
the linux script (qldump.sh) File attached.
+++++++++++
#!/bin/sh
AS_HOME=/home/morphy/TIBCOHOMES/ASHome/AS215/as/2.1/
Script_Path=/home/morphy/Shell/scripts/qldump.asadmin
Output_Path=/home/morphy/Shell/scripts/qldump.output
Index=0
export LD_LIBRARY_PATH=$AS_HOME/lib
cd $AS_HOME/bin
./as-admin -i $Script_Path>$Output_Path
exit 0;
++++++++++++
Note:
====
This script can be added in Linux as a crontab. The interval will be set by the crontab. Sample script attached (Filename: qldump.sh).
Attachments
How to create a crontab in Linux to print qldump output with an interval.
get_app
How to create a crontab in Linux to print qldump output with an interval.
get_app
Feedback
thumb_up
Yes
thumb_down
No