Questions tagged [remote-execution]

105 questions
0
votes
1 answer

Pipe Python script to ssh, but do other bash commands first

A very convenient way to execute a Python script on a remote server is to pipe it to ssh: cat script.py | ssh user@address.com python - where the - seems to be optional. How can I execute other bash commands before running the Python script in this…
1''
  • 26,823
  • 32
  • 143
  • 200
0
votes
1 answer

How to delete a registry key from a remote computer under Current User or Users SID

I am trying to create a script that performs the below steps: Enter Remote machine name Enter User's Domain and User name (DOMAIN1\USERNAME) Run WMI query to obtain SID Open either HKEY_CURRENT_USER (or HKEY_USERS and locate SID) Delete Key…
0
votes
0 answers

echoid.exe remote execution issue (wrong Locking Code output)

I am trying to bring locking code of a farm in automatic way. So, i have on each remote server echoid.exe and a batch file. The batch file simply execute the echoid.exe and write its output into a text file which i can parse. The problem is when…
0
votes
1 answer

windows batch file to call remote executable with username and password

Hi I am trying to get a batch file to call an executable from the server and login. I have a monitoring program that allows me send and execute the script. OK here goes.... //x3400/NTE_test/test.exe /USER:student password Now this doesn't work. …
Jake rue
  • 1
  • 1
  • 1
0
votes
1 answer

remote execution(PowerShell) of cmd file doesn't complete

Current PS script: Invoke-Command -ComputerName RemoteServer007.FQDN.com -ScriptBlock { Set-Variable -Name WOWCONFIG -value "d:\ABCs\WOWzers" ` | Start-Process "d:\da-folder\Do-It-NOW-Pleez.cmd" } If I log on locally to the…
GaryStad
  • 15
  • 3
0
votes
0 answers

Powershell remote execution not writing log on remote machine

I am currently stuck with an installation issue using a powershell script. I can run the script without any problem on Host B from command line. But when I attempt to launch it remotely, the script is not able to create the log file (which I monitor…
SteveS
  • 11
  • 1
0
votes
1 answer

Run the remote script in linux without login

I am having one php script in remote linux server. I need to run that php from another linux machine without any kind of login. In Linux Machine 1: $] /home/user/myScript.php In Linux Machine 2: $] runRemoteCmd…
Ashwin
  • 993
  • 1
  • 16
  • 41
0
votes
1 answer

Running remote exe on remote device

I'm stuck with an issue that may not be easily solvable, but I'm hoping someone will be able to help. I am attempting to run an exe to install some software (SCCM client) on a remote device. So what is happening is that I am running the program…
BBL Admin
  • 57
  • 1
  • 2
  • 9
0
votes
3 answers

How to create remote tar (bash)

My script is executing the following line: ssh $REMOTE_USER@${SUPPORTED_SERVERS[$i]} "gtar -zcvf $TAR_FILE `find $LOCAL_PATH -name *$DATE*` Now, the problem is that find command is being executed on the local machine and I need it to be executed on…
ABOCb
  • 5
  • 2
0
votes
2 answers

Remote java program execution using ftp, very large dataset on remote machine - program to data vs data to program

I am developing a java based application; its pertinent requirements are listed below Large datasets exist on several machines on network. my program needs to (remotely) execute a java program to process these data sets and fetch the results A user…
0
votes
2 answers

run the shell script from rails application after login to the remote system

I want to run a shell script from my Rails application. The script is started on the remote server via the net-ssh Gem. Here is my code: Net::SSH.start('localhost', 'user', :password => '1234', :port => port) do |session| …
user2622247
  • 1,059
  • 2
  • 15
  • 26
0
votes
2 answers

Starting an exe file with parameters on a remote PC

We have a program running on about 400 PCs (All W7). This program is called Wisa. We receive regular updates for this program, named something like wisa_update1.0.exe, wisa_update1.1.exe, wisa_update2.0.exe, etc. The users can not do the update…
0
votes
1 answer

Remote execution

I have been working on rexec for a few days!! So the task is like this. I have server A and server B. I want to run a shell script on server B which is triggered from server A. The script that I use will be like From server A rexec serverB…
C0de_Hard
  • 72
  • 1
  • 9
-1
votes
1 answer

Executing a script remotely through ssh using expect

I am new to using expect. I try the code below and it fails: expect -c 'spawn ssh user@host < script.ecma3 expect Password: ; send "******\r"; send "exit\r";' anyone could clarify
-1
votes
1 answer

Header title has a string addition and ignores one of the parameters when I run it remotely

I have the following problem: one member of the header row is an addition of strings like this: "Amount (" + ContextHelper.GetLocalCurrency().ToString + ")" in order to show, in case of us local currency: Amount (US) it works fine when I run this…
benja
  • 9
  • 2
1 2 3 4 5 6
7