all messages for Emacs-related lists mirrored at yhetil.org
 help / color / mirror / code / Atom feed
From: "D Goel" <deego@gnufans.org>
Cc: emacs-devel@gnu.org
Subject: Re: Feature request/wishlist: allowing external processes to accept input in script mode
Date: Wed, 26 Oct 2005 10:57:45 -0400	[thread overview]
Message-ID: <87wtk0wck6.fsf@gnufans.net> (raw)
In-Reply-To: <jefyqprw7a.fsf@sykes.suse.de> (Andreas Schwab's message of "Wed, 26 Oct 2005 01:52:25 +0200")



Andreas Schwab <schwab@suse.de> writes:

> "D Goel" <deego@gnufans.org> writes:
>
>> Now we call the above bash script from an emacs script, in various
>> ways:
>>
>> ----
>> #!/usr/local/bin/emacscvs --script
>>
>>
>> (setq a (call-process "y-or-n-p-my" nil t  t "Question"))
>
> You explicitly tell that input for the process should come from /dev/null,
> so this works as expected.

I certainly agree with that. I supplied nil for infile above.
My question is: what argument can I supply as infile so that when the
external process expects an input, it actually accepts input from
stdin?

As far as I can tell, infile can only be a file, or nil. 

  reply	other threads:[~2005-10-26 14:57 UTC|newest]

Thread overview: 5+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2005-10-25 23:16 Feature request/wishlist: allowing external processes to accept input in script mode D Goel
2005-10-25 23:52 ` Andreas Schwab
2005-10-26 14:57   ` D Goel [this message]
2005-10-26 15:54     ` Kevin Rodgers
2005-10-27  1:29 ` Richard M. Stallman

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=87wtk0wck6.fsf@gnufans.net \
    --to=deego@gnufans.org \
    --cc=emacs-devel@gnu.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.
Code repositories for project(s) associated with this external index

	https://git.savannah.gnu.org/cgit/emacs.git
	https://git.savannah.gnu.org/cgit/emacs/org-mode.git

This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.