> > Ron, I think you meant to send this to the list, too :) > > > > I don't know ksh, so I am terribly familiar with what's > going on there, but it doesn't look > > terribly difficult. > > > > I still don't know if you need anything returned to the > user. If you don't and these programs > > don't take long to run, you could use the multiple argument > form of system.
no, nothing is returned to the user.. the script (all_blah.pl) will kick off a Diag process which the trster just tail -f the .out file > > > > system( $program, $client, $stagger, $start ); > > that would not be possible, the names of the program change from releas to release to indicate the release number. IE all_VALUTEST_D40_wValidate.scr > > If you need the return data, you could use backticks. You > state that you verify the input, I > > would just caution you that this is *very* dangerous. by verify I mean to check users input into the front-end piece, to ensure they enter a number for the clients etc.. > > > > I'm sure there are other ways to do this, but you're > heading into administrative territory and > > that's not my strong suit. Someone else on the list is > probably better prepared to answer this. > > > > Cheers, > > Curtis > > > > --- "Yacketta, Ronald" <[EMAIL PROTECTED]> wrote: > > > Date: Fri, 07 Dec 2001 18:18:54 -0500 > > > From: "Yacketta, Ronald" <[EMAIL PROTECTED]> > > > Subject: RE: Passing variables > > > To: [EMAIL PROTECTED] > > > > > > I am collecting information from the enduser (tester) to > run a System Load > > > test. The user will enter the # of clients to run, the > client # to start at, > > > the stagger time, sleep time, Engine server and the Diag > script sleep time. > > > The info inputted will be verified and one of 4 scripts > will be called. > > > > > > all_fastatart > > > all_sleepystart > > > mixed_faststart > > > mixed_sleepystart > > > > > > The all scripts have a single test within it that > requires the # clients, > > > client start number, stagger time and sleep time. The > mixed script has 7 > > > tests that require the same info as the all, BUT each > test will have its own > > > set of client #, client start # , stagger time and sleep time. > > > > > > here is an example of the old .ksh I am converting > > > > > > #!/usr/bin/ksh > > > > > > if [ $# != 2 ] > > > then > > > echo "You must supply a run # and Engine hostname on > the command line... > > > " > > > echo > > > echo "i.e. $0 1 wb0300ux137" > > > echo "Valid Engine servers are:" > > > echo "4500 NodeB (wb0300ux137)" > > > echo "3500 NodeB (mc0300ux219)" > > > echo > > > exit 255 > > > fi > > > > > > RunNumber=$1 > > > ENGHost=$2 > > > > > > set -x > > > cd /apps/VQXengine/trg/ltt/scripts > > > ClientDiag.pl $1 60 > > > sleep 120 > > > cd ../beta_scripts > > > nohup run_ACF2_VQ $ENGHost all_VALUTEST_wValidate_D40.scr > 1500 1 120 1 2>&1 > > > & > > > sleep 15 > > > nohup run_ACF2_VQ $ENGHost PActive_0299.scr 25 1501 200 175 2>&1 & > > > sleep 15 > > > nohup run_ACF2_VQ $ENGHost PActive_0005.scr 55 1526 200 80 2>&1 & > > > sleep 10 > > > nohup run_ACF2_VQ $ENGHost IMP1_1_143.scr 25 1581 175 160 2>&1 & > > > sleep 10 > > > nohup run_ACF2_VQ $ENGHost IMP1_5.scr 25 1606 45 150 2>&1 & > > > sleep 10 > > > nohup run_ACF2_VQ $ENGHost IMP1_14.scr 40 1631 75 150 2>&1 & > > > sleep 6 > > > nohup run_ACF2_VQ $ENGHost Valid01Unit_wTradeIn.scr 35 > 1671 250 100 2>&1 & > > > > > > set +x > > > > > > > > > in line above (run_ACF2_VQ $ENGHost > all_VALUTEST_wValidate_D40.scr 1500 1 > > > 120 1) > > > $ENGHOST needs to be supplied by the tester, as well as > the 4 numeric values > > > after > > > the test (all_VALUTEST_wValidate_D40.scr) > > > > > > these values are not static, they change from test to test... > > > > > > -Ron > > > > > > ===== > > Senior Programmer > > Onsite! Technology (http://www.onsitetech.com/) > > "Ovid" on http://www.perlmonks.org/ > > > > __________________________________________________ > > Do You Yahoo!? > > Send your FREE holiday greetings online! > > http://greetings.yahoo.com > > > > -- > > To unsubscribe, e-mail: [EMAIL PROTECTED] > > For additional commands, e-mail: [EMAIL PROTECTED] > > > > > ===== > Senior Programmer > Onsite! Technology (http://www.onsitetech.com/) > "Ovid" on http://www.perlmonks.org/ > > __________________________________________________ > Do You Yahoo!? > Send your FREE holiday greetings online! > http://greetings.yahoo.com > -- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]