GNU bug report logs - #23213
cp command with -P option odd behavior over ssh

Previous Next

Package: coreutils;

Reported by: Kousik Mandal <kousikmandal <at> gmail.com>

Date: Mon, 4 Apr 2016 11:14:02 UTC

Severity: normal

Done: Paul Eggert <eggert <at> cs.ucla.edu>

Bug is archived. No further changes may be made.

Full log


View this message in rfc822 format

From: help-debbugs <at> gnu.org (GNU bug Tracking System)
To: Paul Eggert <eggert <at> cs.ucla.edu>
Cc: tracker <at> debbugs.gnu.org
Subject: bug#23213: closed (cp command with -P option odd behavior over ssh)
Date: Mon, 04 Apr 2016 14:58:01 +0000
[Message part 1 (text/plain, inline)]
Your message dated Mon, 4 Apr 2016 07:57:40 -0700
with message-id <570280E4.7020106 <at> cs.ucla.edu>
and subject line Re: bug#23213: cp command with -P option odd behavior over ssh
has caused the debbugs.gnu.org bug report #23213,
regarding cp command with -P option odd behavior over ssh
to be marked as done.

(If you believe you have received this mail in error, please contact
help-debbugs <at> gnu.org.)


-- 
23213: http://debbugs.gnu.org/cgi/bugreport.cgi?bug=23213
GNU Bug Tracking System
Contact help-debbugs <at> gnu.org with problems
[Message part 2 (message/rfc822, inline)]
From: Kousik Mandal <kousikmandal <at> gmail.com>
To: bug-coreutils <at> gnu.org
Subject: cp command with -P option odd behavior over ssh
Date: Mon, 4 Apr 2016 16:42:57 +0530
[Message part 3 (text/plain, inline)]
Hi Team,

In Linux system, I have created /tmp/123 directory.
---snip---
mkdir -p /tmp/123
---snip---

/tmp/4576 is a non existent directory, now I am executing following cp
command
---snip---
cp -vPprf /tmp/123 /tmp/4576
`/tmp/123' -> `/tmp/4576'


ls /tmp/4576
123
---snip---

So above command is successfully copied directory 123 under /tmp/4576

Now I am trying to execute the same command over ssh

----snip---
[user1 <at> test~]$ ssh user1 <at> testsh -c  'cp -vPprf /tmp/123 /tmp/4576'
user1 <at> test's password:
cp: missing file arguments
Try `cp --help' for more information.
----snip---

but it's always failing. I have tried the same command on multiple Linux
system and found same failure.

Can you please help me why it's failing?
Is it a bug with cp -P option?
Are there any workaround mean any kind of configuration change is needed to
get it work?

Thanks,
Kousik
[Message part 4 (text/html, inline)]
[Message part 5 (message/rfc822, inline)]
From: Paul Eggert <eggert <at> cs.ucla.edu>
To: Kousik Mandal <kousikmandal <at> gmail.com>, 23213-done <at> debbugs.gnu.org
Subject: Re: bug#23213: cp command with -P option odd behavior over ssh
Date: Mon, 4 Apr 2016 07:57:40 -0700
On 04/04/2016 04:12 AM, Kousik Mandal wrote:
> [user1 <at> test~]$ ssh user1 <at> testsh -c  'cp -vPprf /tmp/123 /tmp/4576'

ssh -c takes a cipher-spec as an operand, not a command.


This bug report was last modified 9 years and 46 days ago.

Previous Next


GNU bug tracking system
Copyright (C) 1999 Darren O. Benham, 1997,2003 nCipher Corporation Ltd, 1994-97 Ian Jackson.