Page 1 of 1

Logs from C++ library coming only sometimes.

Posted: Wed Aug 17, 2005 11:54 pm
by anu13
Hi All,
I am writing printf statements in a c++ library and it is coming on the director log during successful execution.

However if i raise a unix signal say "SIGKILL" for example to abort the datastage job after these printf statements, I am unable to see my printf logs on the director.

Hence I am not able to display debugging information to the end users.

Help would be very much appreciated.

Rgds Anu

Posted: Thu Aug 18, 2005 5:42 am
by Eric
Have you tried waiting a short while before killing the job?
If you kill the job to quick the messages won't have found there way to the director log before the kill signal throws away your error logging.

Posted: Fri Aug 19, 2005 3:11 am
by ray.wurlod
Check to see whether a file has been written into the &PH& directory. Or try resetting the job in Director, to see whether a "from previous run..." event picks up the output from your printf() calls.

Prefer SIGTERM to SIGKILL at all times. It allows a grace time for buffered I/O to complete and various other things to complete.