Gnus development mailing list
 help / color / mirror / Atom feed
* sending queue mail make gnus segmentation fault.
@ 2008-07-05  1:55 anhnmncb
  0 siblings, 0 replies; only message in thread
From: anhnmncb @ 2008-07-05  1:55 UTC (permalink / raw)
  To: ding

I have a script for receiving and sending mails (Very ugly, could
someone help me to improve it? :p) :
----------------------------------------------
#!/bin/sh
[ -z "`ps -C emacs -F | grep gnus-agent-batch`" ] && emacs -Q -batch -l ~/.emacs.d/init-gnus.el -l ~/.emacs.d/dot.emacs/.defuns.el -f gnus-agent-batch >> /home/anhnmncb/.emacs.d/log/misc/gnus-agent-batch.log 2>&1 || $(kill -9 `ps -C emacs -F | grep gnus-agent-batch | awk '{print $2}'` && emacs -Q -batch -l ~/.emacs.d/init-gnus.el -l ~/.emacs.d/dot.emacs/.defuns.el -f gnus-agent-batch >> /home/anhnmncb/.emacs.d/log/misc/gnus-agent-batch.log 2>&1)
>----------------------------------------------
It works in this way: if the script isn't running, then fetch, send
mails and put the output to a log file. Otherwise, kill the script then
fetch and send mails.

This script works well for news sending, but when I use it for sending
mails, the log file says:
>----------------------------------------------
Reading active file from archive via nnfolder...done
Checking new news...
Checking new news...done
Sending message 1 of 1...
Sending via mail...
Fatal error (11)
>----------------------------------------------
And the console on which it is run, says:
>----------------------------------------------
$ .wm/sh/gnus_agent.sh
.wm/sh/gnus_agent.sh: line 7: 25607 Segmentation fault      emacs -Q -batch -l ~/.emacs.d/init-gnus.el -l ~/.emacs.d/dot.emacs/.defuns.el -f gnus-agent-batch >> /home/anhnmncb/.emacs.d/log/misc/gnus-agent-batch.log 2>&1
kill: usage: kill [-s sigspec | -n signum | -sigspec] pid | jobspec ... or kill -l [sigspec]
>----------------------------------------------
What's the problem?
-- 
Regards,

  anhnmncb
 gpg key: 44A31344




^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2008-07-05  1:55 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2008-07-05  1:55 sending queue mail make gnus segmentation fault anhnmncb

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).