07-29-2009
Quote:
Wouldn't scp demand a login and fail? Or does scp automatically succeed from host B to host A when host A is shelled into host B?
Yes, you're correct, it would require credentials. Going one way doesn't imply going the other will succeed. This could be done with the appropriate authorized_keys entries. I should have mentioned these requirements for a single command like that to work.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am facing a weired problem in my FTP script. I want to transfer multiple files from remote server to local server everyday, using mget * in my script. I also, want to send an email for successful or failed FTP. My script works for file transfer, but it don't send any mail. There is... (2 Replies)
Discussion started by: berlin_germany
2 Replies
2. UNIX for Dummies Questions & Answers
Hi Friends,
Could you please help me as per my requirement mentioned below ?
I have to copy files from one unix server to another unix server, and the files that i need to copy from the remote server are only those which are modified/created Today from abc directory on the remote server (1 Reply)
Discussion started by: ramask
1 Replies
3. UNIX for Dummies Questions & Answers
I just realize the only way is to download and upload again.. is not possible to copy them remotely with the ftp protocol ?
thanks (2 Replies)
Discussion started by: aneuryzma
2 Replies
4. Shell Programming and Scripting
We would be migrating unix solaries to Linux redhat.
Basically source is unix and target is linux.
i would like to copy entire file system unix/source/* to target linux/souce/*
but target linux has only folder setup so what ever files copied need to be placed in the linux server with same... (8 Replies)
Discussion started by: balajikalai
8 Replies
5. Shell Programming and Scripting
I need to pull down a good bit of files for another support team for an upgrade project. I have a server.list with all of the server names.
I need to do two parts:
FIRST:
I have this example, but it does not list the server name in front of each line.
#! /bin/bash
for server in $(<... (10 Replies)
Discussion started by: asnatlas
10 Replies
6. UNIX for Dummies Questions & Answers
Hi there,
I have a problem in my script,
I need to check whether file exists in remote server or not,
if the file exists, then stop copy
else copy the file to the server..
my code is something like this
while read $server
do
if ssh $server "cd $directory_name; if ; then echo "Error:... (2 Replies)
Discussion started by: beezy
2 Replies
7. UNIX for Dummies Questions & Answers
Hi experts,
I 'm newbie to unix world, now I have task to copy the latest files from remote server to my local. I believe this must be very common request in this community. I want you do it one more time for me please.
My requirement is something like this:
I receive files in the below... (3 Replies)
Discussion started by: parpaa
3 Replies
8. Solaris
Hi,
I am trying to automate the process of fetching files from remote server to local server through sftp. I have the username and password for the remote solaris server. But I need to give password manually everytime i run the script.
Can anyone help me in automating the script such that it... (3 Replies)
Discussion started by: ssk250
3 Replies
9. Shell Programming and Scripting
Hi All
I need to transfer a file from a UNIX server to a windows server.
I saw that it is possible to do this using scp command by looking at the forum listed below:
... (2 Replies)
Discussion started by: vx04
2 Replies
10. Shell Programming and Scripting
I have a script, which connecting to remote server and first checks, if the files are there by timestamp. If not I want the script exit without error. Below is a code
TARFILE=${NAME}.tar
TARGZFILE=${NAME}.tar.gz
ssh ${DESTSERVNAME} 'cd /export/home/iciprod/download/let/monthly;... (3 Replies)
Discussion started by: digioleg54
3 Replies
CFS(4) Kernel Interfaces Manual CFS(4)
NAME
cfs - cache file system
SYNOPSIS
cfs -s [-rd] [-f partition]
cfs -a netaddr [-rd] [-f partition] [mtpt]
DESCRIPTION
Cfs is a user-level file server that caches information about remote files onto a local disk. It is normally started by the kernel at boot
time, though users may start it manually. Cfs is interposed between the kernel and a network connection to a remote file server to improve
the efficiency of access across slow network connections such as modem lines. On each open of a file cfs checks the consistency of cached
information and discards any old information for that file.
Cfs mounts onto mtpt (default /) after connecting to the file server.
The options are:
s the connection to the remote file server is on file descriptors 0 and 1.
a netaddr
dial the destination netaddr to connect to a remote file server.
r reformat the cache disk partition.
d turn on debugging
f partition
use file partition as the cache disk partition.
All 9P messages except read, clone, and walk (see intro(5)) are passed through cfs unchanged to the remote server. A clone followed imme-
diately by a walk is converted into a clwalk. If possible, a read is satisfied by cached data. Otherwise, the file server is queried for
any missing data.
FILES
/dev/hd0cache
Default file used for storing cached data.
SOURCE
/sys/src/cmd/cfs
CFS(4)