Visit Jeremy's Blog.
Go Back > Forums > Linux Forums > Linux - Software
User Name
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.


  Search this Thread
Old 05-15-2008, 10:28 AM   #1
Registered: Feb 2008
Distribution: ubuntu
Posts: 43

Rep: Reputation: 15
Smile can combine an instant message software with bash?

Hi, everyone, here I come, ,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:
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.

Last edited by sunnior; 05-15-2008 at 10:29 AM.
Old 05-15-2008, 11:37 AM   #2
LQ Newbie
Registered: Oct 2004
Distribution: Debian, Ubuntu, DSL, TRK, etc.
Posts: 18
Blog Entries: 3

Rep: Reputation: 3
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.
Old 05-15-2008, 02:28 PM   #3
Registered: Oct 2006
Posts: 99

Rep: Reputation: 15

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
Old 05-15-2008, 03:05 PM   #4
Registered: Dec 2004
Location: Raleigh, NC
Distribution: CentOS 2.6.18-53.1.4.el5
Posts: 770

Rep: Reputation: 44
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.
Old 05-16-2008, 02:04 AM   #5
Registered: Feb 2008
Distribution: ubuntu
Posts: 43

Original Poster
Rep: Reputation: 15

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


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
send instant message from command line MikeyCarter Linux - Software 2 05-17-2006 12:17 AM
Instant Message satimis Linux - Software 4 03-29-2005 07:45 PM
Share programming code, Instant Message firefly2442 Programming 7 09-26-2004 11:42 PM
instant message form command line jonfa Linux - General 4 03-10-2004 09:45 PM
Instant Message with webcam support? RobertoBech Linux - Software 4 01-08-2004 07:18 PM > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 06:56 AM.

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