====== Export kalendáře na serveru do ICAL ICS ====== #!/bin/bash # spoustet v cronu: $SCRIPTSDIR/export_ics.sh loginname #v $HOME/.obis_profile nastavit: PASS=... . `dirname $0`/setenv.sh echo export starting `date` >/tmp/$$ USERNAME=$1 EXPORTFILE=$DOCUMENTDIR/$USERNAME.ics cat <>/tmp/$$ Login $USERNAME $PASS $DATANAME "Client:export_ics.sh" Program " cf.trydofile(LUADIR()..'server/ical.lua') ical.IMPORTFILTERDATE=os.time()-60*24*3600 print(ical.Synchronize('$EXPORTFILE',nil,nil,true)) " Exit EOF cat /tmp/$$ >> $LOGDIR/export_ics-$USERNAME.log rm /tmp/$$