[LUNI] Executing a command on another host?

Joe Frost joe at the-frosts.org
Tue Jul 10 15:17:50 CDT 2007


On Jul 10, 2007, at 1:49 PM, Richard Reina wrote:

> Hello all,
>
> I have a program running that on one of the hosts on my small LAN  
> that can send SMS text messages from the command line.  I would  
> like to be a able to use it from other hosts on the LAN which  
> amounts to somehow executing a command from one host on to another.  
> I believe I could write a script in perl that perhaps uses rsync to  
> help me do this but I feel like there must someohow be an easier  
> more effiecient way?  Does anyone no of any?


I'd look into ssh.  Something like

ssh user at smshost 'sms_command "Message"'

You'd have to enter a password for user unless you were using keys.

Good luck,
Joe




More information about the luni mailing list