If a background command is issued inside a for loop, the whole loop is shown as 
command.
Versions tested:
  version         sh (AT&T Research) 93u+ 2012-08-01
  version         sh (AT&T Research) 93v- 2013-07-24

cpl0481_home> for host in cpl0482 cpl0483 cpl0484; do;echo 
$host;ibv_rc_pingpong </dev/null& rsh $host ibv_rc_pingpong cpl0481;done
cpl0482
[1]     8387
  local address:  LID 0x0047, QPN 0x7e0049, PSN 0x724d56, GID ::
  remote address: LID 0x0039, QPN 0x280049, PSN 0x7a750e, GID ::
8192000 bytes in 0.01 seconds = 7495.83 Mbit/sec
1000 iters in 0.01 seconds = 8.74 usec/iter
  local address:  LID 0x0039, QPN 0x280049, PSN 0x7a750e, GID ::
  remote address: LID 0x0047, QPN 0x7e0049, PSN 0x724d56, GID ::
8192000 bytes in 0.01 seconds = 7572.04 Mbit/sec
1000 iters in 0.01 seconds = 8.65 usec/iter
cpl0483
[2]     8390
  local address:  LID 0x0047, QPN 0x000049, PSN 0xff6f3e, GID ::
  remote address: LID 0x003b, QPN 0x180049, PSN 0x67c8b6, GID ::
8192000 bytes in 0.01 seconds = 6782.86 Mbit/sec
1000 iters in 0.01 seconds = 9.66 usec/iter
  local address:  LID 0x003b, QPN 0x180049, PSN 0x67c8b6, GID ::
  remote address: LID 0x0047, QPN 0x000049, PSN 0xff6f3e, GID ::
8192000 bytes in 0.01 seconds = 6849.50 Mbit/sec
1000 iters in 0.01 seconds = 9.57 usec/iter
cpl0484
[3]     8393
  local address:  LID 0x0047, QPN 0x020049, PSN 0x8c9126, GID ::
  remote address: LID 0x002a, QPN 0x180049, PSN 0xd03b4e, GID ::
8192000 bytes in 0.01 seconds = 8086.87 Mbit/sec
1000 iters in 0.01 seconds = 8.10 usec/iter
  local address:  LID 0x002a, QPN 0x180049, PSN 0xd03b4e, GID ::
  remote address: LID 0x0047, QPN 0x020049, PSN 0x8c9126, GID ::
8192000 bytes in 0.01 seconds = 8057.04 Mbit/sec
1000 iters in 0.01 seconds = 8.13 usec/iter
[3] +  Done                    for host in cpl0482 cpl0483 cpl0484; do;echo 
$host;ibv_rc_pingpong </dev/null& rsh $host ibv_rc_pingpong cpl0481;done
[2] -  Done                    for host in cpl0482 cpl0483 cpl0484; do;echo 
$host;ibv_rc_pingpong </dev/null& rsh $host ibv_rc_pingpong cpl0481;done
[1]    Done                    for host in cpl0482 cpl0483 cpl0484; do;echo 
$host;ibv_rc_pingpong </dev/null& rsh $host ibv_rc_pingpong cpl0481;done

bash and pdksh show messages like
[1]   Done                 ibv_rc_pingpong < /dev/null

Best Regards
Axel Philipp

--
MTU Aero Engines AG
Geschaeftsfuehrung/Board of Management: Egon W. Behle, Vorsitzender/CEO; Dr. 
Rainer Martens, Michael Schreyögg, Dr. Stefan Weingartner, Reiner Winkler
Vorsitzender des Aufsichtsrats/Chairman of the Supervisory Board: Klaus 
Eberhardt
Sitz der Gesellschaft/Registered Office: Muenchen
Handelsregister/Commercial Register: Muenchen HRB 157206

Diese E-Mail sowie ihre Anhaenge enthalten MTU-eigene vertrauliche oder 
rechtlich geschuetzte Informationen.
Wenn Sie nicht der beabsichtigte Empfaenger sind, informieren Sie bitte den 
Absender und loeschen Sie diese
E-Mail sowie die Anhaenge. Das unbefugte Speichern, Kopieren oder Weiterleiten 
ist nicht gestattet.

This e-mail and any attached documents are proprietary to MTU, confidential or 
protected by law.
If you are not the intended recipient, please advise the sender and delete this 
message and its attachments.
Any unauthorised storing, copying or distribution is prohibited.
_______________________________________________
ast-users mailing list
[email protected]
http://lists.research.att.com/mailman/listinfo/ast-users

Reply via email to