How write to stdout and stderr

Become a member of the CGSociety

Connect, Share, and Learn with our Large Growing CG Art Community. It's Free!

THREAD CLOSED
 
Thread Tools Search this Thread Display Modes
Old 02 February 2013   #1
How write to stdout and stderr

I found only dosCommand("echo hello")
 
Old 02 February 2013   #2
mxs or sdk ?
 
Old 02 February 2013   #3
maxscript, of course
 
Old 02 February 2013   #4
Originally Posted by kryakin: maxscript, of course

explain what you want to do.
 
Old 02 February 2013   #5
Python application runs various software (max, maya etc) with scripts and catches stdin и stdout. It collects information and errors (vray errors, 3dmax version, plugins list, texture list, scene information). I know that 3ds max can be run in server mode (using a named pipe), but I didn't find documentation, so I use a common solution for all applications at once.
 
Old 02 February 2013   #6
does it mean that you want to write some data from max to by something else (Python application for example) opened process std output? or you only want to write into the command prompt?
 
Old 02 February 2013   #7
What do you mean by "command prompt" ": windows console, max console, something else?
I want something like that:
"3dsmax.exe" -mxs "dosCommand(\"echo hello\")" 1>stdout.log 2>stderr.log
but without dosCommand... maybe
 
Old 02 February 2013   #8
Originally Posted by kryakin: What do you mean by "command prompt" ": windows console, max console, something else?
I want something like that:
"3dsmax.exe" -mxs "dosCommand(\"echo hello\")" 1>stdout.log 2>stderr.log
but without dosCommand... maybe

what process you want use? "cmd" or anything else? if you are ready to use dosCommand we talks about "cmd" process.
 
Old 02 February 2013   #9
Give this a try, works for me:
http://forums.cgsociety.org/showthread.php?t=985473
 
Old 02 February 2013   #10
Originally Posted by Norman3D: Give this a try, works for me:
http://forums.cgsociety.org/showthread.php?t=985473

that's why i want to know what exactly needed.
 
Old 02 February 2013   #11
Thread automatically closed

This thread has been automatically closed as it remained inactive for 12 months. If you wish to continue the discussion, please create a new thread in the appropriate forum.
__________________
CGTalk Policy/Legalities
Note that as CGTalk Members, you agree to the terms and conditions of using this website.
 
Thread Closed share thread



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
CGSociety
Society of Digital Artists
www.cgsociety.org

Powered by vBulletin
Copyright Š2000 - 2006,
Jelsoft Enterprises Ltd.
Minimize Ads
Forum Jump
Miscellaneous

All times are GMT. The time now is 07:41 PM.


Powered by vBulletin
Copyright ©2000 - 2017, Jelsoft Enterprises Ltd.