11-05-2004
Hi Jim,
Thanks a lot for your suggestion :-)
I used 'rsh <remote server> mkdir -p <remote dir>' and it worked fine. Think, remsh should have done the same for me...
Hey I dont think 'rcp' could create subdirectories on a remote system. Tried it out and failed saying 'No such file or directory'
Thanks again...
10 More Discussions You Might Find Interesting
1. UNIX for Advanced & Expert Users
Hi Friends,
I am trying to move some files from one directory to another.
but if the destination directory doesnt exist then i have to create one and then move files to that.
For this i have to write a script.
please help.
thanks in advance
Veera (4 Replies)
Discussion started by: sveera
4 Replies
2. UNIX for Dummies Questions & Answers
I have a couple thousand data files that all have to have there own directory named exactly the same as the file name. Then the file needs to be moved to that directory. For example files test1.mat, test2.mat, test3.mat in directory X need to have directories test1, test2, test3 created... (6 Replies)
Discussion started by: AeroEngy
6 Replies
3. Programming
hi all
i have a file with server id's and I need to create a directory corresponding to each server id listed in the text file.
eg:
id directory name
1 node_1
2 ... (6 Replies)
Discussion started by: mridula
6 Replies
4. AIX
Is it possible to create a Filesystem with the mount point over an existing Directory, without loosing the data in the Directory?
eg:-
/u01 -> /pmmpd/u01 (Directory with soft link)
/pmmpd/u01 (Need to create this filesystem, without loosing data)
Thanks
TheDoc (0 Replies)
Discussion started by: TheDoc
0 Replies
5. Shell Programming and Scripting
Hiiii,
here is my script--
BackupLocation="$OPTARG"
if ]; then
echo "Either option l or L should be given to $Programname"
echo "$Usage"
echo "$Programname is terminated"
... (1 Reply)
Discussion started by: namishtiwari
1 Replies
6. AIX
Guy's
I'm trying to configure new remote printer by smitty in AIX 6.1 but I'm facing below message !
and creating did not completed ... can you please help in this !
Command: failed stdout: yes stderr: no
Before command completion, additional instructions may appear below.
digest:... (2 Replies)
Discussion started by: ITHelper
2 Replies
7. Shell Programming and Scripting
what's the command to find the creation date of a certain dirctory? (1 Reply)
Discussion started by: miss_dodi
1 Replies
8. Shell Programming and Scripting
Hi All,
I want to search for .log files from folders and sub folders in remote server and FTP them to one particular folder in the local machine. I dont want to copy the entire directory tree structure, just have to take all the .log files from all the folders by doing a recursive search from the... (3 Replies)
Discussion started by: dassv
3 Replies
9. UNIX for Beginners Questions & Answers
Hi All,
I am facing a strange scenario. I upgraded my server version to new version of linux. After the when I create a directory it is created with . in the the permission . What is the reason and how to fix .
$ mkdir test
$ ls -l
total 0
drwxr-xr-x. 2 uk01 users 6 Dec 7 03:49 test
... (1 Reply)
Discussion started by: arunkumar_mca
1 Replies
10. Shell Programming and Scripting
i read here that linux provides no way to determine when a directory was created.
https://www.unix.com/shell-programming-and-scripting/157874-creation-date-directory.htmlI have a directory /home/andy/scripts that had a README file in it.
That file says
I put the script in that directory and... (3 Replies)
Discussion started by: drew77
3 Replies
RCP(1) BSD General Commands Manual RCP(1)
NAME
rcp -- remote file copy
SYNOPSIS
rcp [-46p] file1 file2
rcp [-46pr] file ... directory
DESCRIPTION
The rcp utility copies files between machines. Each file or directory argument is either a remote file name of the form
``ruser@rhost:path'', or a local file name (containing no ':' characters, or a '/' before any ':'s).
The following options are available:
-4 Use IPv4 addresses only.
-6 Use IPv6 addresses only.
-p Cause rcp to attempt to preserve (duplicate) in its copies the modification times and modes of the source files, ignoring the
umask(2). By default, the mode and owner of file2 are preserved if it already existed; otherwise the mode of the source file modi-
fied by the umask(2) on the destination host is used.
-r If any of the source files are directories, rcp copies each subtree rooted at that name; in this case the destination must be a
directory.
If path is not a full path name, it is interpreted relative to the login directory of the specified user ruser on rhost, or your current user
name if no other remote user name is specified. A path on a remote host may be quoted (using '', '"', or ''') so that the metacharacters
are interpreted remotely.
The rcp utility does not prompt for passwords; it performs remote execution via rsh(1), and requires the same authorization.
The rcp utility handles third party copies, where neither source nor target files are on the current machine.
SEE ALSO
cp(1), ftp(1), rlogin(1), rsh(1), hosts.equiv(5)
HISTORY
The rcp command appeared in 4.2BSD. The version of rcp described here has been reimplemented with Kerberos in 4.3BSD-Reno.
BUGS
Does not detect all cases where the target of a copy might be a file in cases where only a directory should be legal.
Is confused by any output generated by commands in a .login, .profile, or .cshrc file on the remote host.
The destination user and hostname may have to be specified as ``rhost.ruser'' when the destination machine is running the 4.2BSD version of
rcp.
BSD
October 16, 2002 BSD