LinuxQuestions.org
Visit the LQ Articles and Editorials section
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices

Reply
 
Search this Thread
Old 04-22-2004, 03:00 AM   #1
Cichlasoma
LQ Newbie
 
Registered: Jan 2004
Distribution: Mandrake 10.0 Official <P>SuSE 9.1
Posts: 15

Rep: Reputation: 0
Is it possible to make a Linux server execute a program on a WinXP system?


Hi,

I'd like to be able to get a linux server to communicate with a Windows XP pro box and cause an application to be run on that Windows box.

What I actually want to happen is for someone to be able to log on to the Linux server then cause a build (using Visual C++) to be run on the Windows box by executing some command on the Linux box. I'd like them to be able to do this without them having to personally log into the Windows box.

If there is no existing tools for this, then I figure that I'll try writing a program to do the job, but that could be quite a hefty task!

Thanks in advance for your responses!

p.s. apologies if this has been asked before... I've done searches, but found nothing.
 
Old 04-22-2004, 03:26 AM   #2
MS3FGX
Guru
 
Registered: Jan 2004
Location: NJ, USA
Distribution: Slackware, Debian
Posts: 5,852

Rep: Reputation: 351Reputation: 351Reputation: 351Reputation: 351
The only thing I can think of off the top of my head is to have some sort of script that will telnet to the Windows XP machine (running the Windows Telnet Server) and then run a batch file located on the Windows XP machine which will start your build.

Hardly elegant, but you could do it without any special software.
 
Old 04-22-2004, 07:54 AM   #3
rcs1000
Member
 
Registered: Feb 2004
Posts: 30

Rep: Reputation: 15
Another way

There is - I believe - no elegent way to achieve it.

What I would do is...

Set up a shared directory.

When you execute the command on the Linux box, it creates "run.txt" or equivilent in the shared directory. run.txt contains details of the build.

Set up a Windows Scheduled Task (or VB app, whatever you like) that checks (every 10 secs or 1 minute or whatever) for the existence of run.txt; if it exists it parses it, and -say- takes the parameters and runs your build.

Deos that work for you?
 
Old 04-23-2004, 01:18 AM   #4
hydrophonic
LQ Newbie
 
Registered: Apr 2004
Posts: 1

Rep: Reputation: 0
Another way

How about writing a lil' proglet that sits on the System Tray and listens to port xxxxx... When you connect with it, it authenticates you (I hope!!), and awaits your requests... Program it to accept requests to *send file *recieve file *ShellExecute *anything else you need.

To use it, just connect (any way you like), authenticate (challenge-response), and command it...

This program should be just a hair over trivial... (although you might have some ShellExecute "macros" so you don't have to type the whole command lines...)

EDIT: Don't forget to open a port for it
 
Old 04-23-2004, 06:00 AM   #5
orange400
Member
 
Registered: Mar 2003
Location: Bellevue, WA
Distribution: Arch w/ XFCE
Posts: 834

Rep: Reputation: 30
You could always VNC it. www.realvnc.com
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off


Similar Threads
Thread Thread Starter Forum Replies Last Post
C program code to execute linux-command supermichou_fr Linux - Software 4 08-01-2012 08:25 AM
Execute a linux command using a java program tvalenzuela Programming 2 10-07-2005 11:59 AM
How to Execute a program in Redhat linux as soon a when the GUI comes up alix123 Programming 5 08-15-2005 10:59 AM
make c-program that accepts shell commands and execute them boeroe Programming 4 02-18-2005 08:41 AM
how to execute my program when any user logs off my linux server ? rags2k Programming 8 08-17-2004 02:33 PM


All times are GMT -5. The time now is 07:13 AM.

Main Menu
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration