Running cpp programe on remote machine

Please support our C++ advertiser: Intel Parallel Studio Home
Thread Solved

Join Date: Mar 2006
Posts: 71
Reputation: shaikh_mshariq is an unknown quantity at this point 
Solved Threads: 1
shaikh_mshariq's Avatar
shaikh_mshariq shaikh_mshariq is offline Offline
Junior Poster in Training

Running cpp programe on remote machine

 
0
  #1
Jan 29th, 2008
Thanx to daniweb and all the posters. I have created a program for viewing process and hardware information on windows platform. Now i want to run this program on remote machine. How can i do this. I have administrator permission on that machine. Making dll of this program would help me because on network how can i execute exe file. Thanx in Advance.
Ideas are the building blocks of Ideas

Jason Zebehazy
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 176
Reputation: dubeyprateek is an unknown quantity at this point 
Solved Threads: 22
dubeyprateek's Avatar
dubeyprateek dubeyprateek is offline Offline
Junior Poster

Re: Running cpp programe on remote machine

 
0
  #2
Jan 29th, 2008
Hello Jason,

Simply speaking you cannot execute any application on a remote machine. There are many problems doing this. Apart from the implementation limitations there are some major security risks.

However, you can use a utility called PSEXEC(http://technet.microsoft.com/en-us/s.../bb897553.aspx) to do this. It internally installs a service on the remote computer and ports your executable there and runs it.
I know I am. Therefore I am.
Reply With Quote Quick reply to this message  
Join Date: Aug 2005
Posts: 15,346
Reputation: Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute Ancient Dragon has a reputation beyond repute 
Solved Threads: 1460
Team Colleague
Featured Poster
Ancient Dragon's Avatar
Ancient Dragon Ancient Dragon is online now Online
Still Learning

Re: Running cpp programe on remote machine

 
0
  #3
Jan 29th, 2008
you could do a remote login on the remote computer, assuming you have a user name and password on that machine. I've seen this done by network administrators at my old office, but I don't know exactly how they did it. I suppose another way is to use PCAnywhere by Symantic.
Don't PM me with questions -- you might get a nasty PM in response. If you have a question then post it in one of the forums.
Reply With Quote Quick reply to this message  
Join Date: Dec 2006
Posts: 1,089
Reputation: vijayan121 is a name known to all vijayan121 is a name known to all vijayan121 is a name known to all vijayan121 is a name known to all vijayan121 is a name known to all vijayan121 is a name known to all 
Solved Threads: 164
vijayan121 vijayan121 is offline Offline
Veteran Poster

Re: Running cpp programe on remote machine

 
0
  #4
Jan 29th, 2008
if your program is console based (no gui), you could use telnet. server versions of windows ship with a telnet server. all current versions of windows ship with a telnet client. see http://technet2.microsoft.com/window...83dba1033.mspx

you could also use several third party telnet server programs. eg. http://www.kpym.com/en/Overview.htm
putty is a very poular telnet client http://www.chiark.greenend.org.uk/~sgtatham/putty/

for gui access, you could use Remote Desktop (available only with professional/business versions). http://www.microsoft.com/windowsxp/u...moteintro.mspx
Last edited by vijayan121; Jan 29th, 2008 at 9:19 pm.
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 71
Reputation: shaikh_mshariq is an unknown quantity at this point 
Solved Threads: 1
shaikh_mshariq's Avatar
shaikh_mshariq shaikh_mshariq is offline Offline
Junior Poster in Training

Re: Running cpp programe on remote machine

 
0
  #5
Jan 30th, 2008
Thanx to all. That was very useful information. In every technic it requires to pre configuration on every machine which is supposed to remotely access. I want to develop generic application so it use basic authentication of windows in every machine it would work without any pre configuration. I have authority on every machine but i want to access all that machine remotely using jni application. I might be wrong please guide me.I want to develop intranet application like psexec for windows. And thanx in advance
Last edited by shaikh_mshariq; Jan 30th, 2008 at 1:16 am. Reason: More Specific
Ideas are the building blocks of Ideas

Jason Zebehazy
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 71
Reputation: shaikh_mshariq is an unknown quantity at this point 
Solved Threads: 1
shaikh_mshariq's Avatar
shaikh_mshariq shaikh_mshariq is offline Offline
Junior Poster in Training

Re: Running cpp programe on remote machine

 
0
  #6
Jan 30th, 2008
I got this open source utility RemCom it works fine on windows 2000 and xp. Its great work done by Talha Tariq.Thanx to all you guys. Try this good stuff. Reusability is great advantage of our community. Thats why I have written below.
Ideas are the building blocks of Ideas

Jason Zebehazy
Reply With Quote Quick reply to this message  
Join Date: Mar 2006
Posts: 71
Reputation: shaikh_mshariq is an unknown quantity at this point 
Solved Threads: 1
shaikh_mshariq's Avatar
shaikh_mshariq shaikh_mshariq is offline Offline
Junior Poster in Training

Re: Running cpp programe on remote machine

 
0
  #7
Jan 30th, 2008
This Utility has all the answer for my question bank.
Remcom
Solved my Problem.Thanx to all other posters for their efforts.
Ideas are the building blocks of Ideas

Jason Zebehazy
Reply With Quote Quick reply to this message  
Reply

This thread has been marked solved.
Perhaps start a new thread instead?
Message:



Other Threads in the C++ Forum
Thread Tools Search this Thread



About Us | Contact Us | Advertise | DaniWeb | Acceptable Use Policy | RSS Feed

©2003 - 2009 DaniWeb® LLC