[gambit-list] How to get back stdout and stderr?
    Oleg Parashchenko 
    olpa at uucode.com
       
    Fri Oct  7 08:26:59 EDT 2011
    
    
  
Hello,
how to tell Gambit to use the standard output for "pp" and the standard
error for "raise"?
$ cat test.scm
(display "line1\n")
(pp "line2")
(raise "error")
$ gsi test.scm >x1 2>x2
"line2"
*** ERROR IN "test.scm"@3.1 -- This object was raised: "error"
$
The expected behaviour is that nothing is output to the console, the file
"x1" contains "line1" and "line2", and the file "x2" contains the error
message.
Thanks!
-- 
Oleg Parashchenko  olpa@ http://uucode.com/
http://uucode.com/blog/  XML, TeX, Python, Mac, Chess
    
    
More information about the Gambit-list
mailing list