Here's another thought - use a COM object to run the batch file. Something like
this should work:
<@ASSIGN shell <@CREATEOBJECT type=COM objectid=wscript.shell>>
<@CALLMETHOD shell Run('cmd /c c:\path\to\script.bat',0,0)>
Although it won't return the stdout to TeraScript (you'll see the exit code) it
should run the script.
I don't know if this would solve the contention problem, but the COM mechanism
is separate from the command line.
Robert
-----Original Message-----
From: Andrej Popovic [mailto:[email protected]]
Sent: Thursday, November 06, 2014 10:40 AM
To: [email protected]
Subject: RE: TeraScript-Talk: Could not execute fork error
I thought I'd chip in with my suggestion...
Convert your external actions to file writing actions.
Use the files you write out as triggers - have a scheduled BAT file that looks
for these files in a designated directory, and get that scheduled BAT file to
set off the BAT files you are currently calling direct from Witango.
Clunky, and would have an element of time delay, but should work.
Cheers
Andrej
-----Original Message-----
From: Robert Shubert [mailto:[email protected]]
Sent: 06 November 2014 14:28
To: [email protected]
Subject: RE: TeraScript-Talk: Could not execute fork error
You can't. Try to find another way to accomplish the task.
-----Original Message-----
From: [email protected]
[mailto:[email protected]]
Sent: Thursday, November 06, 2014 2:33 AM
To: [email protected]
Subject: RE: TeraScript-Talk: Could not execute fork error
Thanks Robert for clarifying this, but without using external action how can we
call external bat files from witango ?
Regards
Prabakaran
-----Original Message-----
From: Robert Shubert [mailto:[email protected]]
Sent: Thursday, 6 November 2014 2:15 AM
To: [email protected]
Subject: RE: TeraScript-Talk: Could not execute fork error
Simply put, yes. This is an error when an External Action is used. They are
poorly written in Witango and you would be good to remove those actions. In my
opinion they are a cause for a majority of stability issues. They are also very
difficult to debug. What's happened is that the last time one was called, it
didn't return. And there's no timeout, so the thread is locked. I believe the
root issue is that the External Action code isn't threadsafe. If you could
serialize access to the External Action, it might stabilize the server. I've
never tried this, as I've opted to simply remove them.
Robert
-----Original Message-----
From: [email protected]
[mailto:[email protected]]
Sent: Wednesday, November 05, 2014 6:37 AM
To: [email protected]
Subject: TeraScript-Talk: Could not execute fork error
Hello folks,
Can the error "Could not execute fork" lead the Witango app server to hung
state? Is there a way to read into the error in detail so I can look at fixing
the call made to the external actions?
Thanks & Regards
Prabakaran
________________________________
This message is for the designated recipient only and may contain privileged,
proprietary, or otherwise confidential information. If you have received it in
error, please notify the sender immediately and delete the original. Any other
use of the e-mail by you is prohibited. Where allowed by local law, electronic
communications with Accenture and its affiliates, including e-mail and instant
messaging (including content), may be scanned by our systems for the purposes
of information security and assessment of internal compliance with Accenture
policy.
______________________________________________________________________________________
www.accenture.com
----------------------------------------
To unsubscribe from this list, please send an email to [email protected]
with "unsubscribe terascript-talk" in the body.
----------------------------------------
To unsubscribe from this list, please send an email to [email protected]
with "unsubscribe terascript-talk" in the body.
----------------------------------------
To unsubscribe from this list, please send an email to [email protected]
with "unsubscribe terascript-talk" in the body.
----------------------------------------
To unsubscribe from this list, please send an email to [email protected]
with "unsubscribe terascript-talk" in the body.
----------------------------------------
To unsubscribe from this list, please send an email to [email protected]
with "unsubscribe terascript-talk" in the body.
----------------------------------------
To unsubscribe from this list, please send an email to [email protected]
with "unsubscribe terascript-talk" in the body.