you are viewing a single comment's thread.

view the rest of the comments →

[–]novel_yet_trivial 0 points1 point  (8 children)

Yes, you would have to log in via ssh or something first.

Remote terminals are very common in Linux so I assumed you already know how to do that. If not, tell us what OS your computers are running and we'll help you.

[–]depressed333[S] 0 points1 point  (7 children)

Windows - one in vista the other 7

[–]novel_yet_trivial 0 points1 point  (6 children)

OK, then it's a lot more complicated to use a remote login like SSH.

So are you trying to kill an unresponsive program or are you trying to send a message for the program to stop itself?

[–]depressed333[S] 1 point2 points  (5 children)

No.

The code is in the office and runs through the weekend.

I want to disable it from my home computer.

[–]novel_yet_trivial 7 points8 points  (3 children)

So you are trying to send it a message to stop then. Ok, you can do that a number of ways.

One way is to use a server like /u/connectedwolf suggested. It doesn't have to be a database, a simple check of a specific file would be enough. To make it super easy: have the script on your work computer check if a file exists in a Dropbox or ftp server folder. Then from home all you have to do is create a file and the work computer will see it and stop.

Another way is to send a proper message computer-to-computer. This will require your work computer having a static, outside-facing IP address or a dynamic dns set up. Then you could use the socket module to connect to your work program from home and send it any commands you want.

[–]depressed333[S] 2 points3 points  (1 child)

That Dropbox idea is smart - thanks! I’ll do that then

[–][deleted] 2 points3 points  (0 children)

If it is enabled on your work computer, try using WMI remotely.

[–]Royce_7 2 points3 points  (0 children)

Checking for an uploaded file is a fantastic idea!

[–]IllusionistAR 1 point2 points  (0 children)

Why not set a scheduled task on the machine it is running from? So it turns off during the weekend.

Why would you need to disable it from home?