LinuxQuestions.org
Latest LQ Deal: Linux Power User Bundle
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Newbie
User Name
Password
Linux - Newbie This Linux forum is for members that are new to Linux.
Just starting out and have a question? If it is not in the man pages or the how-to's this is the place!

Notices


Reply
  Search this Thread
Old 02-01-2011, 12:47 AM   #1
lassik
LQ Newbie
 
Registered: Feb 2009
Posts: 6

Rep: Reputation: 0
Need help with sending AIM via PHP


I'm trying to send an AIM via PHP. I've had no success using BlueTOC.

I'm currently trying a different method which will work nicely if I can just figure it out.

I've decided to just install nAIM on my server running CentOS. From there I intend to just use the PHP command exec() to call up nAIM and send the message. Simple enough...

My problem i'm running in to is that I don't really know enough about using the exec() command to call up nAIM and give it all the commands needed to send the message.

To run nAIM from the command prompt you have to type "naim" then the program starts. After you have it running you type "/connect <screenname>" then "<password>" then "/msg <user> <message>".

Unfortunately this can not all be done on 1 line using -options. So when using the exec() command in PHP i'm really now sure how I can accomplish all this.

Anyone have any input that could help me in this project?...

Sorry if this isn't enough information to go on.

The end result for this is basically:
I'm trying to scrape a page and when new data is posted on the page, I want to send an AIM with that new data to someone.

The scraper part I have down no problem. It's just the whole AIM part that eludes me.
 
Old 02-01-2011, 07:04 PM   #2
Tinkster
Moderator
 
Registered: Apr 2002
Location: in a fallen world
Distribution: slackware by choice, others too :} ... android.
Posts: 23,066
Blog Entries: 11

Rep: Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910Reputation: 910
Quote:
Originally Posted by lassik View Post
I'm trying to send an AIM via PHP. I've had no success using BlueTOC.

I'm currently trying a different method which will work nicely if I can just figure it out.

I've decided to just install nAIM on my server running CentOS. From there I intend to just use the PHP command exec() to call up nAIM and send the message. Simple enough...

My problem i'm running in to is that I don't really know enough about using the exec() command to call up nAIM and give it all the commands needed to send the message.

To run nAIM from the command prompt you have to type "naim" then the program starts. After you have it running you type "/connect <screenname>" then "<password>" then "/msg <user> <message>".

Unfortunately this can not all be done on 1 line using -options. So when using the exec() command in PHP i'm really now sure how I can accomplish all this.

Anyone have any input that could help me in this project?...

Sorry if this isn't enough information to go on.

The end result for this is basically:
I'm trying to scrape a page and when new data is posted on the page, I want to send an AIM with that new data to someone.

The scraper part I have down no problem. It's just the whole AIM part that eludes me.

That would get ugly fast - you'd need to run an expect script under
exex; it might be smarter to find out what the problem w/ BlueTOC was!



Cheers,
Tink
 
  


Reply


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
Sending E-Mail From a Different Server Using PHP stevec Programming 6 08-02-2011 01:53 PM
LXer: PHP takes aim at Radar LXer Syndicated Linux News 0 07-23-2007 06:16 PM
[PHP] Sending shell commands from PHP pEeDy Programming 4 11-04-2005 09:06 PM
Sending email in PHP, what headers should I use? abefroman Programming 2 10-12-2005 03:49 AM
Sending email with PHP jacksmash Programming 7 03-10-2004 06:10 PM


All times are GMT -5. The time now is 04:31 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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration