Questions tagged [remote-execution]

105 questions
3
votes
2 answers

Expand string Variable stored via Single Quote in Powershell

I have a scenario where I need to construct a powershell path as $RemotePath = '$($env:USERPROFILE)\Desktop\Shell.lnk'. This variable gets passed to a remote machine where it needs to be executed. The remote machine receives this as a string…
Rohit Mitra
  • 162
  • 4
  • 13
3
votes
2 answers

Execute a selenium test case from another python file

I am trying to execute a selenium test case from a python file. I know that it can be done using subprocess module of python - but I want to explore the possibility of calling the testcase's functions instead. This is my…
user83969
  • 516
  • 2
  • 7
  • 10
3
votes
2 answers

BizTalk Configuration.exe remote execution error

I'm writing a script to automate the installation of BizTalk Server and then apply the configurations through the BizTalk "configuration.exe" utility. When I run the configuration.exe utility locally and supply it with the config xml, it works…
2
votes
1 answer

How to display static analysis warnings in MATLAB?

I've noticed the MATLAB editor will often show quite helpful warnings for ".m" files. As I tend to run my MATLAB code remotely I prefer not to use the MATLAB editor, instead keeping open a long running emacs session. It would be great if these…
bbarker
  • 11,636
  • 9
  • 38
  • 62
2
votes
0 answers

How can I run command via SSH on remote device?

How can I run command via SSH on remote device? I'm trying next ideas: 1: [root@0400smarts-voip01 test]# ssh user@IP "my command" user@IP's password: Connection to IP closed by remote host. 2: [root@0400smarts-voip01 test]# ssh -t user@IP "my…
2
votes
1 answer

How do I run a local fish script on a remote server?

With ssh and bash, it is possible to run a local bash script on a remote server: $ ssh user@server "bash -s" -- < ./example.bash "--arg1" "arg2" (from unix.stackexchange.com) Assuming fish is installed on the remote server, what is the equivalent…
lofidevops
  • 15,528
  • 14
  • 79
  • 119
2
votes
1 answer

Obtaining status from a remote executed process

I am invoking a remote process using libcURLs libssh2. The remote server is a Linux (CentOS) and the client is an Windows XP. Also am using Qt 4.6 and C++.The processes are some third party applications which will be invoked by libssh2 I am able to…
liaK
  • 11,422
  • 11
  • 48
  • 73
2
votes
1 answer

selected bean is not in the same module or enterprise application

Just a shot in the dark, but do I need a local interface to call a remote stateless EJB? when I try call the bean remotely through Netbeans: Netbeans doesn't allow a remote call, or any call, on this bean. Why not? Trying to do it manually, as…
Thufir
  • 8,216
  • 28
  • 125
  • 273
2
votes
3 answers

bash: parallel command execution over ssh

my problem is as follows: I'm writing a script whose purpose is to run a certain scripts on different servers in parallel. I.e., I want to log into a remote server, enter the password (this is not negotiable because boss), starts the script, close…
user3040975
  • 615
  • 1
  • 6
  • 10
2
votes
2 answers

Why does PowerShell not work if I use WinRS?

I have a file "test.ps1" and its content is as below: $getRSDBName = { Add-PSSnapIn Microsoft.SharePoint.PowerShell -ErrorAction SilentlyContinue $rsdb = Get-SPRSDatabase return $rsdb } $rsdb = invoke-command -scriptblock…
2
votes
1 answer

Executing remote command and saving input to file

I need to access to multiple hosts through SSH, execute a specific command (show ms info) and capture the output to a file. I need to copy that file back to my linux machine I want to use ssh and expect to supply the password My problem is saving…
1
vote
2 answers

Use SSIS to launch powershell script that remotely launches a batch file without Administrator rights

We have a SQL server (Name: SQL) that launches an SSIS job with proxy credentials (a service account), consisting of multiple steps. One of these steps require files to be put in a local folder on a remote machine (Name: VM) and execute a program…
1
vote
5 answers

Remote execution of command

I want to remotely execute commands on a machine from a host machine executing say a C#/C++/C type of application. The application is intended to control and execute the execution of commands on the remote machine. Is it possible to something like…
Andy_MSFT
  • 312
  • 3
  • 13
1
vote
1 answer

Is there any way connect to a remote windows server from RHEL and execute a python program that does GUI automation

We have hosted our Jenkins server on an RHEL 7.9. We want to connect to the remote windows server from the RHEL box and execute a python program that uses pywinauto package to manipulate a GUI application that runs on the remote windows server for…
1
vote
1 answer

Invoke-Command not finding script, but it's there

I'm attempting to run a very simple script on a different server and am getting an ItemNotFoundException. Here's my script: Invoke-Command -ComputerName myserver -FilePath C:\laurietest\testthis.ps1 Invoke-Command -ComputerName myserver …
Laurie Dickinson
  • 796
  • 1
  • 10
  • 21