473,506 Members | 17,000 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Script for report

19 New Member
I have one script for running report. But it is currently taking only 5 instances and running the script. If at all there is 6th one waiting for running, the script is not picking up the 6th report. Below is the code. Please help me in fixing this!!!!

my_process=`/usr/ucb/ps laxwwww | grep "exec prog ECCCustomReportsWrapper.tcl" | wc -l`
my_process=`expr $my_process - 1`

number_of_parallel_processes=3
number_of_processes_to_start=5
number_of_high_prio_processes=1

processes_remaining=`expr $number_of_parallel_processes - $my_process`
count=0

if [ $my_process -le $number_of_parallel_processes ]
then
if [ $processes_remaining -le $number_of_high_prio_processes ]
then
echo "Going to start a High Priority Thread"
while [ $count -lt $number_of_processes_to_start ]
do
echo "Starting a new High priority process >>> "
$MQL_PATH -t -b $BOOT_FILE -c 'exec prog ECCCustomReportsWrapper.tcl /apps/NPICOEApps_dev/www/devmwsr3/EC_Report/'
my_process=`expr $my_process + 1`;
count=`expr $count + 1`
done
else
echo "Going to start a Low Priority Thread"
while [ $count -lt $number_of_processes_to_start ]
do
echo "Starting a new low priority process >>> "
$MQL_PATH -t -b $BOOT_FILE -c 'exec prog ECCCustomReportsWrapper.tcl /apps/NPICOEApps_dev/www/devmwsr3/EC_Report/'
my_process=`expr $my_process + 1`;
count=`expr $count + 1`
done
fi
fi


Appreciate your help!!!!!!!!!!!
Oct 4 '09 #1
1 1567
raagadeepthi
19 New Member
Can any one help me in this!!!
Oct 5 '09 #2

Sign in to post your reply or Sign up for a free account.

Similar topics

6
12947
by: Mike Daniel | last post by:
I am attempting to use document.write(pageVar) that displays a new html page within a pop-up window and the popup is failing. Also note that pageVar is a complete HTML page containing other java...
4
1334
by: crjunk | last post by:
I don't know much about java scripts, but here is my attempt to write one. My script allows the user to enter their customer number into a textbox. When they click on a button, they are...
4
2489
by: Alvaro G Vicario | last post by:
I have a list built on HTML and CSS: <ul> <li>Foo</li> <li>Bar <ul> <li>Gee</li> </ul> </li> </ul>
1
2453
by: Harsh | last post by:
i want to communicate crystal report with java script. I have a heirarchy tree displayed in java script and based on the node selected on that tree i want to generate and display report in crystal...
1
1889
by: Rob | last post by:
Access Gurus, This script was used to view the reports on the web by choosing a date on or before the current day.Recently it stopped working and i am not able to figure where the problem is. ...
5
2375
by: Cylix | last post by:
this.menus = { root: new Array };
0
265
by: Acrobat error in RS2000 and ASP2.0/2005 | last post by:
Hello, I am registering a client script that is a succession of strings appended. When I run the program, the script should open adobe acrobat with a .pdf file I generated. But the script opens...
3
1985
by: Mubs | last post by:
Shell script requirements When the “system status report” script is invoked the user should be presented with a menu. This will provide a list of options allowing the user to decide what the...
3
11268
by: traceable1 | last post by:
Is there a way I can set up a SQL script to run when the instance starts up? SQL Server 2005 SP2 thanks!
0
7218
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7103
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
7478
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
1
5035
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4701
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
3188
by: TSSRALBI | last post by:
Hello I'm a network technician in training and I need your help. I am currently learning how to create and manage the different types of VPNs and I have a question about LAN-to-LAN VPNs. The...
0
3177
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
755
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.
0
409
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.