[ET Trac] [Einstein Toolkit] #1396: Display prompts of executed commands

Einstein Toolkit trac-noreply at einsteintoolkit.org
Fri Jun 27 10:32:10 CDT 2014


#1396: Display prompts of executed commands
----------------------------+-----------------------------------------------
  Reporter:  rhaas          |       Owner:  eric9              
      Type:  enhancement    |      Status:  review             
  Priority:  optional       |   Milestone:                     
 Component:  GetComponents  |     Version:  development version
Resolution:                 |    Keywords:                     
----------------------------+-----------------------------------------------

Comment (by rhaas):

 I would like to apply the patch to the development versin to see what
 happens. This *can* be achieved with a suitably constructed tee line if we
 have access to bash and are willing to use a temporary file to capture
 output. The required line look something like this (this separates stderr
 and stdout into ifferent file which we don't really need but which the
 script from which I lifted the code does):
 {{{
 exec 3>&1
 { exec 4>&1 ; mpirun -n $ncpus $new_executable $cactus_opts -logdir
 $outdir --redirect=oe $parfile 2>&4 4>&- 3>&- | tee $outdir/stdout >&3 ; }
 | tee $outdir/stderr
 }}}
 where all the complication comes from wanting to reproduce the commands
 stderr stream on stderr but also to capture it.

-- 
Ticket URL: <https://trac.einsteintoolkit.org/ticket/1396#comment:8>
Einstein Toolkit <http://einsteintoolkit.org>
The Einstein Toolkit


More information about the Trac mailing list