943,597 Members | Top Members by Rank

Ad:
  • C++ Discussion Thread
  • Marked Solved
  • Views: 2131
  • C++ RSS
Jan 29th, 2008
0

Running cpp programe on remote machine

Expand Post »
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.
Reputation Points: 12
Solved Threads: 1
Junior Poster in Training
shaikh_mshariq is offline Offline
71 posts
since Mar 2006
Jan 29th, 2008
0

Re: Running cpp programe on remote machine

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.
Reputation Points: 39
Solved Threads: 24
Junior Poster
dubeyprateek is offline Offline
176 posts
since Mar 2006
Jan 29th, 2008
0

Re: Running cpp programe on remote machine

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.
Sponsor
Team Colleague
Featured Poster
Reputation Points: 5608
Solved Threads: 2282
Retired and Enjoying Life
Ancient Dragon is offline Offline
21,947 posts
since Aug 2005
Jan 29th, 2008
0

Re: Running cpp programe on remote machine

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.
Reputation Points: 1159
Solved Threads: 285
Posting Virtuoso
vijayan121 is offline Offline
1,606 posts
since Dec 2006
Jan 30th, 2008
0

Re: Running cpp programe on remote machine

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
Reputation Points: 12
Solved Threads: 1
Junior Poster in Training
shaikh_mshariq is offline Offline
71 posts
since Mar 2006
Jan 30th, 2008
0

Re: Running cpp programe on remote machine

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.
Reputation Points: 12
Solved Threads: 1
Junior Poster in Training
shaikh_mshariq is offline Offline
71 posts
since Mar 2006
Jan 30th, 2008
0

Re: Running cpp programe on remote machine

This Utility has all the answer for my question bank.
Remcom
Solved my Problem.Thanx to all other posters for their efforts.
Reputation Points: 12
Solved Threads: 1
Junior Poster in Training
shaikh_mshariq is offline Offline
71 posts
since Mar 2006

This thread is solved

Either the thread starter or a moderator has marked this thread as solved. You can most likely trust the responses and answers given. There is most likely no reason for any further responses to be posted here. If you have a related question, please start a new thread in this forum instead.

This thread is more than three months old

No one has posted to this discussion for at least three months. Please let old threads die and do not reply to them unless you feel you have something new and valuable to contribute that absolutely must be added to make the discussion complete. Otherwise, please start a new thread in this forum instead.
Message:
Previous Thread in C++ Forum Timeline: Please Help Me
Next Thread in C++ Forum Timeline: swprintf question.





About Us | Contact Us | Advertise | Acceptable Use Policy
Forum Index | Build Custom RSS Feed


Follow us on Twitter


© 2011 DaniWeb® LLC