help-gnu-emacs
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: shell-command


From: tomas
Subject: Re: shell-command
Date: Tue, 10 Jan 2017 13:02:32 +0100
User-agent: Mutt/1.5.21 (2010-09-15)

-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

On Tue, Jan 10, 2017 at 12:17:49PM +0100, Matthias Pfeifer wrote:
> Hi There,
> 
> I have following issue and wonder if sombody can help out:
> 
> I am calling shell-command interactively without prefix argument. The help
> text says
> 
> (shell-command COMMAND &optional OUTPUT-BUFFER ERROR-BUFFER)
> 
> Execute string COMMAND in inferior shell; display output, if any.
> With prefix argument, insert the COMMAND’s output at point.
> 
> The command that I call copies a couple of files (around 20-30 files) via
> scp. A sample line from the output of the command when I call it in a xterm
> terminal window looks like this:
> 
> file    100%    123kb      123KB/s     00:00
> 
> However emacs keeps telling me "Shell command succeeded with no output."
> and the *Shell Command Output* buffer is in fact empty. I wonder where the
> output goes?

To stderr.

Try this:

  scp -rv foo@bar:~/some-dir /tmp > one 2>two

and look at files "one" and "two".

So either you wrap your scp in some kind of redirection or you look
into the ERROR-BUFFER.

Regards
- -- tomás
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.12 (GNU/Linux)

iEYEARECAAYFAlh0zVgACgkQBcgs9XrR2kaR6ACfRhXNfz5ctWvEYyv/5XfnI2FX
JR4An0UeZ8PYTMlWOz/wWlZsL3p/qZIk
=fZFY
-----END PGP SIGNATURE-----



reply via email to

[Prev in Thread] Current Thread [Next in Thread]