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
--
http://linuxfromscratch.org/mailman/listinfo/lfs-support
FAQ: http://www.linuxfromscratch.org/lfs/faq.html
Unsubscribe: See the above information page