SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
Running a script

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
Running a script
Author Message
TJ



Joined: 21 Jun 2005
Posts: 35

Post Running a script Reply with quote

I am having trouble running a perl script:

Basically I am trying to run a TCL script using Wish in my perl script.
When I run the script from the command prompt I have no issues while I try to run the same from the scheduler
It would just open the Wish Console and not run the Tcl Script..what could be going on?

To debug I tried to run the Tcl script directly from the scheduler using the run programs option:
I specified the directory where the wish.exe exists in the StartIn
Then gave "wish83 TCLScript.tcl".

Again this works from the windows cmd and not the scheduler...whats going on? Please help ASAP.

BTW thanks for the new version of the scheduler, it now generates status reports!

Fri Jun 30, 2006 1:24 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7970

Post Re: Running a script Reply with quote

I think you chave several chained processes here starting each other. The scheduler aborts the job as soon as it gets control back fro mthe operation system

Try running it as "cmd /C wish83 TCLScript.tcl"
Also ensure that wish83 is in the system search path and TCLScript.tcl is in the scheduler directory (current directory). If not, try specifying full file path for both wish83 and tcl script.

: I am having trouble running a perl script: Basically I am trying to run a TCL
: script using Wish in my perl script.
: When I run the script from the command prompt I have no issues while I try to
: run the same from the scheduler
: It would just open the Wish Console and not run the Tcl Script..what could be
: going on?

: To debug I tried to run the Tcl script directly from the scheduler using the
: run programs option: I specified the directory where the wish.exe exists
: in the StartIn
: Then gave "wish83 TCLScript.tcl".

: Again this works from the windows cmd and not the scheduler...whats going on?
: Please help ASAP.

: BTW thanks for the new version of the scheduler, it now generates status
: reports!

Fri Jun 30, 2006 2:47 pm View user's profile Send private message
TJ



Joined: 21 Jun 2005
Posts: 35

Post Re: Running a script Reply with quote

: I think you chave several chained processes here starting each other. The
: scheduler aborts the job as soon as it gets control back fro mthe
: operation system

: Try running it as "cmd /C wish83 TCLScript.tcl"
: Also ensure that wish83 is in the system search path and TCLScript.tcl is in
: the scheduler directory (current directory). If not, try specifying full
: file path for both wish83 and tcl script.

Yes I do have a chain of processes. cmd /C doesn't help...also I specified the full path for wish.
Alsohow do I add "wish83 is in the system search path ". Please help.

Fri Jun 30, 2006 3:07 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7970

Post Re: Running a script Reply with quote

If you can start it from the scheduler directory without specifying full path then it is already in the system search path.
If you need to change the path modify PATH environment variable via My Computer properties. All running processes must be retarted in order to see the new value.

Try scheduling cmd /C wish83 TCLScript.tcl > tcl.log and after run check what you get in tcl.log file.

: Yes I do have a chain of processes. cmd /C doesn't help...also I specified
: the full path for wish.
: Alsohow do I add "wish83 is in the system search path ". Please
: help.

Fri Jun 30, 2006 3:22 pm View user's profile Send private message
TJ



Joined: 21 Jun 2005
Posts: 35

Post Re: Running a script Reply with quote

: If you can start it from the scheduler directory without specifying full path
: then it is already in the system search path.
: If you need to change the path modify PATH environment variable via My
: Computer properties. All running processes must be retarted in order to
: see the new value.

: Try scheduling cmd /C wish83 TCLScript.tcl > tcl.log and after run check
: what you get in tcl.log file.

Apparantly the script ran with cmd \C as that is what shows up in the tcl.log.

Now why is it then that it opens a empty wish console? While when directly run from the cmd the wish console comes up and shows the script run?

Fri Jun 30, 2006 3:33 pm View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7970

Post Re: Running a script Reply with quote

If file location inot a problem then apparantly "wish" console requires something (Window focus, perhaps) that it doesn't get when the process is started in background mode.

When you test it in DOS, do you run the console command from the scheduler's directory or from some other location?

: Apparantly the script ran with cmd \C as that is what shows up in the
: tcl.log.

: Now why is it then that it opens a empty wish console? While when directly
: run from the cmd the wish console comes up and shows the script run?

Fri Jun 30, 2006 4:06 pm View user's profile Send private message
Display posts from previous:    
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite All times are GMT - 4 Hours
Page 1 of 1

 
Jump to: 
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum


 

 

Powered by phpBB © 2001, 2005 phpBB Group
Design by Freestyle XL / Flowers Online.