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


 
Thread Tools Search this Thread
Top Forums Programming how to start a c++ exe on unix from windows.
# 1  
Old 08-31-2005
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. I have not been able to find anything in my online searches yet.
# 2  
Old 08-31-2005
I'm confused. An exe meant for Windows cannot run under Unix. An exe meant for Windows cannot run on Unix.

Are you talking about remote execution or something?
# 3  
Old 08-31-2005
kicking off exe on unix from windows

Yes- I guess that would be remote execution. Let me try to clarify.
I have an exe on the unix box that I want to start from my pc. The executuable on the backend is a load simulating program(called Loadtest.exe) so I'll actually be starting multiple instances of it. There could be 1500 Loadtest processes running at once. I'm currently writing the win32 app in vc++ that will hopefully be able to do this. It will be some type of scheduler application that tells the loadtest.exe to start x number of processes every t minute.
# 4  
Old 09-14-2007
Boy. I'm surprised no one has answered this yet.Smilie

I've started down this project again. Anyone have any thoughts?

Let me describe again...

I have C++ program that runs on a back-end unix machine. We usually have a KSH that iterates and invokes several iterations of the program. (it's used to simulate load on the system). I'd like to replace the use of KSH scripts with an app running on a windows PC that could invoke the C++ program on the back-end unix system.
# 5  
Old 09-15-2007
Running unix exe from windows

Dear,

It seems that you need a kind of software that enables you to login to unix from windows and execute any command there. Well I have seen the following options,

1. Procom plus.

2. Humming Bird Exceed, this software has a wonderful interface in which you provide login info and where your executable exists and then start it.
(Excellent candidate)

3. I do not know if you have any programming knowledge in Java, but one of my friends managed to write aprogram to help him in solving such problems.

Best regards,
# 6  
Old 09-16-2007
Use Putty's plink.exe which is basically an ssh client to run the server program through sshd.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 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. 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

3. Shell Programming and Scripting

Windows exe file fails when triggered from ssh

Hi, 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 Any ideas to deal with... (2 Replies)
Discussion started by: ahmedwaseem2000
2 Replies

4. Ubuntu

Customizing XUbuntu 12.04 Live CD - Start my Exe Automatically

Hi all http://ubuntuforums.org/images/smilies/smiley-faces-80.gif, I am customizing the LIVE CD of Xubuntu 12.04.. I removed the ubiquity package and changed the live username and hostname using uck-gui.. I am almost done with the customization. Now after the splash screen , the text in motd... (1 Reply)
Discussion started by: selvarajvss
1 Replies

5. Windows & DOS: Issues & Discussions

Start windows application (.bat) from Unix

How can I start an application sitting on a windows machine (XP) from Unix shell script (AIX server) ? (6 Replies)
Discussion started by: pkan
6 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. 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

8. Shell Programming and Scripting

want to login remotly to server and start exe

Hello Unix Guru I need help to write the shell script My requirement is i have to start exe in unix hosts ( 20 unix server) through shell script . currently i have to login to all host rlogin -l testadmin servername /users/testadmin/bolt/ source boltsrc ./executor start ... (1 Reply)
Discussion started by: getdpg
1 Replies

9. UNIX Desktop Questions & Answers

start windows appl. from unix

Is it possible to start a windows applications such as mail merge in word from a unix machine (sco-unix, digital osf). Why to do this ? Most people known word to create nice documents, but we want to print this documents with our information (name, adresses etc.. like a mailing. This info... (9 Replies)
Discussion started by: Dplancke
9 Replies

10. Programming

how To edit exe to insert a serial no wich can be usd by runing exe

At time of installation I have to open the resource. and i have to insert a string serial number in the exe. please provide me code to edit the exe (in solaris) to insert a serial number which can be used by exe at run time. (6 Replies)
Discussion started by: ssahu
6 Replies
Login or Register to Ask a Question