"Clements, Brent M \(SAIC\)" <[EMAIL PROTECTED]> wrote:
> What is wierd is that(I haven't done error reporting yet):
>  
> mkdir("NEWDIRNAME"); works(creates a directory in the current working
directory)
>  
> but mkdir("/tmp/oooo/NEWDIRNAME") doesn't work, I even tried a
chdir(which came back succcessful) and then wrote the above
mkdir("NEWDIRNAME");

If 

  /tmp/oooo

doesn't exist then

  mkdir /tmp/oooo/NEWDIRNAME

will fail with a  "No such file or directory" error.  Try it from the
command line - it does the same thing as the C function call.  On
Linux one can do:

  mkdir -p /tmp/oooo/NEWDIRNAME

and it will create the oooo on the fly.  However that isn't an option
in mkdir(), so you have to be careful that the parent directory exists
before trying to create another directory within it.

Regards,

David Mathog
[EMAIL PROTECTED]
Manager, Sequence Analysis Facility, Biology Division, Caltech
_______________________________________________
Beowulf mailing list, [email protected]
To change your subscription (digest mode or unsubscribe) visit 
http://www.beowulf.org/mailman/listinfo/beowulf

Reply via email to