none
fail to print into STDOUT when a program is run by a service on Server 2008 RRS feed

  • Question

  • I redirect STDOUT to XXX.log file in my program,and on windows server 2008, if my program is run in command line but NOT by a service, log will be printed in XXX.log file correctly.While, if the program is run by a service, log could not be printed into XXX.log file(nothing is printed into the file).
    Both on windows 2000 and windows xp, the log file could be printed correctly.

    It seems that it fails to print into STDOUT when a program is run by a service on Server 2008.

    So, first of all, does Server 2008  have a STDOUT defined when a program is run by a service ?
    Is this a bug of windows server 2008? If isn't , how can I make the XXX.log printed correctly on server 2008?

    Besides, my program is compiled in windows XP with visual studio 6.0.

    Can anybody help me in this problem ?
    Any suggestion/ideas/comment is appreciated.

    Thanks
    Peter
    Monday, October 6, 2008 4:58 PM

Answers