Gnus development mailing list
 help / color / mirror / Atom feed
* cron & emacs -batch -l ~/.emacs -f gnus-agent-batch
@ 2002-08-14 19:24 Alexander Kotelnikov
  2002-08-14 20:11 ` Simon Josefsson
  0 siblings, 1 reply; 3+ messages in thread
From: Alexander Kotelnikov @ 2002-08-14 19:24 UTC (permalink / raw)


Hello.

I got troubles while putting
emacs -batch -l ~/.emacs -f gnus-agent-batch
in my crontab. The trouble is that when using (nnimap-stream shell)
emacs receives hangup when cron runs this command. It is easyly
reproduceble from shell, just run
emacs -batch -l ~/.emacs -f gnus-agent-batch </dev/null

This is rather strange, since this command does not require any
interaction with user, so no terminal is really needed.

PS Still not subscribed, so, please, Cc.

Thanks,
-- 
Alexander Kotelnikov
Saint-Petersburg, Russia



^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: cron & emacs -batch -l ~/.emacs -f gnus-agent-batch
  2002-08-14 19:24 cron & emacs -batch -l ~/.emacs -f gnus-agent-batch Alexander Kotelnikov
@ 2002-08-14 20:11 ` Simon Josefsson
  2002-08-14 21:55   ` Alexander Kotelnikov
  0 siblings, 1 reply; 3+ messages in thread
From: Simon Josefsson @ 2002-08-14 20:11 UTC (permalink / raw)
  Cc: ding

Alexander Kotelnikov <sacha@giotto.sj.ru> writes:

> I got troubles while putting
> emacs -batch -l ~/.emacs -f gnus-agent-batch
> in my crontab. The trouble is that when using (nnimap-stream shell)
> emacs receives hangup when cron runs this command. It is easyly
> reproduceble from shell, just run
> emacs -batch -l ~/.emacs -f gnus-agent-batch </dev/null
>
> This is rather strange, since this command does not require any
> interaction with user, so no terminal is really needed.

Does the patch below together with (setq imap-process-connection-type
t) help?  Just a long shot.

--- imap.el.~6.39.~	2002-08-12 23:09:16.000000000 +0200
+++ imap.el	2002-08-14 22:09:08.000000000 +0200
@@ -215,7 +213,8 @@
   :type '(repeat string))
 
 (defcustom imap-process-connection-type nil
-  "*Value for `process-connection-type' to use for Kerberos4 and GSSAPI."
+  "*Value for `process-connection-type' to use for process streams.
+The \"process streams\" include Kerberos4, GSSAPI and shell."
   :group 'imap
   :type 'boolean)
 
@@ -681,6 +686,7 @@
       (let* ((port (or port imap-default-port))
 	     (coding-system-for-read imap-coding-system-for-read)
 	     (coding-system-for-write imap-coding-system-for-write)
+	     (process-connection-type imap-process-connection-type)
 	     (process (start-process
 		       name buffer shell-file-name shell-command-switch
 		       (format-spec




^ permalink raw reply	[flat|nested] 3+ messages in thread

* Re: cron & emacs -batch -l ~/.emacs -f gnus-agent-batch
  2002-08-14 20:11 ` Simon Josefsson
@ 2002-08-14 21:55   ` Alexander Kotelnikov
  0 siblings, 0 replies; 3+ messages in thread
From: Alexander Kotelnikov @ 2002-08-14 21:55 UTC (permalink / raw)


>>>>> On Wed, 14 Aug 2002 22:11:19 +0200
>>>>> "SJ" == Simon Josefsson <jas@extundo.com> wrote:
SJ> 
SJ> Alexander Kotelnikov <sacha@giotto.sj.ru> writes:
>> I got troubles while putting
>> emacs -batch -l ~/.emacs -f gnus-agent-batch
>> in my crontab. The trouble is that when using (nnimap-stream shell)
>> emacs receives hangup when cron runs this command. It is easyly
>> reproduceble from shell, just run
>> emacs -batch -l ~/.emacs -f gnus-agent-batch </dev/null
>> 
>> This is rather strange, since this command does not require any
>> interaction with user, so no terminal is really needed.
SJ> 
SJ> Does the patch below together with (setq imap-process-connection-type
SJ> t) help?  Just a long shot.

No, it does not.

BTW, I've noticed, that  emacs -batch -l ~/.emacs -f gnus-agent-batch
can ask a question about syncing flags with server.

-- 
Alexander Kotelnikov
Saint-Petersburg, Russia



^ permalink raw reply	[flat|nested] 3+ messages in thread

end of thread, other threads:[~2002-08-14 21:55 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2002-08-14 19:24 cron & emacs -batch -l ~/.emacs -f gnus-agent-batch Alexander Kotelnikov
2002-08-14 20:11 ` Simon Josefsson
2002-08-14 21:55   ` Alexander Kotelnikov

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).