Automated IDAPython scripts printing to stdout?

808 views
Skip to first unread message

Hans L

unread,
Dec 9, 2011, 2:22:30 PM12/9/11
to idapython
Hello, I am invoking IDA 6.1 from an external python script like so on
Windows 7:
subprocess.Popen(["C:\Program Files\IDA\idaw.exe", "-A", "-Cg", "-S\"%s
\" %s" % (scriptfile, idbpath)], stdout=out, env=environ)

The idea is to have this script iterate over all my IDBs and run my
"scriptfile" on each of them, where any print statements compiled in
my "out" file.

However, when I do this. The only thing that is printed to my output
file is this:
"Thank you for using IDA. Have a nice day!"

I thought that maybe the -A or -S would affect make the script stdout
the same as the process stdout. Is there a way to make IDA do this,
and also to disable that thank you message?

elias

unread,
Dec 9, 2011, 6:16:21 PM12/9/11
to idapython
Hi,

Would that http://www.hexblog.com/?p=128 be helpful?

--
Elias

Reply all
Reply to author
Forward
0 new messages