Re: baffling script behavior- root loses files

2003-01-17 Thread David T-G
zentara -- ...and then zentara said... % ... % I guess I was thrown off by the fact that I did get some output, but % not the full output. I guess this is one of those areas where Perl % will do something unpredictable? It depends on what you expect perl to do ;-) It wasn't unpredictable for *s

Re: baffling script behavior- root loses files

2003-01-17 Thread zentara
On Thu, 16 Jan 2003 22:34:53 +0100, [EMAIL PROTECTED] (Jenda Krynicky) wrote: >> are missing, seemingly random: > >Ahh the usual mistake. > >The readdir() returns just the file and subdirectory names, not >complete paths. > >Therefore if you opendir() some other directory than '.' you have to >p

Re: baffling script behavior- root loses files

2003-01-16 Thread Jenda Krynicky
From: zentara <[EMAIL PROTECTED]> > I made a little test case to demonstrate the problem. > The following script is run by root in /home/user: > /home/zentara/backup-homex > -- > - #!/usr/bin/perl -w >

Re: baffling script behavior- root loses files

2003-01-16 Thread david
Zentara wrote: --- > #!/usr/bin/perl -w > > @users=('/home/zentara'); > > #put all user-root hidden files and hidden dirs into 1 temp dir > #this makes it easier to backup second level subdirs > fore