google API - gcalcli - error while executing in a script

5

Continuing with my issue reported here now I can send shell-script events directly to google calendar, I made a script to execute as scheduled, it follows sms.sh file strong> below

#!/bin/bash
let oneminf='date +%s'+600
dateonemin='date -d @$oneminf +%R'
gcalcli --calendar 'zabbix' --title "$3" --when $dateonemin --reminder '1m sms' --where '' --descr '' --duration 1 add > /dev/null 2>&1 >> /tmp/zabbix_server.log
  

This script has been compiled based on this link

a>

When I run it, the shell directs it to the calendar

$/etc/zabbix/scripts/sms.sh "[parametroZabbix]:PROBLEM" 

But when the zabbix program triggers the trigger that calls this file sms.sh it gives me an exit message like this:

    Sign in with your Google Account

[avatar_2x]

Email [                    ] Password [                    ] [Sign in] Need
help?
Create an account

One Google Account for everything Google

[logo_strip_2x]

  ⢠Google
  ⢠Privacy
  ⢠Terms

I have already done the $ gcalcli schedule --noauth_local_webserver with the user zabbix which is the user running the application, / p>     

asked by anonymous 23.04.2015 / 22:23

1 answer

0

For those who are still interested I rebooted the machine (linux) and returned to work normally, very strange ...

    
16.06.2015 / 20:39