> -------------------------------------------------------------------------- <
發信人: [email protected] (prolactin), 看板: Linux
標 題: Re: 如何把郵件作為另一個程式的標準輸入
發信站: 交大資科_BBS (Wed Dec 29 23:38:05 1999)
轉信站: Ptt!bbs.ee.ntu!freebsd.ntu!netnews.csie.nctu!news.cis.nctu!cis_nctu
> 我在 /etc/aliases 中加入一行
> user: "|myprogram"
> 但不成功
> 我想知怎樣才可以把收到的郵件第一時間轉到另一個程式,作為該程式的標準輸入
好像要在個別 user 的 $HOME/.forward 裏加上
"|exec your_program".
看看 procmail(1) 的 man page 也許有一點用處.
--
* Origin: ★ 交通大學資訊科學系 BBS ★ <bbs.cis.nctu.edu.tw: 140.113.23.3>
> -------------------------------------------------------------------------- <
發信人: "Singapore Fan" <[email protected]>, 看板: Linux
標 題: Re: 如何把郵件作為另一個程式的標準輸入
發信站: (null) (Wed Dec 29 23:56:26 1999)
轉信站: Ptt!bbs.ee.ntu!freebsd.ntu!News.Math.NCTU!newsfeed.stanford.edu!nntp.c
都用過了 結果跟我使用的方法一樣
----- The following addresses had permanent fatal errors -----
|/usr/local/bin/readmail
prolactin 撰寫於文章 <[email protected]>...
>
>> 我在 /etc/aliases 中加入一行
>> user: "|myprogram"
>> 但不成功
>> 我想知怎樣才可以把收到的郵件第一時間轉到另一個程式,作為該程式的標準輸入
>
> 好像要在個別 user 的 $HOME/.forward 裏加上
>
> "|exec your_program".
>
> 看看 procmail(1) 的 man page 也許有一點用處.
>--
> * Origin: ★ 交通大學資訊科學系 BBS ★ <bbs.cis.nctu.edu.tw: 140.113.23.3>
> -------------------------------------------------------------------------- <
發信人: [email protected] (小虫), 看板: Linux
標 題: Re: 如何把郵件作為另一個程式的標準輸入
發信站: 台大電機 Maxwell BBS (Thu Dec 30 00:27:14 1999)
轉信站: Ptt!bbs.ee.ntu!Maxwell
RedHat 6.x 嗎 ??
try "ln -s /usr/local/bin/readmail /etc/smrsh/"
refer to: /usr/doc/sendmail/README.smrsh
※ 引述《"Singapore Fan" <[email protected]>》之銘言:
: 都用過了 結果跟我使用的方法一樣
: ----- The following addresses had permanent fatal errors -----
: |/usr/local/bin/readmail
: prolactin 撰寫於文章 <[email protected]>...
: > 好像要在個別 user 的 $HOME/.forward 裏加上
: > "|exec your_program".
: > 看看 procmail(1) 的 man page 也許有一點用處.
: >--
: > * Origin: ★ 交通大學資訊科學系 BBS ★ <bbs.cis.nctu.edu.tw: 140.113.23.3>
--
rm -rf / tmp/bla
rm: cannot remove `tmp/bla': No such file or directory
--
※ Origin: 臺大電機 Maxwell 站 ◆ From: 140.112.54.179
> -------------------------------------------------------------------------- <
發信人: [email protected] (小州), 看板: Linux
標 題: Re: 如何把郵件作為另一個程式的標準輸入
發信站: CynixBBS. (Thu Dec 30 00:45:46 1999)
轉信站: Ptt!bbs.ee.ntu!news.ntu!feeder.seed.net.tw!spring!netnews.hinet.net!Cy
※ 引述《[email protected] (Singapore Fan)》之銘言:
> 我在 /etc/aliases 中加入一行
> user: "|myprogram"
> 但不成功
> 我想知怎樣才可以把收到的郵件第一時間轉到另一個程式,作為該程式的標準輸入
> 請高手指教
以目前的 sendmail 來說,執行某個程式,都是設定使用 smrsh 這個程式
來執行的。而這個程式使用上有所限制,你無法任意執行某個程式,除非
有開放 smrsh 允許可以呼叫你所指定的外部程式。
以 sendmail 8.9.x 來說,要開放 smrsh 可以呼叫某個程式,那 /etc/smrsh
目錄內必須存放一份可以被呼叫的執行檔,或者是使用 symlink 的方式建立
可以被呼叫的檔案名稱,如此該程式才可以被 smrsh 程式所呼叫執行。
--
相信一種真誠存在於心與心之間...
--
※ Origin: 碩誠資訊 <bbs.cynix.com.tw>
◆ From: local.cynix.com.tw
> -------------------------------------------------------------------------- <
發信人: "Singapore Fan" <[email protected]>, 看板: Linux
標 題: Re: 如何把郵件作為另一個程式的標準輸入
發信站: (null) (Thu Dec 30 21:40:39 1999)
轉信站: Ptt!bbs.ee.ntu!freebsd.ntu!News.Math.NCTU!news-spur1.maxwell.syr.edu!n
成功了 謝謝 :)
小虫 撰寫於文章 <[email protected]>...
>
> RedHat 6.x 嗎 ??
>
> try "ln -s /usr/local/bin/readmail /etc/smrsh/"
>
> refer to: /usr/doc/sendmail/README.smrsh
>
>
>※ 引述《"Singapore Fan" <[email protected]>》之銘言:
>: 都用過了 結果跟我使用的方法一樣
>: ----- The following addresses had permanent fatal errors -----
>: |/usr/local/bin/readmail
>: prolactin 撰寫於文章 <[email protected]>...
>: > 好像要在個別 user 的 $HOME/.forward 裏加上
>: > "|exec your_program".
>: > 看看 procmail(1) 的 man page 也許有一點用處.
>: >--
>: > * Origin: ★ 交通大學資訊科學系 BBS ★ <bbs.cis.nctu.edu.tw:
140.113.23.3>
>
>--
>rm -rf / tmp/bla
>rm: cannot remove `tmp/bla': No such file or directory
>--
>※ Origin: 臺大電機 Maxwell 站 ◆ From: 140.112.54.179
> -------------------------------------------------------------------------- <
發信人: "Singapore Fan" <[email protected]>, 看板: Linux
標 題: Re: 如何把郵件作為另一個程式的標準輸入
發信站: (null) (Thu Dec 30 21:40:45 1999)
轉信站: Ptt!bbs.ee.ntu!freebsd.ntu!News.Math.NCTU!news-spur1.maxwell.syr.edu!n
成功了 謝謝 :)
小州 撰寫於文章 <[email protected]>...
>※ 引述《[email protected] (Singapore Fan)》之銘言:
>> 我在 /etc/aliases 中加入一行
>> user: "|myprogram"
>> 但不成功
>> 我想知怎樣才可以把收到的郵件第一時間轉到另一個程式,作為該程式的標準輸入
>> 請高手指教
>
> 以目前的 sendmail 來說,執行某個程式,都是設定使用 smrsh 這個程式
> 來執行的。而這個程式使用上有所限制,你無法任意執行某個程式,除非
> 有開放 smrsh 允許可以呼叫你所指定的外部程式。
>
> 以 sendmail 8.9.x 來說,要開放 smrsh 可以呼叫某個程式,那 /etc/smrsh
> 目錄內必須存放一份可以被呼叫的執行檔,或者是使用 symlink 的方式建立
> 可以被呼叫的檔案名稱,如此該程式才可以被 smrsh 程式所呼叫執行。
>
>--
> 相信一種真誠存在於心與心之間...
>--
>※ Origin: 碩誠資訊 <bbs.cynix.com.tw>
>◆ From: local.cynix.com.tw
我在 /etc/aliases 中加入一行
user: "|myprogram"
但不成功
我想知怎樣才可以把收到的郵件第一時間轉到另一個程式,作為該程式的標準輸入
請高手指教