Anthony J Segelhorst <[EMAIL PROTECTED]> wrote:
> I am trying to wrap the following Unix command into perl and having a few
> issues:
>
> find /var/spool/Tivoli/backups -name "DB_*" -mtime +10 -print -exec ls {}
> \;
>
>
> I have tried (and nothing to seems to work):
>
> $temp = `find /var/spool/Tivoli/backups -name "DB_*" -mtime +10 -print
> -exec ls {} \;`;
> system `find /var/spool/Tivoli/backups -name "DB_*" -mtime +10 -print
> -exec ls {} \;`
> !system `find /var/spool/Tivoli/backups -name "DB_*" -mtime +10 -print
> -exec ls {} \;`;
1-- You are useing parens '( )' and should be using curley braces '{ }'
in your exec.
2-- Why are you using -exec ls? -print already gives you the same output
(unless you meant to write 'ls -l')
-Jeff
__________________________________
Do you Yahoo!?
New Yahoo! Photos - easier uploading and sharing.
http://photos.yahoo.com/
--
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
<http://learn.perl.org/> <http://learn.perl.org/first-response>