Hi,
Good day to you all. I am trying to use rcp command to transfer some files on the remote machine. I have already setup .rhosts on my server and on the remote machine. When I do rcp I get this error message
rcmd_af: Lost connection
Is anybody familiar with this one? Thanks in advance.
... (3 Replies)
Every evening I run a script in AIX production box, which executes below command:
rcp prod_bkup.tar prodapp@IP:/data/appl/prod
This will rcp a backup of around 11 GB from production to another machine (runs every evening so overwrites previous one). Just to keep the backup safe. Since 2-3 days,... (0 Replies)
Hi All,
I am writing a shell script which will copy binaries from one remote server to local server.
I am using "rcp command". But "rcp" command asks for the login password when copying to local server.
Can anybody tell me how to pass the password through the shell script?
Thanks
... (2 Replies)
Hi friends,
Am trying to push a file on a remote server to my local host but getting "permission denied." error.
Please let me know the basic steps that i need to have a look at in order to let the "rcp" command work successfully.
Pl. Note:
Both the servers belong to Sun Solaris 10... (5 Replies)
I HAVE A PERL SCRIPT WHICH RCP files from one server to another. The script is not having any issues for years and it is running for more than 3 years . Last week it had failed with error "Command timed out " error. Please help me out (3 Replies)
hi,
When i use RCP command to copy filr from a different servers, it is showing as connection refused???
ca anyone help me out???
thanks,
Arun Manas:b: (2 Replies)
Hi
I have an ftp script which works fine when i execute through a test scheduler(UC4), but when i run it through the prod scheduler(UC4), it hungs indefinetely, when we cancel the job and re-run it it works perfectly fine. here is the code,, any idea why this is happening ????
... (1 Reply)
I have two servers A and B; A has redhat 5 and B has Suse10. Both of them has rhost file configuration. When i try to copy file from A to B that is OK but when try to copy from B to A i have an error: connection refused.
I installed rsh and rsh-server on server A and stop iptables service.
I need... (2 Replies)
I ran this script yesterday (in the background)
/usr/bin/nohup myfilelocation/myscriptname.sh &
the script worked perfectly.
i ran it today (also in the background) and just sat there. So i killed it and ran it normally and it worked perfectly.
Anyone suggest why it just sat there and... (8 Replies)
In the below perl executes if one file is processed perfect. However, when multiple files are processed in batch which is preferred I get the below error that I can not seem to fix it as the '' necessary for the command to execute, but seem to only work for one -arg option. Thank you :).
... (2 Replies)
Discussion started by: cmccabe
2 Replies
LEARN ABOUT OSX
rcp
RCP(1) BSD General Commands Manual RCP(1)NAME
rcp -- remote file copy
SYNOPSIS
rcp [-46p] source_file target_file
rcp [-46pr] source_file ... target_directory
DESCRIPTION
The rcp utility copies files between machines. Each source_file, target_file, or target_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 target_file are preserved if it already exists; otherwise the mode of the source file
modified 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.
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