Sponsored Content
Full Discussion: recursive rcp
Top Forums Shell Programming and Scripting recursive rcp Post 42881 by Nicol on Thursday 6th of November 2003 07:57:50 AM
Old 11-06-2003
recursive rcp

I wrote a shell script (AIX) to extract the file "/rep1/toto" from all the hosts referred in a list and send them to one local directory named ~/$host-$file with the hostname as prefix

rcp -p user@host:/rep1/$file ~/$host-$file

where file = toto ==> it works !

I would do the same thing but with "/rep1/toto*" (all files beginning with toto in /rep1 ) and naming these files "$host-$file"

for example : host1-toto1 ; host1-toto2 etc...

could someone help me , please

thanks in advance

christian
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

rcp in SCO 5.0.7

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

2. UNIX for Advanced & Expert Users

rcp error

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

3. HP-UX

rcp logs

Hi, Can anyone help me to trace who has made rcp to a HP-UX machine? Is there a file that keeps such records? I know ftp's are recorded in /var/adm/syslog but i only need rcp.Thanks... (0 Replies)
Discussion started by: ilkergu
0 Replies

4. UNIX for Dummies Questions & Answers

Rcp

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

5. UNIX for Dummies Questions & Answers

help on rcp,exportfs

i need some help on remote file copyieng.the queeries are: 1:> m working on a machine say(abc) and i want to copy a directory(yes a directory) from a remote machine. so what would be the command. 2:> do in need to login on the source machine from where i want to copy a directory. 3:> is it... (0 Replies)
Discussion started by: mxms755
0 Replies

6. Shell Programming and Scripting

rcp the file

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

7. Shell Programming and Scripting

rcp problem

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

8. UNIX for Dummies Questions & Answers

RCP command

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)
Discussion started by: arunmanas
2 Replies

9. Shell Programming and Scripting

rcp -r || cp -r

what different between two instruction cp -r rcp -r (1 Reply)
Discussion started by: tamer11007
1 Replies

10. Solaris

Rcp between 2 computers

Hi, I need to rcp heavy files between 2 solaris 10/sparc M3000 computers. Currently theses 2 computers are linked via a switch/firewall and the rcp commands take a very long time, I have been told that this is because of the firewall (old one). I asked my client to by a cross ethernet cable and... (2 Replies)
Discussion started by: zionassedo
2 Replies
DECLAR(3)							 GENPAT functions							 DECLAR(3)

NAME
DECLAR, GENPAT Package ORIGIN
This software belongs to the ALLIANCE CAD SYSTEM developed by the ASIM team at LIP6 laboratory of Universite Pierre et Marie CURIE, in Paris, France. Web : http://asim.lip6.fr/recherche/alliance/ E-mail : alliance-users@asim.lip6.fr SYNOPSYS
DECLAR("ident",":nb_space","format",mode,size,option); PARAMETERS
ident External connector, internal observing points or register's name. For the hierarchical descriptions, the path-name of the inter- nal observing points or registers must be specified by the syntax : instance1.instance11.name . nb_space Specify the number of blank space between each group of value associated to the connectors, signals or registers in the output file. 0,1,2,3,4,5,6,7,8,9 or nothing. format Specify the format that will be used to represent the value associated to the connectors, signals or registers. X for Hexadeci- mal, O for Octal and B for Binary. mode Specify the type of the connectors. IN for Input, OUT for Output, INOUT for Input/Output, SIGNAL for internal observing point, REGISTER for register. IN, OUT, INOUT, SIGNAL, REGISTER are constants (defines) provided by genpat. size Specify the size of the bused connectors : empty ("") for the scalar connectors, "nb1" for the numbered connectors, "nb1 TO nb2" or "(nb1 TO nb2)" (nb1 < nb2), "nb1 DOWNTO nb2" or "(nb1 DOWNTO nb2)" (nb2 < nb1) for the vectors. Where nb1 and nb2 are integer. option Specify options of the connector. "S" for a spied connector, empty ("") for a normal connector. DESCRIPTION
Describes a set of connectors, signals or registers of the same format, size and mode. EXAMPLE
DECLAR("a", ":2", "X", OUT, "3 DOWNTO 0", "S"); describes : a 3, a 2, a 1, a 0 format : Hexadecimal. mode : Output. option : Spied connector. the group is separated of the others with 2 blank spaces. result : out a(3 downto 0) X spy ;;; DECLAR ("toto", ":", "O", INOUT, "7 TO 11", ""); describes : toto 7, toto 8, toto 9, toto 10, toto 11. format : Octal. mode : Input/Output. option : none. the group is separated of the following with 0 blank space. result : inout toto(7 to 11) O ; DECLAR ("ck", ":2", "B", IN, "", ""); describes : ck. format : Binary. mode : Input. option : none. the port is separated of the following with 2 blank spaces. result : in ck ;;; DECLAR ("accu.f", ":", "B", SIGNAL, "", "S"); describes : accu.f . format : Binary. mode : Signal. option : Spied connector. the signal is separated of the following with 0 blank space. result : signal accu.f spy ; DECLAR ("accu.reg", ":1", "B", REGISTER, "(3)", ""); describes : accu.reg . format : Binary. mode : Register. option : none. the signal is separated of the following with 1 blank space. result : register accu.reg(3) ;;;; WARNING
The DECLAR function from the 4.0 release have a new parameter (option). SEE ALSO
ARRAY(3), genpat(1), pat(5) BUG REPORT
This tool is under development at the ASIM department of the LIP6 laboratory. We need your feedback to improve documentation and tools. ASIM
/LIP6 October 1, 1997 DECLAR(3)
All times are GMT -4. The time now is 01:14 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy