473,396 Members | 1,898 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,396 software developers and data experts.

Script for report

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 1563
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
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
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
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
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
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
by: Cylix | last post by:
this.menus = { root: new Array };
0
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
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
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
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
0
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
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
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...

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.