On Fri, Sep 07, 2001 at 02:21:44AM +0200, Piet Delport wrote:
> On Wed, 05 Sep 2001 at 14:39:40 -0400, Matej Cepl wrote:
> [...mail archival script...]
> > 
> > However, I am really not a programmer and I am still slightly scare of
> > Bash. Could you comment, please, on the attached script and tell me
> > whether I am to shoot off my foot with this script?

I have worked on archmail script a little bit yesterday and the 
results are attached (I used zip to ensure verbatim transport). 
I have divided script into two, because I was not able to debugg 
your find command. However, I have now problem with bash. 
Consider following screenshot:

    mail $ test -f ./sluzebni/; echo $?
    1
    mail $ test -d ./sluzebni/; echo $?
    0
    mail $ ll
    total 332
    -rw-rw-r--    1 matej    matej           0 kvě  3 19:30 drafts
    drwxrwxr-x    2 matej    matej        4096 zář  9 15:54 list
    drwxrwxr-x    2 matej    matej        4096 zář 25 10:26 pratele
    -rw-rw-r--    1 matej    matej      270658 kvě  2 06:03 sent-200104
    -rw-rw-r--    1 matej    matej       45374 kvě  3 20:58 sent-200105
    drwxrwxr-x    2 matej    matej        4096 zář 25 10:48 sluzebni

If understand my bash manpage well, the second command should 
produce 1 too. Have you any idea why it doesn't? I am using bash 
2.04.11(1)-release on RedHat GNU/Linux 7.0.

            Thanks
            
                        Matej Cepl

archmail.zip

Reply via email to