Prev: Have /etc/sudoers entry, but still getting prompted for a pw. Why?
Next: crontab environment problem
From: sri on 6 May 2010 07:00 Hi, I am trying to copy multiple datasets(which satisfies a criteria) to another directory. I am using below command: find <Source_directory_name> -mtime +7 -type f -name "*.ds"| xargs -i orchadmin cp {} <destination_dir_name> Im getting below error: ##I TUTL 000031 03:11:11(001) <main_program> The open files limit is 2048; raising to 4096. ##E TFDM 000070 03:11:11(002) <main_program> Unable to read header from descriptor file /opt/etl/cert/import/datastage/SVC/archive/: Is a directory ##E TFDM 000000 03:11:11(003) <main_program> Error reading ORCHESTRATE File Dataset descriptor for '/opt/etl/cert/import/datastage/SVC/ archive/'. ##F TFOP 000006 03:11:11(004) <main_program> Fatal Error: The data set attached to port 0 has this error: Output-file data set open failure: / opt/etl/cert/import/datastage/SVC/arc. ##I TFCN 000001 03:11:11(000) <main_program> Can I have any other way of doing this? Help me if anyone has solution. Thanks, Sri
From: Bill Marcum on 6 May 2010 09:12 On 2010-05-06, sri <srilaxmipeddapally(a)gmail.com> wrote: > Hi, > > I am trying to copy multiple datasets(which satisfies a criteria) to > another directory. > > I am using below command: > find <Source_directory_name> -mtime +7 -type f -name "*.ds"| xargs -i > orchadmin cp {} <destination_dir_name> > > Im getting below error: > ##I TUTL 000031 03:11:11(001) <main_program> The open files limit is > 2048; raising to 4096. > > Can I have any other way of doing this? Help me if anyone has > solution. > I don't know what orchadmin is, but could you just use "| xargs cp {} <destination_dir_name>"? -- [It is] best to confuse only one issue at a time. -- K&R
From: Vladimir Usenko on 6 May 2010 09:45
On 05/06/10 14:00, sri wrote > Hi, > > I am trying to copy multiple datasets(which satisfies a criteria) to > another directory. > > I am using below command: > find<Source_directory_name> -mtime +7 -type f -name "*.ds"| xargs -i > orchadmin cp {}<destination_dir_name> > > Im getting below error: > ##I TUTL 000031 03:11:11(001)<main_program> The open files limit is > 2048; raising to 4096. > ##E TFDM 000070 03:11:11(002)<main_program> Unable to read header > from descriptor file /opt/etl/cert/import/datastage/SVC/archive/: Is a > directory > ##E TFDM 000000 03:11:11(003)<main_program> Error reading ORCHESTRATE > File Dataset descriptor for '/opt/etl/cert/import/datastage/SVC/ > archive/'. > ##F TFOP 000006 03:11:11(004)<main_program> Fatal Error: The data set > attached to port 0 has this error: Output-file data set open failure: / > opt/etl/cert/import/datastage/SVC/arc. > ##I TFCN 000001 03:11:11(000)<main_program> > > > Can I have any other way of doing this? Help me if anyone has > solution. > > Thanks, > Sri Cut from man `xargs': /bin/ls -1d [A-Z]* | xargs -J % cp -rp % destdir Maybe it can be useful you. -- UV-RIPE |