Beefy Boxes and Bandwidth Generously Provided by pair Networks
XP is just a number
 
PerlMonks  

glob does not find non mounted directories

by ISAI student (Scribe)
on Nov 09, 2011 at 17:00 UTC ( [id://937123]=perlquestion: print w/replies, xml ) Need Help??

ISAI student has asked for the wisdom of the Perl Monks concerning the following question:

See the LINUX log below: Directory evgeny (which belongs to user evgeny) is not found by glob. After doing cd evgeny and cd ../, glob find it.

evgeny@analog4 620 > perl -e 'print join("\n",( glob "*")), "\n";' arielg cad canalog2 izika laycont1 laycont2 liord maora shimons evgeny@analog4 621 > cd evgeny evgeny@analog4 622 > cd ../ evgeny@analog4 623 > perl -e 'print join("\n",( glob "*")), "\n";' arielg cad canalog2 evgeny izika laycont1 laycont2 liord maora shimons
Any ideas?

Replies are listed 'Best First'.
Re: glob does not find non mounted directories
by SuicideJunkie (Vicar) on Nov 09, 2011 at 17:12 UTC

    I'm not sure I see the problem.

    You mention that the directory isn't mounted the first time you run the script. How could glob possibly detect things which do not exist in the directory yet?

    Surely it should not try and rifle through your system files to figure out if something will auto-mount, or poke every possible directory name to see if it appears.

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: perlquestion [id://937123]
Approved by Corion
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others about the Monastery: (7)
As of 2024-04-18 09:51 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found