LFS Version 6.2 - Chapter 7. Setting Up System Bootscripts - Configuring the sysklogd script

Alessandro Cabutto alexcabutto at yahoo.it
Fri Aug 18 16:01:24 PDT 2006


Mag. Leonhard Landrock wrote:
> Hi!
>
> I was searching for the sysklogd script.
>
> My first try:
>
> root:/# find / -name syslogd -exec pwd ;
> find: missing argument to `-exec'
>
>   
The sintax should be

	root:/# find / -name syslogd -exec pwd \;

but anyway this doesn't work because '-exec' argument is executed in the 
directory where 'find' is executed and 'pwd' returns the current path 
(eg. /).

Another way to do that is:

	root:/# find / -name syslogd -exec echo {} \;

but this is useless considering that has same output of

	root:/# find / -name syslogd

> My sucessful try:
>
> root:/# find / -name syslogd
> /usr/sbin/syslogd
>
>
> Question:
> --------------
>
> Why does "find / -name syslogd -exec pwd ;" not work?
>
> Kind regards,
> Leonhard.
>   

regards,
Alessandro Cabutto



More information about the lfs-support mailing list