in reply to Re^2: problem in checking if directory exists
in thread problem in checking if directory exists

So did it work that way? If not, what's your current code, what's the error message, and how does the directory look like?
  • Comment on Re^3: problem in checking if directory exists

Replies are listed 'Best First'.
Re^4: problem in checking if directory exists
by denzil_cactus (Sexton) on Mar 31, 2008 at 13:18 UTC
    I dont know what is the reason may be it was some privilege problem but the following code is working fine now

    $dir = "/usr/spool/uucppublic/book_prod"; unless(-d $dir){ `mkdir $dir`; }
    Thanks