SoftTree Technologies SoftTree Technologies
Technical Support Forums
RegisterSearchFAQMemberlistUsergroupsLog in
isTaskRunning on remote pc causes crash ?

 
Reply to topic    SoftTree Technologies Forum Index » 24x7 Scheduler, Event Server, Automation Suite View previous topic
View next topic
isTaskRunning on remote pc causes crash ?
Author Message
Davy



Joined: 02 Oct 2003
Posts: 4

Post isTaskRunning on remote pc causes crash ? Reply with quote

Hello

I'm using isTaskRunning to check if a remote pc has
Access running (iSTaskRunning("MSACCESS.EXE", code_))

When I run it local it works fine (I also write an
errormessage to the scheduler log file if Access is running)
but when I try to run the job on a remote pc, the
scheduler crashes .. (and yes I do have admin rights,
I'm domain admin)

Thu Oct 02, 2003 5:31 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Re: isTaskRunning on remote pc causes crash ? Reply with quote

Do you mean the remote agent crash?
Can you post the complete script?

: Hello

: I'm using isTaskRunning to check if a remote pc has
: Access running (iSTaskRunning("MSACCESS.EXE", code_))

: When I run it local it works fine (I also write an
: errormessage to the scheduler log file if Access is running)
: but when I try to run the job on a remote pc, the
: scheduler crashes .. (and yes I do have admin rights,
: I'm domain admin)

Thu Oct 02, 2003 8:27 am View user's profile Send private message
Davy



Joined: 02 Oct 2003
Posts: 4

Post Re: isTaskRunning on remote pc causes crash ? Reply with quote

: Do you mean the remote agent crash?
: Can you post the complete script?

no the scheduler crashes .. version 3.4.13
as u can see in the code, it should show the user
a message if Access is open or if it is copying
the MIS (MIS = Access mdb)

dim code_, boolean
iSTaskRunning("MSACCESS.EXE", code_)

if (code_,message1, message2)
message1:
messageBox "Access is still open, cannot copy MIS"
LogAddMessageEx("ERROR",0,"copy MIS","!!!! copy MIS failed !")
exit
message2:
messageBox "copying MIS in progress .."
runandwait("g:\file24x7\COPYMIS24.BAT","",0,code_)
messageBox "copy complete"
exit

Thu Oct 02, 2003 9:25 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Re: isTaskRunning on remote pc causes crash ? Reply with quote

Add another message box before iSTaskRunning

Please note that the messages will appear on the agent.
If you do not get the first message you have a problem with scheduler/agent connection.

: no the scheduler crashes .. version 3.4.13
: as u can see in the code, it should show the user
: a message if Access is open or if it is copying
: the MIS (MIS = Access mdb)

: dim code_, boolean
: iSTaskRunning("MSACCESS.EXE", code_)

: if (code_,message1, message2)
: message1: messageBox "Access is still open, cannot copy MIS"
: LogAddMessageEx("ERROR",0,"copy MIS","!!!! copy MIS
: failed !")
: exit
: message2: messageBox "copying MIS in progress .."
: runandwait("g:\file24x7\COPYMIS24.BAT","",0,code_)
: messageBox "copy complete"
: exit

Thu Oct 02, 2003 9:42 am View user's profile Send private message
Davy



Joined: 02 Oct 2003
Posts: 4

Post Re: isTaskRunning on remote pc causes crash ? Reply with quote

: Add another message box before iSTaskRunning

: Please note that the messages will appear on the agent.
: If you do not get the first message you have a problem with scheduler/agent
: connection.

hm it does not show the message .. in fact, when I start
a simple job which only shows a message it doesnt work
either .. the scheduler says "connection to .." and "executing remote job .."
but then it hangs and nothing happens on the agent ?

Thu Oct 02, 2003 10:33 am View user's profile Send private message
Davy



Joined: 02 Oct 2003
Posts: 4

Post Re: isTaskRunning on remote pc causes crash ? Reply with quote

: hm it does not show the message .. in fact, when I start
: a simple job which only shows a message it doesnt work
: either .. the scheduler says "connection to .." and "executing
: remote job .."
: but then it hangs and nothing happens on the agent ?

Ok it seems to work just fine when I start the agent with
"24x7 /agent" instead of starting them as service
(like I did with all other pc's)
does that make sense to you ?

Thu Oct 02, 2003 11:21 am View user's profile Send private message
SysOp
Site Admin


Joined: 26 Nov 2006
Posts: 7966

Post Re: isTaskRunning on remote pc causes crash ? Reply with quote

Now it does make sence.

The job runs on the invisible services Desktop (a vertual Desktop that Windows creates for services)
So that you do not see the message box and cannot responde to it leaving the job in the "waiting for input" state.

: Ok it seems to work just fine when I start the agent with
: "24x7 /agent" instead of starting them as service
: (like I did with all other pc's)
: does that make sense to you ?

Thu Oct 02, 2003 12:18 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.