The VNC Manager - SmartCode Solutions Forum
Home       Members    Calendar    Who's On
Welcome Guest ( Login | Register )
        



Execute remote command - Cancel doesn't work Expand / Collapse
Author
Message
Posted 6/26/2009 12:25:14 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 12/4/2009 2:16:22 PM
Posts: 12, Visits: 35
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
Posted 6/30/2009 6:33:22 AM


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Administrators
Last Login: Yesterday @ 7:10:09 PM
Posts: 1,163, Visits: 1,909
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
Posted 6/30/2009 11:58:17 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 12/4/2009 2:16:22 PM
Posts: 12, Visits: 35
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
Posted 6/30/2009 8:58:43 PM


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Administrators
Last Login: Yesterday @ 7:10:09 PM
Posts: 1,163, Visits: 1,909
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.



Kindest Regards,
SmartCode Solutions Support
Post #2573
Posted 7/1/2009 9:59:21 AM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 12/4/2009 2:16:22 PM
Posts: 12, Visits: 35
Whoops, disregard cancel not working with shutdown/restart, that was something else entirely.
Post #2574
Posted 7/6/2009 1:58:22 PM
Junior Member

Junior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior MemberJunior Member

Group: Forum Members
Last Login: 12/4/2009 2:16:22 PM
Posts: 12, Visits: 35
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
Posted 7/6/2009 6:41:42 PM


Supreme Being

Supreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme BeingSupreme Being

Group: Administrators
Last Login: Yesterday @ 7:10:09 PM
Posts: 1,163, Visits: 1,909
upps...sorry about this silly bug. Fixed in the 5.0.4.3



Kindest Regards,
SmartCode Solutions Support
Post #2581
« Prev Topic | Next Topic »


Reading This Topic Expand / Collapse
Active Users: 1 (1 guest, 0 members, 0 anonymous members)
No members currently viewing this topic.
Forum Moderators: Support (s-code), Alex (s-code)

Permissions Expand / Collapse

All times are GMT -8:00, Time now is 3:59am

Powered by InstantForum.NET v4.1.4 © 2010
Execution: 0.188. 7 queries. Compression Disabled.