in reply to Safely create new directory
(WARNING: Old, fuzzy, possibly inapplicable and out-of-date memory from the distant past!)
On HP-UX 10.something, we successfully used something like:
my $dir = "/mnt/home/volume/"; my $i = 0; ++$i until mkdir "$dir$i"; ## $i contains the dir successfully created
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: Safely create new directory
by elTriberium (Friar) on Jul 26, 2012 at 07:37 UTC | |
by BrowserUk (Patriarch) on Jul 26, 2012 at 14:51 UTC |