SmartCode Solutions Web Forum




Execute remote command - Cancel doesn't work

Expand / Collapse
Author Message
 Posted Friday, June 26, 2009
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: Monday, June 21, 2010
Posts: 16, Visits: 41
Hello,
I noticed that the cancel button doesn't do anything once you start remotely executing a task. Even if the "in operation" comment hasn't reached a given computer yet it still chugs through to the end.
-Greg
Post #2551
Add to Twitter Add to Facebook
 Posted Tuesday, June 30, 2009
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Administrators
Last Login: 2 days ago @ 4:49 PM
Posts: 1,248, Visits: 2,125
Hi Gred,
the Cancel button not canceling remote command is not exactly a bug but more like a design flaw.

Let me explain. When the VNC Manager executes a remote command this done in stages. For example:

Target Computer 1
create a local copy of .vbs script
   The Cancel button will work here
Open admin$ share on a remote computer
   The Cancel button will work here
Copy .vbs script.
   The Cancel button will work here
Launch remote command (The Cancel button has no effect)
(The Cancel button has no effect)
Target Computer 2
....

So the Cancel button can cancel the execution chain when the VNC Manager has finished one atomic operation and about to start another.
But while remote command being executed the Cancel button has no effect. The reason for such behavior is that we cannot cancel the actually remote command execution gracefully, the only way to cancel it is till kill the remote process (and even this may not be possible).

So here is a dilemma: upon Cancel button click what shall we do....close the progress window and let a remote command continue to execute on it's own. Or attempt to kill it if it's possible.

Unfortunately any of these approaches have their drawback and I don't see a cleat winner.

If you have any better ideas we will be glad to hear them.



Kindest Regards,
SmartCode Solutions Support

Post #2569
Add to Twitter Add to Facebook
 Posted Tuesday, June 30, 2009
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: Monday, June 21, 2010
Posts: 16, Visits: 41
I think my issue is a bit different than you're describing. I understand that if you push cancel, and the process is already in operation it would have to perform a task kill in the middle of the process, I don't think that would be a good move. My issue with the cancel button is that if I execute a remote task on 20 machines at once and realize after the first 5 have failed that the task being performed has a problem, when I push the cancel button it still runs the task on the other 15 machines. Using your example of the way the remote execute task is performed:

Target Computer 1
create a local copy of .vbs script
The Cancel button will work here
Open admin$ share on a remote computer
The Cancel button will work here
Copy .vbs script.
The Cancel button will work here
Launch remote command (The Cancel button has no effect)
(The Cancel button has no effect)
Target Computer 2
....

Shouldn't we be able to cancel the task before it reaches Target Computer 2 in this case; or at least if the remote execute is set for 5 threads, it should cancel for the 6th computer? I noticed the same cancellation issue on Shutdown/Restart remote computers. Am I missing something else about this process? Thanks for your quick responses to all my questions :)

Greg
Post #2572
Add to Twitter Add to Facebook
 Posted Tuesday, June 30, 2009
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Administrators
Last Login: 2 days ago @ 4:49 PM
Posts: 1,248, Visits: 2,125
Greg,
apparently you are right, the Cancel button doesn't work. It's going to be fixed in the 5.0.5.0.

I noticed the same cancellation issue on Shutdown/Restart remote computers.

Cancel funtionally in the Shutdown/Restart seems to work just fine. I cannot reproduce the problem. :doze:




Kindest Regards,
SmartCode Solutions Support
Post #2573
Add to Twitter Add to Facebook
 Posted Wednesday, July 01, 2009
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: Monday, June 21, 2010
Posts: 16, Visits: 41
Whoops, disregard cancel not working with shutdown/restart, that was something else entirely. :D
Post #2574
Add to Twitter Add to Facebook
 Posted Monday, July 06, 2009
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: Monday, June 21, 2010
Posts: 16, Visits: 41
Great work, now cancel will stop unprocessed remote execution of tasks. There is a very minor bug with that system now, in that if you let all the remote commands run through, the cancel button changes into a close button which can be clicked, but it doesn't close the window. If you cancel and then use the close button it works, but not if all the remote tasks have processed. The window can be closed with the X in the upper right corner at that point so it isn't a problem for me. Thanks for tackling that :)
-Greg
Post #2580
Add to Twitter Add to Facebook
 Posted Monday, July 06, 2009
Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Administrators
Last Login: 2 days ago @ 4:49 PM
Posts: 1,248, Visits: 2,125
upps...sorry about this silly bug. Fixed in the 5.0.4.3 ;)



Kindest Regards,
SmartCode Solutions Support
Post #2581
Add to Twitter Add to Facebook


Similar Topics

Expand / Collapse

Reading This Topic

Expand / Collapse