Skip to contentSkip to conversation

Where does the python print goes?

DISCUSSION Biao 2 participants 3 messages Dec 21, 2012 – Jan 8, 2013

lore
Share & tools
lore

Biao

author
#0 lore raw

Hi All,

I have a task in a dum.bb file, after running the task with -vDDD, i can not find where the "I am the python output" goes, it is not in the terminal, not in the log file. Where does the sys.__stdout__.write output to?

/*----code snap begins---*/
python do_dm2 () {
import sys
sys.__stdout__.write("I am the python output\n")
}
addtask dm2
/*----code snap ends---*/

Best Regards,
Biao

#1 lore raw
Quoted 9 lines · Biao

Hi All,

I have a task in a dum.bb file, after running the task with -vDDD, i can not find where the "I am the python output" goes, it is not in the terminal, not in the log file. Where does the sys.__stdout__.write output to?

Quoted 7 lines

/*----code snap begins---*/
python do_dm2 () {
import sys
sys.__stdout__.write("I am the python output\n")
}
addtask dm2
/*----code snap ends---*/

Logfile in ${T} ?

Cheers,

Richard

author
#2 lore raw
Quoted 18 lines · At 2013-01-08 05:39:03,"Richard Purdie" <[email protected]>…
Quoted 9 lines · Biao

Hi All,

I have a task in a dum.bb file, after running the task with -vDDD, i can not find where the "I am the python output" goes, it is not in the terminal, not in the log file. Where does the sys.__stdout__.write output to?

Quoted 7 lines

/*----code snap begins---*/
python do_dm2 () {
import sys
sys.__stdout__.write("I am the python output\n")
}
addtask dm2
/*----code snap ends---*/

Quoted 1 line

Logfile in ${T} ?

Thanks for your reply.
I tried to grep it in the whole tmp directory, it is not in any log file.

Quoted 6 lines

Cheers,

Richard