Trigger perl scripts remotely on windows [closed] - windows

Closed. This question needs to be more focused. It is not currently accepting answers.
Want to improve this question? Update the question so it focuses on one problem only by editing this post.
Closed 7 years ago.
Improve this question
I have two machines A and B. Machine B has perl installed and scripts are placed in a shared directory. Machine A doesn't have perl installed (I don't want to install perl on this machine). There is some automation running in Machine A and that automation wants to trigger perl scripts in Machine B by passing some parameters.
Is this possible? What is recommended?
Thanks

There's probably more possibilites, but from the top of my head:
Mark Russinovich's psexec (notes#ss64.com)
the Windows Management Instrumentation Commandline tool wmic (notes#ss64.com)
As long as the machine on which the perl scripts are to be executed has perl installed, it's not a problem if the caller machine doesn't.

Related

How can I run my bash program on Windows? [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 4 years ago.
Improve this question
Hye , where can I run my program in bash? I writed a code in bash and I want to check that it's really works , so how can I do it?
I tried to search online compilers in the internet , but my program creates folders (by mkdir for example) so and it's not allows me to see the folders.
Note: My computer's operating system is windows.
You can run bash on Windows by installing the Linux subsystem (Windows 10) or by installing Cygwin or by installing GIT for Windows (which includes bash).

how to run batch file on remote machines shared folder [closed]

Closed. This question needs details or clarity. It is not currently accepting answers.
Want to improve this question? Add details and clarify the problem by editing this post.
Closed 6 years ago.
Improve this question
I have 2 PC's on my LAN, PC1 and PC2.
PC2 has a Shared Folder with read & write access; \\PC2\Shared_Folder\
I have a Batch File on PC1:- C:\>batch.bat
I want to execute the batch file using Command Prompt from PC1 on remote PC2.
Note: Cannot Install any Software on any of the PC's and only windows file sharing is on between the PC's.
Thanks in Advance.
One of the common ways to do this is to use the PsExec tool from Windows Sysinternals:
PC1 Prompt> psexec \\PC2 \\PC1\Shared_Folder\Batch.cmd
Note: What this hides from you is it does install a program on PC2. It does so automatically, but it still requires sufficient access on the target machine to access \\PC2\ADMIN$

What is the language of choice for shell scripting under a generic Windows installation? [closed]

Closed. This question is opinion-based. It is not currently accepting answers.
Want to improve this question? Update the question so it can be answered with facts and citations by editing this post.
Closed 8 years ago.
Improve this question
What is the equivalent of the POSIX compliant sh shell language or bash extensions in the Windows world ?
What is the optimal choice when writing a script that is supposed to run on as many different versions of Windows as possible ?
I need a solution that is supposed to be already present/installed on the client side, so I tend to exclude the only scripting solution that I know of, Powershell, and I'm considering Windows XP as the oldest target.
I know you do not want to read this: If you need a solution to be present on the client side from XP to 8.1 try to do your scripts with Windows cmd.exe.

copying a windows program to another machine [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a program installed on windows 7 in my laptop. I wish to install the same program on windows 7 in my desktop. unfortunately, I don't have the source file with me anymore. How can I copy the entire program from one machine to another machine and make it run?
It depends on the program if that's possible or not.
You would have to know, which parts the installer copied to your computer and to which directories. Even then it is possible that the installer checked for prerequisites, found them on the laptop, but are missing on the desktop computer.
You can try to copy the files from the %ProgramFiles% directory, but it is poor luck if that works and you can't be sure that it works correctly. So your best option is to organise the installer package again.
see How to Copy a Program From One Computer to Another Without a Startup Disk.I hope it will work.

Can we run programs simultaneously in both the operating system of a single CPU? [closed]

Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 10 years ago.
Improve this question
I have a system with two operating systems - Windows 7 and Ubuntu. Now I want to run a program in both Ubuntu and Windows.
To explain better, I want to run the Windows program while I am working in Ubuntu. Is that possible?
You cannot normally run two operating systems at the same time, because both want to take over all the hardware.
There are basically two options:
use virtualization to run one operating system inside the other
run the "foreign" application using some kind of compatibility layer, such as Cygwin (for running Linux apps on Windows) or Wine (for running Windows apps on Linux)

Resources