2007年7月4日 星期三

set environment variable to the command

[will@localhost config]$ cat sendmail.sh
#!/bin/sh

LIST="a b c d e"

for list in $LIST; do\

cat /home/will/log.txt | LD_LIBRARY_PATH=/usr/local/lib /home/will/smtpsend $list > /dev/null 2>&1; \
done;

沒有留言:

網誌存檔

關於我自己