LinuxQuestions.org
Share your knowledge at the LQ Wiki.
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, 11:02 PM   #1
trafikpolisen
Member
 
Registered: Jun 2008
Posts: 59

Rep: Reputation: 1
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, 11:06 PM   #2
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

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

Original Poster
Rep: Reputation: 1
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-08-2013, 12:25 AM   #4
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
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, 09:41 AM   #5
trafikpolisen
Member
 
Registered: Jun 2008
Posts: 59

Original Poster
Rep: Reputation: 1
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, 08:36 AM   #6
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
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, 03:55 AM   #7
trafikpolisen
Member
 
Registered: Jun 2008
Posts: 59

Original Poster
Rep: Reputation: 1
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, 05:44 AM   #8
TobiSGD
Moderator
 
Registered: Dec 2009
Location: Hanover, Germany
Distribution: Main: Gentoo Others: What fits the task
Posts: 15,653
Blog Entries: 2

Rep: Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095Reputation: 4095
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, 07:21 AM   #9
unSpawn
Moderator
 
Registered: May 2001
Posts: 27,710
Blog Entries: 54

Rep: Reputation: 2966Reputation: 2966Reputation: 2966Reputation: 2966Reputation: 2966Reputation: 2966Reputation: 2966Reputation: 2966Reputation: 2966Reputation: 2966Reputation: 2966
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


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 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 09:27 PM
Only execute 2nd command on successufl execution of 1st command kregec05 Linux - Newbie 3 08-19-2009 11:29 AM
Execute a command , reboot and then execute another command ganeshp@moris.org Linux - Newbie 3 12-03-2008 01:51 AM
remote command execute telnet with 1 command MPowers Linux - Networking 2 06-30-2005 07:31 AM


All times are GMT -5. The time now is 04:21 AM.

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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration