Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations IamaSherpa on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

find don't accept -exec argument

Status
Not open for further replies.

tipoll

MIS
Jun 26, 2003
1
DE
Hello

I have a problem to call find out of tcl
All of these lines fail with the same error message

exec find -exec ls -l \{\}{\;}
eval [ list exec find -exec ls -l \{\}{\;} ]

find: missing argument to `-exec'
This happens if -exec is not closed with \;

I tried

% exec echo {\;}

to figure out what the shell would get from tcl and there
it is

\;

Why is my find command not closed properly and is there a
better way to pass commands to the shell?

Thanks for your help!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top