Speaking of scp (was: set default file permissions for a directory)

Kuni Tetsu kuni_tetsu at yahoo.com
Mon Dec 12 08:44:01 EST 2005


--- Numberwhun <numberwhun at comcast.net> wrote:
> I have to agree with Jason on both counts.  I use scp on the Unix system 
> at work and when you ar specifying where you want to transfer to you 
> need to spefify the following:
> 
>     user@<ip or machine name>:/directory/on/other/machine

Speaking of scp, I have run into a situation and I am wondering if anyone else
has seen it or knows a solution. At the very least it might serve as a warning
to someone. I am getting an odd behavior when I scp a file from a RHEL 3.0AS
system through an automounted NFS drive (Client is RHEL 2.1AS, NFS server is
Tru64 Unix). 

If the user on the RHEL 2.1 system has not been logged on for a while (long
enough for the automount to expire), the first scp command I issue will create
files that have the right byte count, but "no content" - that is to say the
file is filled with 0's.

This is not a critical issue, since I can issue a ssh command to perform an ls
on the directory first which forces the directory to be automounted before
issuing the command. However, I thought to bring it up in case someone (a) ever
tries the scp through an automount, or (b) had run into this themselves and
might have some insight.


__________________________________________________
Do You Yahoo!?
Tired of spam?  Yahoo! Mail has the best spam protection around 
http://mail.yahoo.com 



More information about the gnhlug-discuss mailing list