Sorry, Geetika. It looks like I lost this thread in the mix.

Have you tried some Perl like this:

# concurrent.pl

# Check start time.

for my $n (1..$DO_TRIES) {
  print qq{Doing # [$n] PID [$$]\n};
  my $pid = fork();

  if ($pid == 0) {
    print qq{Child [$$] running command.\n};
    exec(qq{echo '$query' | $MYSQL $DATABASE > /dev/null});
  }
}

# Check end time
# Do some math and make a report.


---
Rodney Broom
President, R.Broom Consulting
http://www.rbroom.com/

sql



---------------------------------------------------------------------
Before posting, please check:
   http://www.mysql.com/manual.php   (the manual)
   http://lists.mysql.com/           (the list archive)

To request this thread, e-mail <[EMAIL PROTECTED]>
To unsubscribe, e-mail <[EMAIL PROTECTED]>
Trouble unsubscribing? Try: http://lists.mysql.com/php/unsubscribe.php

Reply via email to