Reply to Re: [PHP] shell command

Your name:

Reply:


Posted by Robert Cummings on 09/26/97 11:32

On Sat, 2005-11-19 at 13:02, Jasper Bryant-Greene wrote:
> John Taylor-Johnston wrote:
> > Hi,
> > I want to echo the location of "head.jpg" hidden in some deep dark
> > recess of my server, unbeknownst to me.
> > Which shell command do I use? How do I echo it?
> > John
> >
>
> While this isn't really a PHP question...
>
> On my machine, the following would work. I can't speak for your machine,
> though.
>
> cd /; find -name head.jpg

Under linux:

locate head.jpg

This is better than find usually since the filesystem is usually indexed
nightly making lookup fast. If you just added the file though... you'll
need to use the aforementioned method :)

Cheers,
Rob.
--
..------------------------------------------------------------.
| InterJinn Application Framework - http://www.interjinn.com |
:------------------------------------------------------------:
| An application and templating framework for PHP. Boasting |
| a powerful, scalable system for accessing system services |
| such as forms, properties, sessions, and caches. InterJinn |
| also provides an extremely flexible architecture for |
| creating re-usable components quickly and easily. |
`------------------------------------------------------------'

[Back to original message]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация