Re: How to copy and keep file permissions

2002-02-21 Thread Randal L. Schwartz
> "Zentara" == Zentara <[EMAIL PROTECTED]> writes: Zentara> On Wed, 20 Feb 2002 17:17:20 +, [EMAIL PROTECTED] (Craig Eberly) wrote: >> Hmm, I've tried this but it doesn't seem to change the file permissions at >> all on the backup file. I checked into it, and my stat command or $mode i

Re: How to copy and keep file permissions

2002-02-21 Thread zentara
On Thu, 21 Feb 2002 11:09:59 -0500, [EMAIL PROTECTED] (Zentara) wrote: Ooops, made a dumb error. Corrected below. >The 33261 is file permissions and file type in decimal. >Under linux, chmod accepts this value, maybe under solaris >you have to to have the octal value? > >Try this instead: > >#

Re: How to copy and keep file permissions

2002-02-21 Thread zentara
On Wed, 20 Feb 2002 17:17:20 +, [EMAIL PROTECTED] (Craig Eberly) wrote: >Hmm, I've tried this but it doesn't seem to change the file permissions at >all on the backup file. I checked into it, and my stat command or $mode in >this case is equal to 33261. Is that a normal output for the mod

Re: How to copy and keep file permissions

2002-02-20 Thread Craig Eberly
Hmm, I've tried this but it doesn't seem to change the file permissions at all on the backup file. I checked into it, and my stat command or $mode in this case is equal to 33261. Is that a normal output for the mode in the stat command? I'm on a Solaris 8 system. Thanks, Craig (Sorry if the

Re: How to copy and keep file permissions

2002-02-17 Thread zentara
On Sat, 16 Feb 2002 20:23:02 +, [EMAIL PROTECTED] (Craig Eberly) wrote: >Hey, any help would be appreciated. >I just wanted to make a simple backup script to backup any file i >specified quickly.. and eventually let it accept options and whatnot for >directories, but right now, I'm just tryin