Have you allowed ssh to run without a termcap?

On Thursday, 23 February 2012, János Löbb <[email protected]> wrote:
> 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
>

-- 
 Jared Earle :: There is no SPORK
 [email protected] :: http://jearle.eu
 Hosting :: http://cat5.org
 Blog :: http://blog.23x.net
_______________________________________________
MacOSX-admin mailing list
[email protected]
http://www.omnigroup.com/mailman/listinfo/macosx-admin

Reply via email to