Kai
Site Admin
Posts: 1272 Joined: Tue Apr 25, 2000 1:27 pm
Post
by Kai » Mon Oct 04, 2010 5:08 pm
Does it still fail with `Cannot write stdout' if you add this right after the <script language=vortex>:
<putmsg print off>
Any other errors in vortex.log?
barry.marcus
Posts: 288 Joined: Thu Nov 16, 2006 1:05 pm
Post
by barry.marcus » Mon Oct 04, 2010 7:51 pm
Yes, I still get the error even with the <putmsg print off> directive. No, there are no other errors in the log. Always just errors like this:
006 2010-10-04 18:48:38 populatelog: (5840) Can't write stdout: Bad file descriptor; exiting
However, the number in parens (in this case "5840") is always different.
mark
Site Admin
Posts: 5515 Joined: Tue Apr 25, 2000 6:56 pm
Post
by mark » Tue Oct 05, 2010 10:27 am
The number is the process id so it's expected to vary.
Try the simplest possible trigger and supply full paths.
set triggermode=1; create trigger project_insert_T after insert on project FOR EACH ROW SHELL 'c:\morph3\texis.exe -r c:\the\dir\test/main.txt'
And ensure there are no extraneous newlines or other whitespace in the script.
<script language=vortex><a name=main></a></script>
If that doesn't give an error try adding in the needed bits one at a time to find which is causing the problem.
barry.marcus
Posts: 288 Joined: Thu Nov 16, 2006 1:05 pm
Post
by barry.marcus » Fri Oct 08, 2010 3:13 pm
OK, I can't explain this, but...
Mark, I did what you suggested, starting from the simplest possible code, building up to where I needed the code to ultimately be. What's weird is that I never encountered the error! It works beautifully now! I know that I *MUST* have been doing *SOMETHING* wrong before, but for the life of me I cannot see what it was!?! It's probably staring me right in the face, but for now it's a mystery! But I'm leaving well enough alone and moving on!
Thank you all very much for your help!
John
Site Admin
Posts: 2597 Joined: Mon Apr 24, 2000 3:18 pm
Location: Cleveland, OH
Contact:
Post
by John » Fri Oct 08, 2010 6:03 pm
Most likely some additional whitespace that was trying to be output that was easy to overlook.
John Turnbull
Thunderstone Software