Sponsored Content
Top Forums Shell Programming and Scripting copy files from remote server (B) to target server (A)? Post 302339045 by Beginer0705 on Wednesday 29th of July 2009 02:53:39 PM
Old 07-29-2009
copy files from remote server (B) to target server (A)?

Hi All,

what is the comand to log off the remote server?

I have 2 servers A, B. I need to find all files older than 7 days on server B and copy over to server A. My logic is:

login the remote server:
ssh hostB
cd /data/test
find . -mtime -7 -ls | awk '{print $11}' >> filesrequired.txt


logoff==> what comand to log off the remote server????

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

FTP multiple files from remote server to local server

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

Copy files from remote server

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

Can I copy files on remote server with ftp ?

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

Copy folder and files from unix server to linux server

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

Copy down remote files and rename them to include the server name with full path

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

Checking files in remote server and decide to copy file or not

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

How to copy files from remote server to local?

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

Script to get files from remote server to local server through sftp without prompting for password

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

Do I require remote login access to a windows server to transfer files from a UNIX server

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

Script connect to remote server, not find files and exit only from remote server, but not from scrip

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
ccr(8)							      System Manager's Manual							    ccr(8)

       ccr - remote console carrier requester

       ccr [ options ] node

       The  command  establishes  a logical connection between your ULTRIX system and the console carrier server on a remote system.  enables your
       terminal to act as the console for a remote unattended system.  For example, your terminal can act as the console for  a  Digital  Ethernet
       Communications Server (DECSA) and its resident software.  The node is the name or address of the target node.  A node name consists of from
       one to six alphanumeric characters.  A node address consist of two decimal integers (n.n), where the first  indicates  the  network  number
       (1-63), and the second indicates the node address (1-1023).

       You  can  use  to  force  a  crash if a server node becomes unresponsive.  To determine how to force a crash, see the documentation for the
       respective server product.

       The requirements for using are as follows:

       o   The host node (that is, your local ULTRIX node) and the remote node must be on the same Ethernet.

       o   If your server product is a DECSA, the console carrier server image (plutocc.sys) and its loader file (plutowl.sys) must be located	in
	   on  your  ULTRIX node. The pluocc.sys and plutowl.sys files are not need, nor is any loading done for other servers.  For more details,
	   see the installation guide for the particular server product.

       <CTRL/D> exits from console carrier mode and terminates

       -c   Uses the specified circuit to connect to the target node.

       -h   Uses the specified address (next argument) as the Ethernet address of the target node.

       -n   Uses the next argument as the target node ID.

       -p   Uses the specified service password (next arguments) in accessing the target node.

       # /etc/ccr -c qna-0 -n dallas <RET>
       ccr: Remote console reserved
       ccr: Remote console released

       You must have superuser privileges to run

       The command can return the following diagnostic messages:

       ccr: Remote console reserved
       The command has successfully connected to the remote console server and your terminal is now capable of acting as a console for the  remote

       ccr: Remote console released
       Your connection with the remote console server has been terminated and you are no longer in console carrier mode.

       ccr: Remote console already in use
       The remote console server that you are attempting to connect to is already reserved by another user.

       ccr: Permission denied
       You do not have the necessary privileges to run (You must be a superuser.)

       ccr: Hardware address required
       The  command  is unable to locate the hardware address of the remote node to which you are attempting to connect.  A remote node's hardware
       address must be defined either in the command line, or in its nodes database entry.  (Nodes database entries are defined with the command.)

       ccr: No node entry in database
       The command does not recognize the remote node to which you are attempting to connect, since the node-id that you specified is not  defined
       in the nodes database.  (Nodes database entries are defined with the command.)

       Console carrier server image

       Console carrier server loader

See Also
       addnode(8), getnode(8), load(8), remnode(8), trigger(8)
       Guide to Local Transport Servers


Featured Tech Videos

All times are GMT -4. The time now is 07:25 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy