Re: modifing existing Excel cells using perl in Unix possible?



On the AIX OSes that I use, a simple `cp file1 file2` will not keep the
file permissions, however, I need to use `cp -p file1 file2` to keep the
permissions.

Oh, really? What sort of AIX are you using to say that? Consider:

$ uname -M
IBM,9111-520
$ oslevel -r
5300-03
$ umask
022
$ ls >test.txt
$ ls -l test.txt
-rw-r--r-- 1 stuv stuv 28274 May 11 10:53 test.txt
$ chmod 755 test.txt
$ ls -l test.txt
-rwxr-xr-x 1 stuv stuv 28274 May 11 10:53 test.txt
cp test.txt test2.txt
$ cp test.txt test2.txt
$ ls -l test2.txt
-rwxr-xr-x 1 stuv stuv 28274 May 11 10:56 test2.txt

Hmmm. Looks like my AIX 5.3 system managed to preserve the permission
bits with a simple 'cp' command.

The problem with File::Copy is that the syscopy routine is the same as
the copy routine for UNIX machines. Abagail is correct - that is drain
bamaged.

--
http://DavidFilmer.com

.



Relevant Pages

  • Re: modifing existing Excel cells using perl in Unix possible?
    ... permissions. ... What sort of AIX are you using to say that? ... $ oslevel -r ...
    (comp.lang.perl.misc)
  • Re: System permissions fix utility
    ... There's nothing built in to AIX that'll do it. ... other UNIXs? ... > Subject: System permissions fix utility ... we managed to mess up permissions on files ...
    (AIX-L)
  • Re: DBD Runtime Error
    ... I had the same error come up on AIX 5.2. ... the ORACLE_HOME directory's permissions. ... we were able to install DBI and DBD modules successfully ... I keep getting an error when I connect to Oracle using DBI. ...
    (perl.dbi.users)
  • System permissions fix utility
    ... Through a stupid typo, we managed to mess up permissions on files ... utility for this AIX box. ...
    (AIX-L)