LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Software (https://www.linuxquestions.org/questions/linux-software-2/)
-   -   can combine an instant message software with bash? (https://www.linuxquestions.org/questions/linux-software-2/can-combine-an-instant-message-software-with-bash-642403/)

sunnior 05-15-2008 10:28 AM

can combine an instant message software with bash?
 
Hi, everyone, here I come, :D,with an interesting question:

Can I combine an instant message software with bash? Then the message I send to the instant message software (e.g pidgin) can be converted, in certain way, to a command of bash. Then I could control my laptop remotely.

I'd like to amplify further:

is this imagination possible:
Quote:

I use pidgin to login in QQ (a protocol) with a account on my laptop, then with another account on my cellphone. I use my phone to send the laptop account a message "ls", the it's converted to a correspond message to the bash. Then the bash use the pidgin to send the result to my phone.
Any suggestion? TIA.
if I made any ambiguity because of my poor English, I'm terribly sorry. Please tell me and I'll correct it.

polymath69 05-15-2008 11:37 AM

This is not a good idea.

The output of a given command can be very long, but text messages are limited to about two lines. Should a long output be truncated to the first two lines, or sent as possibly thousands of messages? That could be very expensive.

Anyone can send your IM account a message. If that message should be "rm -r *", would you like bash to execute that for you? How about if that message was "echo 'You are an idiot' | Mail -s 'I quit' your@boss.job" ?

If you want this sort of thing done sensibly, install webmin on your laptop and log into it using a browser. Possibly even one on your phone. But SMS is not a good fit.

yakoub 05-15-2008 02:28 PM

ssh
 
to control laptop remotely ,
why don't you just log into it using ssh ?
find out your laptops ip , make sure /etc/rc.d/rc.sshd
is running , and that is all

ncsuapex 05-15-2008 03:05 PM

putty + SSH is the way to go. If you want to control it from your phone get a PDA like a Treo or blackberry that has SSH software available.

sunnior 05-16-2008 02:04 AM

Thank you all for these suggestions, I'll have a try.:)


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