Re: scandir() in automount/autofs
| From: | Richard Lynch | Date: | Tue, 22 Jan 2008 20:12:04 +0000 |
| Subject: | Re: scandir() in automount/autofs | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-267848@lists.php.net to get a copy of this message | ||
On Mon, January 21, 2008 7:23 pm, shiplu wrote:
> I configured autofs in my fedora so that when I plug any usb stick in
> /dev/sda1 it automatically mounts in /mnt/auto/usb0
>
> There is two lines where the problem arise.
>
> $util->run_command("ls -1 /mnt/auto/usb0 | wc -l"); // it shows 13
> when I
> plug my usb stick.
Perhaps do a flush of the file system cache here...
http://php.net/clearstatcache
Not sure why it would have been loaded in the first place, but that
may be it.
> $list = scandir("/mnt/auto/usb0 "); // here $list is null
--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/from/lynch
Yeah, I get a buck. So?