05-02-2013
ok, could you please guide me what are the steps that i have to do to copy a file from my local server to remote server?
so that i can implement in shell script.
10 More Discussions You Might Find Interesting
1. Solaris
Hi all,
i am copying .gz files from production server to development server using
"scp" command.my requirement is after copying .gz files i want to delete old
.gz files(two days back) in development server from production server.
like this way i need to delelte .log ,.z and .dmp files... (3 Replies)
Discussion started by: krishna176
3 Replies
2. UNIX for Advanced & Expert Users
Hi,
Just wanted to know, how can I ftp/transfer/copy a (design.tar.gz) archive from a Unix Server (sdmc222.sdmc.cp-srv.com) which is at a remote location, to my Windows Desktop. Obviously, it is not possible at cmd prompt on my Windows using the following commands :-
ftp... (3 Replies)
Discussion started by: marconi
3 Replies
3. UNIX for Dummies Questions & Answers
Don't know if its correct to write into this topic but how can I copy files from a Windows machine to a UNIX system? (2 Replies)
Discussion started by: agasamapetilon
2 Replies
4. UNIX for Advanced & Expert Users
I do a ssh to remote host(A1) from local host(L1). I then ssh to another remote(A2) from A1.
When I do a who -m from A2, I see the "connected from" as "A1".
=> who -m
userid pts/2 2010-03-27 08:47 (A1)
I want to identify who is the local host who initiated the connection to... (3 Replies)
Discussion started by: gomes1333
3 Replies
5. Shell Programming and Scripting
hi
I have a script to login from a host "A" to a list of hosts in a file and perform some commands inside it...its somethin like this
for i in `cat file`
do
ssh -t $i " command1 ; command2; ..."
done
I wanna save the outputs in a file in the current host "A" i.e from where I am... (3 Replies)
Discussion started by: ningy
3 Replies
6. 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
7. Shell Programming and Scripting
Hi
I need a advice for writing simple bash script,
I have a file pod.txt which contains source location and remote location:
/mnt/infile/20141103/701_0001.png/remote/tmp/pk21730/p0330223723074.png
/mnt/infile/20141103/203_0001.png/remote/tmp/pk21731/p0330223723081.png
and I must copy ... (6 Replies)
Discussion started by: primo102
6 Replies
8. Solaris
Am trying to copy a tar file onto a series of remote hosts and untar it at the destination. Need to do this without having to do multiple ssh.
Actions to perform within a single ssh session via shell script
- copy a file
- untar at destination (remote host)
OS : Linux RHEL6 (3 Replies)
Discussion started by: sankasu
3 Replies
9. Shell Programming and Scripting
Hello all,
i'm trying to create a report by greping a pattern on multiple remote hosts and creta a simple report,
actually i did this, is ther any better way to do this.
#!/bin/bash
for host in `cat RemoteHosts`
do
ssh $host -C 'hostname 2>&1; grep ERROR /var/log/WebServer.log.2019-09-21... (0 Replies)
Discussion started by: charli1
0 Replies
10. Shell Programming and Scripting
I'm trying to copy a file myfile.scr from my local Linux server to multiple folders on remote AiX server using single rsync command.
Below command helps me copy the file "myfile.scr" from my localhost to a remote host folder "/app/deployment/tmpfiles"
rsync --delay-updates -F --compress... (1 Reply)
Discussion started by: mohtashims
1 Replies
rhosts(4) Kernel Interfaces Manual rhosts(4)
NAME
rhosts, .rhosts - Specifies remote users that can use a local user account
SYNOPSIS
$HOME/.rhosts
DESCRIPTION
The .rhosts file contains a list of remote users who are not required to supply a login password when they execute the rcp, rlogin, and rsh
commands using a local user account.
The .rhosts file is a hidden file in your home directory. It must be owned by you or the root user and it must not be writable by group or
world, otherwise, it is not used. Moreover, although it is not required, it is sensible to set the permissions of the file to 600, so the
file is not readable by group or world.
Each entry in the file is of the following form: host [user]
where: The name of the remote host. If the remote host is in a different domain than the local host, the full domain name must be speci-
fied. The login name of the remote user. This field is optional. If this field is not specified, any user on the specified remote host is
exempt from providing a password, and is assumed to have the same username on both the local and remote hosts.
Optionally, an NIS netgroup name can be specified for the host name, user name, or both.
Entries in the .rhosts file are either positive or negative. Positive entries allow access; negative entries deny access. The following
entries are positive: hostname username +@netgroup
In addition, the plus sign (+) can be used in place of the hostname or username. In place of the hostname, it means any remote host. In
place of the username, it means any user.
The following entries are negative: -hostname -username -@netgroup
EXAMPLES
The following sample entries in the /u/chen/.rhosts file on host zeus allow users moshe and pierre at remote host venus and user robert at
the hosts specified in the NIS netgroup chicago to log in to user chen's home directory on host zeus: venus moshe venus pierre +@chicago
robert
FILES
Specifies remote users who can use a local user account.
RELATED INFORMATION
Commands: rcp(1), rlogin(1), rsh(1).
Functions: ruserok(3).
Files: hosts.equiv(4), netgroup(4).
Functions: rcmd(3). delim off
rhosts(4)