10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Appreciate help for the below issue.
Im using below code.....I dont want to attach the logs when I ran the perl twice...I just want to take backup with today date and generate new logs...What I need to do for the below scirpt..............
1)if logs exist it should move the logs with extention... (1 Reply)
Discussion started by: Sanjeev G
1 Replies
2. Shell Programming and Scripting
what different between two instruction
cp -r
rcp -r (1 Reply)
Discussion started by: tamer11007
1 Replies
3. Shell Programming and Scripting
Hi,
When I try to use rcp I donīt recieve the file I try to fetch.
I donīt get any error message, it just execute and as far as I can tell doesnīt do anything.
I have no problem with using remsh to list the directory.
remsh 132.196.133.185 -l root ls
xdpyinfo: unable to open display... (7 Replies)
Discussion started by: mr_andrew
7 Replies
4. Shell Programming and Scripting
Hi
I am using rcp command to copy the file one linux to other linux machine
I need the ouput log for this
like 1 file coied
size of the file
date stamp
my copy comman is
rcp 10.100.11.2:/u01/pr/uni.txt /u05/ryd/uni.txt
once this script run
i need to capture the... (3 Replies)
Discussion started by: aboorkuma
3 Replies
5. Shell Programming and Scripting
Hi,
I am trying to write a script which would go search and get the info from the logs based on yesterday timestamp and write yesterday logs in new file. The log file format is as follows:
""""""""""""""""""""""""""... (3 Replies)
Discussion started by: harish.parker
3 Replies
6. UNIX for Advanced & Expert Users
Hi,
The B machine is using rcp method to copy a file to A machine.
But it is not getting copied.
Its giving the error as:
remshd: Login incorrect.
On A machine rhosts file has details about the B machine.
Could anyone tell what could be done to make this work?
Any help is appreciated.... (1 Reply)
Discussion started by: nehak
1 Replies
7. Shell Programming and Scripting
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)
Discussion started by: amitrajvarma
2 Replies
8. UNIX for Dummies Questions & Answers
I am trying to set up RCP so root can access a few machines for file transfer. On the target machine, I have set up a .RHOSTS file that looks like:
10.33.1.59 root
However when I try to use RCP to copy a file to this machine, I get permission denied. Is it possible since another user is... (1 Reply)
Discussion started by: hshapiro
1 Replies
9. UNIX for Advanced & Expert Users
I'm trying to perform a rcp to a remote machine, but it keeps throwing up "LOGNAME: undefined variable" error. When I echo $LOGNAME, it comes up with my username. I have tried setting both the .rhosts and the .hosts.equiv file but to no avail (on both machines as well out of desperation!). Anyone... (8 Replies)
Discussion started by: divid_gil
8 Replies
10. UNIX for Dummies Questions & Answers
I am installing 5.0.7 on an existing SCO network. The 2 other machines are using 5.0.5 and rcp works daily both ways between the 2 older machines.
However I cannot copy from either machine running 5.0.5 to the new 5.0.7 machine - "Permission Denied"
/etc/hosts is configured correctly... (4 Replies)
Discussion started by: farmacy
4 Replies
rcp(1c) rcp(1c)
Name
rcp - remote file copy
Syntax
rcp [ -p ] file1 file2
rcp [-r] [-p] file... directory
Description
The command copies files between machines. Each file or directory argument is either a remote file name of the form rhost:path, or a local
file name. Local file names do not contain colons (:) or backslashes () before colons.
Note that the command refuses to copy a file onto itself.
If path is not a full path name, it is interpreted relative to your login directory on rhost. To ensure that the metacharacters are inter-
preted remotely, a remote host's path can be quoted by either using a backslash () before a single character, or enclosing character
strings in double (") or single (') quotes.
The command does not prompt for passwords; your current local user name must exist on rhost and allow remote command execution via
The command handles third party copies, where neither source nor target files are on the current machine. Hostnames may also take the form
rname@rhost to use rname rather than the current user name on the remote host. The following example shows how to copy the file foo from
user1@mach1 to user2@mach2:
$ rcp user1@mach1:foo user2@mach2:foo
Note that the file .rhosts on mach2 in user2's account must include an entry for mach1 user1. Also note that it may be necessary for the
person implementing the command to be listed in the .rhosts file for mach1 user1.
By default, the mode and owner of file2 are preserved if file2 already exists. Otherwise, the mode of the source file modified by on the
destination host is used.
Options
-p Preserves the modification times and modes of the source files in its copies, ignoring the
-r Copies files in all subdirectories recursively, if the file to be copied is a directory. In this case the destination must be a
directory.
Restrictions
The command is confused by output generated by commands in a .cshrc file on the remote host. In particular, `where are you?' and `stty:
Can't assign requested address' are messages which can result if output is generated by the startup file.
See Also
ftp(1c), rlogin(1c), rsh(1c)
rcp(1c)