JDownloader Community - Appwork GmbH

Thread Tools Display Modes
Prev Previous Post   Next Post Next
Old 10.02.2018, 19:21
Posts: n/a

Hi, I am running a Pi2 with Ubuntu Mate 16.04 and JDownloader headless. How can I go about making the following work using event scripter:

Event: when download controller starts
*if files exist in folder /home/myuser/myfolder*
then "killall transmission-gtk" #This is a Linux command normally run in terminal
Event: when download starts
"killall transmission-gtk"
Event: when download controller stops
call home/myuser/myscript.sh
"transmission-gtk %U -m" #must only run after myscript.sh has finished
The contents of myscript.sh is as follows:

for i in /home/myuser/myfolder/*.mp4
/usr/local/bin/gdrive upload --delete "$i" #uploads file to google drive and then deletes it from disk
Any help is appreciated, thanks !
Reply With Quote

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

All times are GMT +2. The time now is 00:12.
Provided By AppWork GmbH | Privacy | Imprint
Parts of the Design are used from Kirsch designed by Andrew & Austin
Powered by vBulletin® Version 3.8.10 Beta 1
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.