LinuxQuestions.org
Review your favorite Linux distribution.
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 06-01-2002, 09:52 AM   #1
jnsc
LQ Newbie
 
Registered: Apr 2002
Posts: 24

Rep: Reputation: 15
procmail


hello,

I want to recieve an sms when i reciew an e-mail, the script who sends the sms thru the gateway is in php. Now I want that procmail make something like "wget http://localhost/sms.php".

how can i do this whith procmail?

my procmailrc file look like this:

# ---------------------------------------
# Default Shell, Program & file locations
# ---------------------------------------
SHELL=/bin/bash
DEFAULT=$HOME/Maildir/
FORMAIL=/usr/bin/formail
MAILDIR=$HOME/Mail

PMDIR=$HOME
SENDMAIL=/usr/sbin/sendmail

# ------------
# some logging
# ------------
VERBOSE=no
LOGFILE=$HOME/procmail.log


# --------------------------
# all else goes to the inbox
# --------------------------
:0
$DEFAULT


thanks
 
Old 06-01-2002, 09:58 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

Rep: Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975Reputation: 1975
i can't see for the life of me how a wget command could be of the slightest bit of use to you, but... as could have easily been seen in the procmailex manpage:

:0 c
| wget whatever.com
 
Old 06-01-2002, 11:33 AM   #3
Noerr
Member
 
Registered: May 2002
Location: Dalec, HU
Distribution: Redhat 7.3
Posts: 696

Rep: Reputation: 30
indeed very odd, I don't get the point either.
maybe you are trying to run that script ?
 
Old 06-01-2002, 11:39 AM   #4
jnsc
LQ Newbie
 
Registered: Apr 2002
Posts: 24

Original Poster
Rep: Reputation: 15
i use it tu run the php script how sends the sms thru a sms gateway system.

Thanks acid_kewpie your solution is working
 
  


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
help with procmail tekion Linux - Software 1 04-19-2005 09:58 AM
Problem with mail delivery procmail>cyrus imap (using sendmail,procmail,cyrus,imap) bwana Linux - Software 2 03-24-2005 07:01 PM
procmail divali Linux - Software 2 03-04-2005 08:09 AM
procmail help markehb Linux - Software 0 05-20-2004 09:23 AM
Procmail PcHammer Linux - Software 1 04-23-2003 07:33 AM


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