ASPN ActiveState Programmer Network
ActiveState
/ Home / Perl / PHP / Python / Tcl / XSLT /
/ Safari / My ASPN /
Cookbooks | Documentation | Mailing Lists | Modules | News Feeds | Products | User Groups


Recent Messages
List Archives
About the List
List Leaders
Subscription Options

View Subscriptions
Help

View by Topic
ActiveState
.NET Framework
Open Source
Perl
PHP
Python
Tcl
Web Services
XML & XSLT

View by Category
Database
General
SOAP
System Administration
Tools
User Interfaces
Web Programming
XML Programming


MyASPN >> Mail Archive >> activetcl
activetcl
Re: [Activetcl] expect / spawn / stderr
by Larry W. Virden other posts by this author
Nov 14 2007 4:14AM messages near this date
view in the new Beta List Site
[Activetcl] expect / spawn / stderr | [Activetcl] XML and dom - please help with some tips
________________________________

From: Tillmann Basien


 >   I spawn a command which send to stdout and stderr. But I only can
expect on the stdout strings.
 >   How can I also expect on the stderr strings?

 
How urgent is it that you keep stdout and stderr separate? My first
thought - what I call the "cheating solution" is to call
a script that starts your command. Within that script, you would start
your command as:
 
#! /bin/ksh
 
  mycommand 2> &1
 
(or use the syntax of whatever the batch/shell command language you have
available). This says "start mycommand, and write its stderr out to the
same file descriptor as its stdout".
 
 
 -- 

<URL: http://wiki.tcl.tk/ > 

Even if explicitly stated to the contrary, nothing in this posting

should be construed as representing my employer's opinions.

<URL: mailto:lvirden@[...].com >  <URL: http://www.purl.org/NET/lvirden/
> 

 
Thread:
Tillmann Basien
Larry W. Virden

Privacy Policy | Email Opt-out | Feedback | Syndication
© ActiveState Software Inc. All rights reserved