I do have a (server) Windows machine running a Java app and a DB. The Java app has an UI and it is wrapped in an .exe. Now I share the .exe's folder with client machines. From such client machines I click the .exe, where does the program run? If it is running on the remote machine how can it be that I see the UI on my machine? What's happen when many client users click on the .exe contemporarly?
ok, I think it gets executed on the client/local machine (local copy).
Related
Is it possible to use AutoIt mouse movements in a remote, cloud-based Windows server?
It depends on what you really mean.
If you mean you want a compiled script to run on a remote server even when you're not logged in, you can do that. You just need to write the script and test it from the server, and then compile it to a .exe file, and then set up a Windows scheduled task on the server to run that .exe file whenever you need it to run.
If you mean that you want to run a script from your local machine that does stuff on the server, you can't do that, unless you tell your script to include the steps of logging into the server each time. AutoIt is a GUI automation tool; it can't remotely access another computer on its own, unless you tell it to do so via the UI you have access to on your local machine (or rather, the machine where the .exe script is run).
I'm trying to run a SikuliX Script 24/7 on a VPS but I do not want to leave my computer on all the time while it runs. I know sikuli requires that you have a monitor, so I am not sure how I can have it run while my VPS isn't even open on my computer.
If your VPS is running Linux you could use a tool such as Xpra, it allows for an X application to be run even when the client disconnects. It can also be used with a nested X server like Xephyr to run a full remote desktop that persists disconnects.
On Windows Server this this superuser page details how to allow a Windows Server RDP session to persist even after the client has disconnected.
I've copypasted a application out to several machines on our network here at work, and the (god damn stupid :-)) users are complaining that they can't find it due to the lack of a desktop icon.
Is there a way I can remotely add a desktop icon for a application that is copypasted in to the file directory of the remote machine?
I am using a RDC Connection from my mac to connect to an application (on windows box) in client network. Is that possible to write a script which does the following:
Open ur RDC. (i am using CoRD for this where my VM credentials are saved in .rdp files.
Login to VM with valid credentials from your .rdp file.
Open your app on that VM (for ex: IE explorer)
Following code in my shell script will connect me to my VM.(First two steps are working)
open rdp://[username[:password]#]hostname
How should I automate third step?
Is there any other way than shell script?
If you install Jenkins on your Mac, then install the Jenkins slave agent on the Windows machine, you can remotely run any command you like on the Windows box via the Jenkins web UI, and get back the results as well. In that scenario there's no need to use RDC at all.
For some more background, see: https://wiki.jenkins-ci.org/display/JENKINS/Distributed+builds
This might be a simplistic answer, but AutoHotKey is something that will automate your 3rd step. Its free and pretty easy to script. You can have this in your start up routine for your VM, so when you log in, you can have this kick off your job.
I have used it before for testing some Java Swing components on Windows and its been pretty handy (Windows was running on a Virtualbox VM on my Mac).
Currently, I want a remote machine (Amazon EC2 instance) to run a batch file when the machine starts up, and the batch file will close the machine after finishing the tasks.
I tried to put the shortcut of batch file to the startup folder. However, it will be only ran when I use Remote Control Connection to Log in that machine.
So, any other way to solve this problem???
NOTE: I don't want to log in to that machine since there might be 10 remote machines running at the same time.
Any idea or thought is appreciated. Thanks a lot.
This looks a bit like the question Running Batch File in background when windows boots up, my answer there:
You can use autoexnt for this. It was original designed for windows NT, but is still working in newer versions of windows.
You have to download the Windows 2003 Resource Kit to get it.
Windows XP (I believe Vista and 7 its the same as well, not sure about NT/2000)
Run gpedit.msc
Local Computer Policy -> Computer Configuration -> Windows Settings -> Scripts (Startup/Shutdown)
Open Startup. Click Add... Script Name: is where you input or Browse the location of your batch script to run. Script Parameters you can leave blank if you have no additional parameters you wish to pass w/it.