I would expect a simple, single invocation of pax to be preferable to that shell script.
Quote:
Originally Posted by nitrobass24
Ideally this would work on Solaris, HP-UX and Redhat.
Of pax, cpio, and tar, pax is the only utility that is standardized by POSIX. So if your hope is that a single command runs identically on each of those operating systems, pax seems a good choice.
Is there a way around that barrier of CP/PAX 70k time?
Im open to ideas.
I need it to be simple/work on all systems/be automated.
Once i have it finished we will be running on approx 1000 servers.
You don't need to call pax 70k times, i.e. once per file. You invoke pax once and it reads the list of files to copy from stdin. Using your variable names:
That said, Corona's rsync suggestion may be the best alternative if you will be updating the target after (possibly minor) changes in the source.
friends
good morning
FTP works perfect but I have a doubt
if I want to transport 10 files, I imagine that I should not open 10 connections as I can transfer more than 1 file?
ftp -n <<!EOF
open caburga
user ephfact ephfact
cd /users/efactura/docONE/entrada
bin
mput EPH`date... (16 Replies)
Hi,
I have below directories
Direct 2013-08-12 23123
Direct 2013-08-13 24121
Direct 2013-08-14 34513
Direct 2013-08-31 15435
...........
Direct 2013-09-12 53145
Direct 2013-09-30 65234
Direct 2013-09-30 89642 (11 Replies)
HI
I have input file A.txt
X
Y
Z
File B.txt
1 X 10 AAA 11123
2 Y 22 PlD 4563
3 Z 55 PlD 54645
4 Z 66 PlD 15698
5 F 44 PlD 154798
6 C 55 PlD 12554
7 Z 88 PlD 23265
8 C 99 PlD 151654
9 C 11 PlD 21546546
I need New File C.txt (1 Reply)
How to copy files from one directory to another directory with the subfolders copied.
If i have folder1/sub1/sub2/* it needs to copy files to folder2/sub1/sub2/*.
I do not want to create sub folders in folder2.
Can copy command create them automatically?
I tried cp -a and cp -R but did... (4 Replies)
Hi experts
cp bin root src /mnt
but not copy bin/bigfile
any help?
( I post this thread in the "redhat" forum wrongly, I don't know how to withdraw that question in that wrong forum)
Thanks (6 Replies)
Hello, I have an RPM package for which I need to know the base directory /opt/appdir. But if the package is relocated, then it will be different. I need to get the value dynamically.
I tried to query the RPM with INSTPREFIXES but couldn't get the value. The only way I see is to do 'rpm -ql RPM... (2 Replies)
Hi,
I have to copy last modified Directory to another directory.How can i Do using pipe or redirect
cp -R 'ls -lrt|tail -1' test is not working.
please help. (3 Replies)
Hey all,
I'm attempting to migrate a zone from one system to another, but I noticed that on the new system ssl BASEDIR was missing. I was wondering if creating the directory path for this would fix the issue when I migrate files over.
SSL is installed on the new system but does not show a... (1 Reply)
Hi.
I'm trying to get my find command to only search in the directory i tell it to, but i don't want it to search in the sub directories as well...
For example, i have a /data/files/ and /data/files/old
I want to search for all .sav files within /data/files but i don't want it to drill... (4 Replies)