LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 02-07-2013, 10:02 PM   #1
trafikpolisen
Member
 
Registered: Jun 2008
Posts: 121

Rep: Reputation: 3
Software to execute a command on another computer


I'm looking for some client/server-based software that does the following:
On computer A the server part of the software runs as a service/daemon.
On computer B i execute the client program, for example, "sendcommandclient [command to execute on server computer]". Computer B sends the command to computer A, which executes it.
Does something like this exist?
To complicate things, it needs to be cross-platform, with Windows-based server part and linux client.
 
Old 02-07-2013, 10:06 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
OpenSSH: http://www.openssh.com/
 
Old 02-07-2013, 10:33 PM   #3
trafikpolisen
Member
 
Registered: Jun 2008
Posts: 121

Original Poster
Rep: Reputation: 3
Is that possible with openssh? I use openssh between linux computers, but need to login first.
I have a Tellstick (http://www.telldus.com/products/tellstick) to control lighting at home. I used to have it connected to my desktop computer and used the provided tdtool command together with a keyboard shortcut to control receiver (for example Windows-key + F2 to turn receiver 2 on).
For various reasons i now want to have the Tellstick connected to my Windows-based server, but still want to be able to control it with keyboard shortcuts from my desktop computer (or laptop).
 
Old 02-07-2013, 11:25 PM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Please describe that further, I am not quite getting it:
1. Is tdtool a Windows or a Linux program?
2. Is it a GUI or a CLI tool?
3. Dou you use keyboard combinations to launch the command with specific parameters or do you use them after the tool started to control it?
 
Old 02-08-2013, 08:41 AM   #5
trafikpolisen
Member
 
Registered: Jun 2008
Posts: 121

Original Poster
Rep: Reputation: 3
tdtool is a CLI program to control the tellstick. I think all third-party software available for the Tellstick calls it. For example, to turn on receiver 4 you enter "tdtool --on 4". Every receiver is stored in a config file. tdtool is available both for Windows and Linux. So yes, i use keyboard combinations to launch the command with parameters.
 
Old 02-09-2013, 07:36 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Then SSH should do the job. Install a SSH server on your Windows machine and enable key-based authorization, so that you don't have to use passwords. Then set up keyboard combinations on the Linux machine to launch the tool like this:
Code:
ssh user@server "tdtool parameters_here"
 
Old 02-12-2013, 02:55 AM   #7
trafikpolisen
Member
 
Registered: Jun 2008
Posts: 121

Original Poster
Rep: Reputation: 3
After a few hours on Google i managed to get it to work. Running freesshd on the server. Had some problems getting the keys to work.
Works a treat now! Thanks for the help!
 
Old 02-12-2013, 04:44 AM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Germany
Distribution: Whatever fits the task best
Posts: 17,148
Blog Entries: 2

Rep: Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886Reputation: 4886
Nice that it works for you. Please mark this thread as solved using the thread tools at the top of the thread.
 
Old 02-12-2013, 06:21 AM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 29,415
Blog Entries: 55

Rep: Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600Reputation: 3600
Moved: This thread is more suitable in the Software forum and has been moved accordingly so you can mark it solved (doesn't work in the General forum).
 
  


Reply

Tags
ssh, tdtool, tellstick



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 Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can I execute a shell command and put the result in command field? fran4tw Linux - General 9 08-08-2011 08:27 PM
Only execute 2nd command on successufl execution of 1st command kregec05 Linux - Newbie 3 08-19-2009 10:29 AM
Execute a command , reboot and then execute another command ganeshp@moris.org Linux - Newbie 3 12-03-2008 12:51 AM
remote command execute telnet with 1 command MPowers Linux - Networking 2 06-30-2005 06:31 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 07:20 PM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration