in reply to Need help with script to create directories

Try changing the GetOptions parameters to:

GetOptions ("clientname=s" => \$clientname, # client name for dir +ectory "fdgid=s" => \$fdgid); # client Filedrive G +ID number

See the docs for the explanation.


Examine what is said, not who speaks.
"Efficiency is intelligent laziness." -David Dunham
"Think for yourself!" - Abigail
"Memory, processor, disk in that order on the hardware side. Algorithm, algoritm, algorithm on the code side." - tachyon

Replies are listed 'Best First'.
Re^2: Need help with script to create directories
by jlk (Hermit) on Jun 20, 2004 at 05:09 UTC

    Ok, did that and now the directory named "1" is called "testing", and all other results are the same. Also, the same errors were produced:

    touch: /home/jlk/tmp/data/ecftp/archive/testing/testing.log cannot stat
    touch: /home/jlk/tmp/data/ecftp/archive/testing/testing_ack.log cannot stat

    Any idea what they mean?

    Regards,
    jlk

    Seasame street was brought to you today by the letters M, I and T and the number 3.1415926535897932384626433832795

      Here is something you might want to check (this is from the solaris stat manpage which you may want to read):

      "You do not need any access rights to the file to get this information but you need search rights to all directories named in the path leading to the file." (italics mine for emphasis)

      The permissions are set to 777(wide open)

      This may be true of the parent directory, but is it true of all the directories in the path? Have the permissions changed on any of them?

      davidj