Hi RudiC,
Here is the command I ran:
Quote:
for i in /home/oracle/work/adams_de/source/*20120630??????; do mv $i /home/oracle/work/adams_de/target ; done; tar -cvf 30jun2012.tar /home/oracle/work/adams_de/target/ gzip 30jun2012.tar
I'm simulating with this created directories. I have 3 files in /home/oracle/work/adams_de/source and /home/oracle/work/adams_de/target - the target directory.
Below is the error I get:
Quote:
A file or directory in the path name does not exist. tar: 30jun2012.tar: The file access permissions do not allow the specified action.
- but all those directories exist.
I just tested both directories earlier and I have access to them.
Thanks a lot.
---------- Post updated at 04:28 PM ---------- Previous update was at 04:23 PM ----------
And for your info I'm running on AIX 6.
option -z for tar doesn't work on AIX 6. And one more thing, I tried with both
Quote:
... /work/adams_de/target
and
Quote:
..../work/adams_de/target/
- the trailing forward slash but same error.
---------- Post updated at 04:33 PM ---------- Previous update was at 04:28 PM ----------
RudiC,
Sorry my mistake, now they were moved to the target directory but not tar and compressed.
I didn't check as I got that error.