Running .sh with onStart and onStop?

Hi’

I’m trying to figure out calling a few .sh-script allowing me to add things to cron.hourly with my plugin.

Currenlty i trying something like: pastebin.com/RArhsc0g

But i’m meet by an error like:

Restarting cron_add failed with error: Error: Command failed: /usr/bin/sudo bash /data/plugins/system_controller/podstream/cron_add.sh sudo: no tty present and no askpass program specified

I really tried to find out how to execute the shell scripts. (all files is chmod +x in the Install.sh :slight_smile: )

Could anything tell me how to do it - or point me in the right direction? I did try looking into multiple repos with no luck.

Thanks :smiley:

Okay… Well…

I did look into it, and now i’m almost done with the plugin in the first “stable”-version.
You’re welcome to take a look at it, right here: https://github.com/exetico/volumio-plugins/tree/master/plugins/music_service/podstream

When it’s stable, i will post it in the master-thread with plugins :slight_smile: