Gnus development mailing list
 help / color / mirror / Atom feed
From: anhnmncb <anhnmncb@sina.com>
To: ding@gnus.org
Subject: sending queue mail make gnus segmentation fault.
Date: Sat, 05 Jul 2008 09:55:26 +0800	[thread overview]
Message-ID: <87zloxqelt.fsf@gentoo.hasee.cpu> (raw)

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




                 reply	other threads:[~2008-07-05  1:55 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=87zloxqelt.fsf@gentoo.hasee.cpu \
    --to=anhnmncb@sina.com \
    --cc=ding@gnus.org \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).