In Unix find exec Zeichen maskieren
Hi an alle Mitglieder,
zur Ausgangslage:
Ich will ein Script in Aix schreiben, dass bestimmte neue log-Dateien findet und diese per mailx, anderes programmm steht nicht zur Verfügung, versendet.
Leider tauchen bei meinen Ansatz:
find /appl/strs/strsq1/out -mtime -1 -name \*.log\* -exec mailx -s '{}' test@fake.de < '{}' \;
diese Fehlermeldung auf:
A file or directory in the path name does not exist.
ksh: '{}': 0403-016 Cannot find or open the file.
Weiß jemand, was ich falsch mache, oder gibt es bessere Wege dieses Problem zu beheben?
mfg Alucard7
Ich will ein Script in Aix schreiben, dass bestimmte neue log-Dateien findet und diese per mailx, anderes programmm steht nicht zur Verfügung, versendet.
Leider tauchen bei meinen Ansatz:
find /appl/strs/strsq1/out -mtime -1 -name \*.log\* -exec mailx -s '{}' test@fake.de < '{}' \;
diese Fehlermeldung auf:
A file or directory in the path name does not exist.
ksh: '{}': 0403-016 Cannot find or open the file.
Weiß jemand, was ich falsch mache, oder gibt es bessere Wege dieses Problem zu beheben?
mfg Alucard7
Please also mark the comments that contributed to the solution of the article
Content-Key: 163469
Url: https://administrator.de/contentid/163469
Printed on: April 26, 2024 at 22:04 o'clock