Folks, I am sure I was sleeping at the wheel regarding this issue, so I need a hit on my neck to the right direction.
I have this little crontab entry: bml0041:shell_script janos$ cat del_from_sequoia.crontab 10 * * * * /Volumes/Data/PROJECTS/Sysmon/shell_script/del_from_sequoia.ksh > /dev/null 2>&1 That is I want at 10 minutes after the hour to execute a shell script. The script is this: bml0041:shell_script janos$ cat del_from_sequoia.ksh #!/bin/bash # scp [email protected]:/prod2/ase15/sysmon/sysmonlogs/*.log /Volumes/Data/PROJECTS/Sysmon/sysmsa/ ssh [email protected] "find /prod2/ase15/sysmon/sysmonlogs -name '*.log' | xargs rm " That is first I copy over some files from a remote server to my local machine followed by deleting the files on the remote server. If I do these two commends on the local machine at the CLI, both works fine. However executing them via cron is a no go, that is nothing happens. Now, I see in man crontab, that it wants me to use launchctl and I looked its man page too, but I am not seeing how could I schedule the execution of this script with launchd. Thanks ahead, János _______________________________________________ MacOSX-admin mailing list [email protected] http://www.omnigroup.com/mailman/listinfo/macosx-admin
