LinuxQuestions.org
Review your favorite Linux distribution.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 08-25-2005, 01:38 AM   #16
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled

Add that directory to your $PATH, with

export PATH=$PATH:/path/to/mailman (obviously replace /path/to/mailman with the appropriate path..). Or, you could just type out the full path each time, but it's easier to add it to $PATH.
 
Old 08-25-2005, 02:16 AM   #17
akamaru607
LQ Newbie
 
Registered: May 2005
Location: Malaysia
Posts: 22

Original Poster
Rep: Reputation: 15
izzit something like this ?
export PATH=$PATH:/usr/lib/mailman/mail
 
Old 08-25-2005, 02:29 AM   #18
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
If mail is the executable, then no. It should be

export PATH=$PATH:/usr/lib/mailman

On the other hand, if mail is a directory that the executable(s) are in, then yes, that's correct.
 
Old 08-25-2005, 02:37 AM   #19
akamaru607
LQ Newbie
 
Registered: May 2005
Location: Malaysia
Posts: 22

Original Poster
Rep: Reputation: 15
the executable is inside the mail directory ... i had export it and restart my mailman but still receive that email
Quote:
From: Cron Daemon <root@localhost.localdomain>
To: mailman@localhost.localdomain
Subject: Cron <mailman@localhost> mailman /usr/lib/mailman/cron/gate_news
Date: Thu, 25 Aug 2005 15:25:03 +0800

/bin/sh: mailman: command not found
really no idea ... mail function still havnt solve T_T
 
Old 08-25-2005, 02:39 AM   #20
Nylex
LQ Addict
 
Registered: Jul 2003
Location: London, UK
Distribution: Slackware
Posts: 7,464

Rep: Reputation: Disabled
Are there any settings for Cron where you can put the whole path to the file? Maybe update root's path as well. I don't know, since I've never used Cron.
 
Old 08-25-2005, 02:40 AM   #21
akamaru607
LQ Newbie
 
Registered: May 2005
Location: Malaysia
Posts: 22

Original Poster
Rep: Reputation: 15
kk ... i will try ... thanx u so much !!!
 
Old 08-25-2005, 11:30 PM   #22
akamaru607
LQ Newbie
 
Registered: May 2005
Location: Malaysia
Posts: 22

Original Poster
Rep: Reputation: 15
error i get in maillog when sendmail by php

i go check my log file [/var/log/maillog], this what i get from there, but i dunno what the problem i facing. hope someone can help me to solve this problem, will very appreciate on who can help me.


Quote:
Aug 26 12:09:25 localhost sendmail[7333]: j7Q49PDk007333: SYSERR(apache): collect: Cannot write ./dfj7Q49PDk007333 (bfcommit, uid=48, gid=51): Permission denied
Aug 26 12:09:25 localhost sendmail[7333]: j7Q49PDk007333: from=apache, size=64, class=0, nrcpts=1, relay=apache@localhost
Aug 26 12:09:25 localhost sendmail[7333]: j7Q49PDk007333: 0: fl=0x0, mode=10600: FIFO: dev=0/5, ino=49719, nlink=1, u/gid=48/48, size=0
Aug 26 12:09:25 localhost sendmail[7333]: j7Q49PDk007333: 1: fl=0x1, mode=20666: CHR: dev=0/13, ino=1980, nlink=1, u/gid=0/0, size=0
Aug 26 12:09:25 localhost sendmail[7333]: j7Q49PDk007333: 2: fl=0x2, mode=20666: CHR: dev=0/12, ino=268, nlink=1, u/gid=0/0, size=0
Aug 26 12:09:25 localhost sendmail[7333]: j7Q49PDk007333: 3: fl=0x2, mode=140777: SOCK localhost->[[UNIX: /dev/log]]
Aug 26 12:09:25 localhost sendmail[7333]: j7Q49PDk007333: 4: fl=0x1, mode=20666: CHR: dev=0/13, ino=1980, nlink=1, u/gid=0/0, size=0
Aug 26 12:09:25 localhost sendmail[7333]: j7Q49PDk007333: SYSERR(apache): queueup: cannot create queue file ./qfj7Q49PDk007333, euid=48, fd=-1, fp=0x0: Permission denied
 
Old 08-26-2005, 02:44 PM   #23
Tinkster
Moderator
 
Registered: Apr 2002
Location: earth
Distribution: slackware by choice, others too :} ... android.
Posts: 23,067
Blog Entries: 11

Rep: Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928Reputation: 928
Moved: This thread is more suitable in Programming, and has been moved accordingly to help your thread/question get the exposure it deserves.

I've also asked for it to be merged with your original thread,
please stick with where you started rather than scattering
your problems all over the place. Thx.

Original is here:
http://www.linuxquestions.org/questi...hreadid=356716
 
  


Reply



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
PHP Mail() function doesn't work Messiadbunny Linux - Software 4 06-11-2005 04:40 AM
How does the mail function work(PHP) Alexander.s Programming 1 05-15-2005 09:02 AM
PHP Mail and Foreach function Gerardoj Programming 6 10-08-2004 05:24 PM
PHP - mail function saravanan1979 Programming 2 08-06-2003 01:46 AM
Using the PHP mail() Function !?!? Hdata Programming 0 06-22-2003 06:02 AM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 12:20 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
Open Source Consulting | Domain Registration