Hi all
I just checked previousl posts, but not find what I am looking for.
I have a command running on AIX 6.1 TL6 to delete NMON Files older than 7 days
/usr/bin/find /var/adm/nmon_data -mtime +7 -exec rm {} \;
If I fire this command on command line it works fine, to be sure I tried ksh, sh (which is default for root) and bash,
but I want to run this with crontab
47 16 * * 4 /usr/bin/find /var/adm/nmon_data/ -mtime +7 -exec rm {} \;
It wil not work and sends a mail for root with :
Your "cron" job executed on xxxxx on Thu Jan 9 16:47:00 CET 2014
/usr/bin/find /var/adm/nmon_data -mtime +7 -exec rm {} ;
produced the following output:
find: 0652-018 An expression term lacks a required parameter.
What I need to set up ? On Solaris this works fine
regards
appi
I just checked previousl posts, but not find what I am looking for.
I have a command running on AIX 6.1 TL6 to delete NMON Files older than 7 days
/usr/bin/find /var/adm/nmon_data -mtime +7 -exec rm {} \;
If I fire this command on command line it works fine, to be sure I tried ksh, sh (which is default for root) and bash,
but I want to run this with crontab
47 16 * * 4 /usr/bin/find /var/adm/nmon_data/ -mtime +7 -exec rm {} \;
It wil not work and sends a mail for root with :
Your "cron" job executed on xxxxx on Thu Jan 9 16:47:00 CET 2014
/usr/bin/find /var/adm/nmon_data -mtime +7 -exec rm {} ;
produced the following output:
find: 0652-018 An expression term lacks a required parameter.
What I need to set up ? On Solaris this works fine
regards
appi