hi
i am creating a directory using perl's system command
how can i test that it is created bofore proceeding..

You should use perl to crate the directory:

mkdir("blah") or die "Can't mkdir blah: $!";

but if you are using system() examine the return value of system, see the system documentation for details:

http://perldoc.perl.org/functions/system.html

hi thanks for reply
If we are using it in a crontab script which is better
system command or mkdir

If the crontab script is perl, use mkdir(), if it's not perl, use whatever is appropriate.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.