Operating System - HP-UX
1745782 Members
3598 Online
108722 Solutions
New Discussion юеВ

scp not working for particular folder

 
frnddev
Occasional Contributor

scp not working for particular folder

hi
i am trying to scp from one server to other.its working for other directories but for a particular directory its not working. it is not prompting for password n neither throwing any error.
can anyone please help
5 REPLIES 5
Rita C Workman
Honored Contributor

Re: scp not working for particular folder

My first thought is...check permissions.

Rgrds,
Rita
Steven Schweda
Honored Contributor

Re: scp not working for particular folder

> [...] one server [...] other [...]

Not very detailed descriptions of anything.

uname -a
ssh -V

> i am trying to scp [...] it[']s not
> working.

Not a useful problem description. It does
not say what you did. It does not say what
happened when you did it. As usual, showing
actual commands with their actual output can
be more helpful than vague descriptions or
interpretations.

> can anyone please help

Given almost no useful information, I
wouldn't bet on it. We non-psychics can't
see what you did, which files exist where,
who owns what, what any permissions are,
what's different between "other directories"
and "a particular directory", or anything
else, unless you show us.

Adding "-v" (or "-vv", ...) to an "scp"
command can provide some diagnostic messages,
but they tend to be more valuable for
problems with authentication, which does not
seem to be your problem.
Dennis Handly
Acclaimed Contributor

Re: scp not working for particular folder

Are these particular directories the source or target of the copy? Also, are you pushing or pulling the files?
If you don't get an error, what is the exit status?
frnddev
Occasional Contributor

Re: scp not working for particular folder

when i am doing
scp -pr source_folder user@destination server
it's not throwing any error, neither is it prompting for the password nor is it copying the files.
But wen i use full command path i.e usr/bin/scp -pr source_folder user@destination server
then it is working fine.
outside this directory the command works as fine with "scp" only,i need not use the full path there.
Steven Schweda
Honored Contributor

Re: scp not working for particular folder

> But wen i use full command path i.e usr/bin/scp -pr source_folder
> user@destination server then it is working fine.

That was actually "/usr/bin/scp"?

> outside this directory the command works as fine with "scp" only,i
> need not use the full path there.

You've solved the problem.

Which shell are you using?

type scp
and/or:
which scp
and/or:
whence scp

(Inside and outside this special directory.)

echo $PATH

Having "." on your PATH is not always a good idea. Having "." on your
PATH _before_ the normal directories (like, say, "/usr/bin") may be an
especially not-good idea.