Windows exe file fails when triggered from ssh

Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Windows exe file fails when triggered from ssh
# 1  
Old 02-03-2014
Windows exe file fails when triggered from ssh


I am triggering a windows exe file using the below command.

ssh user@remoteserver command.exe -option1:xx /option2:yy

This command is working fine from windows command prompt. When I am triggering the same command from ssh I get the error message cant load
QBWMAINN: Could not load ZIP4_W32 -- OK
Any ideas to deal with this situation?


---------- Post updated at 08:02 PM ---------- Previous update was at 07:32 PM ----------

I fixed this issue by routing the command through windows command prompt and using the command start. but now the difficulty is the program starts but the screen is not held but released. So, I am not able to figure out a way to see how to check if the command is still running or now.
# 2  
Old 02-04-2014
It may be an issue with your PATH.
# 3  
Old 02-04-2014
Not sure how you are actually running your command are you trying
ssh user@remoteserver cmd.exe /C yourcommand.exe -option1:xx /option2:yy

If yourcommand.exe is a windows GUI executable you may have some issues running it from and ssh session. The sshd process is likely to be running as a windows service and GUI components are not typically allowed to be spawned services.
Login or Register to Ask a Question

Previous Thread | Next Thread

9 More Discussions You Might Find Interesting

1. Windows & DOS: Issues & Discussions

Cant get responsive terminal when I ssh from Windows to Linux using putty.exe

I ssh from Windows to Linux server and execute a few commands. I have ssh keys setup between them and works fine. The commands get executed on the Linux server however I wish to stay on the Linux terminal that was opened by putty.exe. However, the terminal simply does the job and closes. ... (10 Replies)
Discussion started by: mohtashims
10 Replies

2. Shell Programming and Scripting

Ssh fails for one of two users on the same server.

I have two users on dest_host server viz wlsadm & wasadm. From src_host server with root user I m able to passwordless login to wlsadm@dest_host however, the same fails for wasadm@dest_host Below is the debug for both first the working ssh and then the non-working ssh. Works: ... (6 Replies)
Discussion started by: mohtashims
6 Replies

3. UNIX for Beginners Questions & Answers

Seen Windows pc, having all the features of Linux, could exe, read and edit save like windows

Hi, totally new to linux base using windows when started learning and using computers. but i remember that one pc was there , look alike windows desktop, but could not do the task as windows just click and open and view edit etc. But, you could do a little differently even saving in and opening... (8 Replies)
Discussion started by: jraju
8 Replies

4. Shell Programming and Scripting

Even Driven (File triggered) shell script

Hi All I am not an expert at shell programming. But in the process of learning. But I have a requirement it goes as follows : Requirement 1: I have a series of files that keep comming on a unix folder every hour. The files names are different. As soon as a file arrives in this folder I will... (3 Replies)
Discussion started by: srivi_xinu
3 Replies

5. Shell Programming and Scripting

Need Help with expect when ssh fails

I'm trying to write a script using expect. I'd like the script to execute several commands when the ssh succeeds and i want it to exit if the ssh fails. Does this require to define a time out for the ssh command so that if the prompt is back before this defined time the next commands are executed??... (2 Replies)
Discussion started by: Hossam_Nox
2 Replies

6. Programming

how can I get to know what threads run within process java.exe on windows

I am writing java application on windows. There are more than 100 threads run within java.exe. I want to know what threads run within process java.exe so that I can find out if there are abnormal java threads. (4 Replies)
Discussion started by: mika
4 Replies

7. Shell Programming and Scripting

unzip command fails in ssh

I'm trying to run a set of commands on a remote machine using ssh in a shell script. One of the commands is unzip. But when the execution reaches this command, the script fails with an error that unzip is not found. Below is the code and the error snippet. sourceDir=$1 ; filename=$3 ; destDir=$2... (4 Replies)
Discussion started by: farahzaiba
4 Replies

8. UNIX for Advanced & Expert Users

Multiple instances of windows exe from unix

Hi, I have a requirement to run multiple instances of an .exe file present in windows server from unix machine. The number of threads to be invoked is determined dynamically based on a variable field. We will be passing some parameters to windows .exe file for each instance. I am a unix... (2 Replies)
Discussion started by: sam99
2 Replies

9. Programming

how to start a c++ exe on unix from windows.

I'm very new to c++ & unix programming. I have a c++ exe that runs on the unix box, but I am trying to write a c++ windows app that executes the program on unix. I have tried execv(), but it doesn't seem to work or I'm doing something wrong. Would really like to see examples if at all possible. ... (5 Replies)
Discussion started by: ch5082
5 Replies
Login or Register to Ask a Question