From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.emacs.gnus.general/46357 Path: main.gmane.org!not-for-mail From: Alexander Kotelnikov Newsgroups: gmane.emacs.gnus.general Subject: Re: emacs -batch -l ~/.emacs -f gnus-agent-batch Date: Tue, 03 Sep 2002 17:23:28 +0400 Organization: Debian Project Sender: owner-ding@hpc.uh.edu Message-ID: <87ptvvurzj.fsf@giotto.sj.ru> References: <87it1na5d5.fsf@pale.loc> <87elcb9y7n.fsf@pale.loc> NNTP-Posting-Host: localhost.gmane.org Mime-Version: 1.0 Content-Type: text/plain; charset=iso-8859-15 Content-Transfer-Encoding: quoted-printable X-Trace: main.gmane.org 1031059281 6728 127.0.0.1 (3 Sep 2002 13:21:21 GMT) X-Complaints-To: usenet@main.gmane.org NNTP-Posting-Date: Tue, 3 Sep 2002 13:21:21 +0000 (UTC) Return-path: Original-Received: from malifon.math.uh.edu ([129.7.128.13]) by main.gmane.org with esmtp (Exim 3.35 #1 (Debian)) id 17mDcN-0001kH-00 for ; Tue, 03 Sep 2002 15:21:19 +0200 Original-Received: from sina.hpc.uh.edu ([129.7.128.10] ident=lists) by malifon.math.uh.edu with esmtp (Exim 3.20 #1) id 17mDdC-00009e-00; Tue, 03 Sep 2002 08:22:10 -0500 Original-Received: by sina.hpc.uh.edu (TLB v0.09a (1.20 tibbs 1996/10/09 22:03:07)); Tue, 03 Sep 2002 08:22:45 -0500 (CDT) Original-Received: from sclp3.sclp.com (qmailr@sclp3.sclp.com [209.196.61.66]) by sina.hpc.uh.edu (8.9.3/8.9.3) with SMTP id IAA25385 for ; Tue, 3 Sep 2002 08:22:31 -0500 (CDT) Original-Received: (qmail 28046 invoked by alias); 3 Sep 2002 13:21:51 -0000 Original-Received: (qmail 28041 invoked from network); 3 Sep 2002 13:21:50 -0000 Original-Received: from pet-relcom.softjoys.ru (HELO pet.softjoys.ru) (212.113.101.73) by gnus.org with SMTP; 3 Sep 2002 13:21:50 -0000 Original-Received: from giotto.sj.ru (giotto-pu.sj.ru [193.125.217.22] (may be forged)) by pet.softjoys.ru (8.11.0/8.11.0) with ESMTP id g83DNvo88392 for ; Tue, 3 Sep 2002 17:23:57 +0400 (MSD) Original-Received: from giotto.sj.ru (sacha@localhost [127.0.0.1]) by giotto.sj.ru (8.12.3/8.12.3/Debian -4) with ESMTP id g83DNS0m015028 (version=TLSv1/SSLv3 cipher=EDH-RSA-DES-CBC3-SHA bits=168 verify=FAIL) for ; Tue, 3 Sep 2002 17:23:28 +0400 Original-Received: (from sacha@localhost) by giotto.sj.ru (8.12.3/8.12.3/Debian -4) id g83DNSsf015027; Tue, 3 Sep 2002 17:23:28 +0400 Original-To: ding@gnus.org X-Face: (uU)eOi[yT~l(bwno'Pl_Z-MbLa:<"SX"r]IQb3zJ8G[n(PGcwS^;\?oSN~iz{IrR3`=_A- ]ghp.+wSOFa}KX@4m{Nl!yP)&v;o8~ (Kai.Grossjohann@CS.Uni-Dortmund.DE's message of "Tue, 03 Sep 2002 14:18:17 +0200") Original-Lines: 43 User-Agent: Gnus/5.090007 (Oort Gnus v0.07) Emacs/21.2 (i386-debian-linux-gnu) Precedence: list X-Majordomo: 1.94.jlt7 Xref: main.gmane.org gmane.emacs.gnus.general:46357 X-Report-Spam: http://spam.gmane.org/gmane.emacs.gnus.general:46357 >>>>> On Tue, 03 Sep 2002 14:18:17 +0200 >>>>> "KG" =3D=3D Kai Gro=DFjohann wro= te: KG>=20 KG> Alexander Kotelnikov writes: >>>>>>> On Tue, 03 Sep 2002 11:26:00 +0200 >>>>>>> "KG" =3D=3D Kai Gro=DFjohann w= rote: KG>=20 KG> Alexander Kotelnikov writes: >>>> imap: Opening IMAP connection with `ssh -q %s /usr/sbin/imapd'... KG>=20 KG> Can you run this command from the shell with no controlling terminal? >>=20 >> Actually, I do not understand the question. >>=20 >> I am able to run the command throm shell. But I am not able to run it, >> for instance, with cron. Simple way to replroduce the problem is to >> put /dev/null on the command's stdin while running it from shell. KG>=20 KG> Yes, I meant whether it is possible to run KG>=20 KG> ssh -q %s /usr/sbin/imapd ^^^^^^^^^^ KG>=20 KG> I underlined the important part, and the %s needs to be replaced with KG> something else, of course. KG>=20 KG> Now here is my reasoning: KG>=20 KG> It does not work to let "ssh -q ... /usr/sbin/imapd" read from KG> /dev/null, probably because the command needs some input. The need KG> for input doesn't go away by letting it run under Emacs, so you KG> shouldn't be surprised that letting Emacs (and thus, sshd) read from KG> /dev/null doesn't work, either. KG>=20 KG> Or am I misunderstanding something? Hm... I think something is wrong here. emacs/gnus should read not the input on console, but the output of ssh -q %s /usr/sbin/imapd. The latter command do not want any input, since ssh auth is made via keys. --=20 Alexander Kotelnikov Saint-Petersburg, Russia