July 24, 20187 yr Author 21 hours ago, nuhll said: ö ä ü ß ? I would think that rsync used for usb backup should be able to handle any valid linux filename, but to be honest, I've never checked with non-English filenames.
July 25, 20187 yr I guess could be only reason? I mean, plugin still shows the names of the scripts, but theres nothing in it. They were running for months without problems... tehy just were never backed up... Edited July 25, 20187 yr by nuhll
July 25, 20187 yr Yea, it seems to be a problem with ö ä ß and so on, i cant even delete the scripts from the interface. How can i get rid of the undeltable wrong scripts? i would just readd them with other names. Edited July 25, 20187 yr by nuhll
July 25, 20187 yr You should be able to go to the command line and delete them using wildcards. Or move all the others to another folder then delete the folder.
July 29, 20187 yr Is it possible to run a script as the CA User Scripts user/program? I want to setup PlexDrive through it, but it requires a one time input from the user (client id stuff and then a dynamically generated code which I have to enter) More info: I used wget to download the linux-amd64 release of PlexDrive 5.0.0, and in the terminal executed the PlexDrive with parameters to test if my commands were gonna work. They did. Now apperently setting up (running the same commands) PlexDrive through CA User Scripts requires me to log in again, as Google sees it as a different "app". Edit: In short, which user is the CA User Scripts user? Edit 2: Odd, when I run id -un through CA User Scripts, it shows root. Seems like I need to somehow bash into CA User Scripts or something like that. Edited July 29, 20187 yr by Arndroid
July 29, 20187 yr 41 minutes ago, Arndroid said: Odd, when I run id -un through CA User Scripts, it shows root. Basically everything in unRAID runs as root. The other "users" are only for network access to shared folders with SMB, NFS, AFP.
July 29, 20187 yr 2 hours ago, trurl said: Basically everything in unRAID runs as root. The other "users" are only for network access to shared folders with SMB, NFS, AFP. Hmm, alright. But then why does PlexDrive require a different Google OAuth? Is it because it runs from a bash script though CA User Scripts or something? Edit: I think I figure out why... My bad. Edited July 29, 20187 yr by Arndroid
August 5, 20187 yr Hi everyone, I am using this to run a number of scripts on my Backup unraid server to rsync content from my main server at array startup. Is there a way to have the scripts run in sequential order, rather than all at once? -Brett
August 5, 20187 yr Author 13 hours ago, Brettv said: Is there a way to have the scripts run in sequential order, rather than all at once? Have one script that runs that then calls the other scripts in order (and also don't have rsync run as a daemon)
August 9, 20187 yr Does anyone have any tips on the correct syntax in order to do that? I would google it, but i thought there might be something specific or something already tailored for unraid. ie the correct syntax for "if X is still running, wait until finished, then start Y"
August 11, 20187 yr So i think i figured it out... You just put them on a new line... pretty simple hey.
August 17, 20187 yr Author Stop scripts stops execution after the current command being executed is finished. If the command takes forever to finish (or never does), then effectively the stop command does nothing.
August 17, 20187 yr Stop scripts stops execution after the current command being executed is finished. If the command takes forever to finish (or never does), then effectively the stop command does nothing.Okay so only way to stop is force reboot of unRAID Sent from my iPhone using Tapatalk Pro
August 17, 20187 yr 19 minutes ago, BRiT said: Couldn't you drop to a shell/prompt and use the Linux commands of ps and kill ? sorry noob here. How would I go about doing this?
August 20, 20187 yr is it possible to run python scripts? I'm trying to run this script https://gist.github.com/JonnyWong16/2607abf0e3431b6f133861bbe1bb694e which starts with: #!/usr/bin/env python Thanks
August 20, 20187 yr Author is it possible to run python scripts? I'm trying to run this script https://gist.github.com/JonnyWong16/2607abf0e3431b6f133861bbe1bb694e which starts with: #!/usr/bin/env python ThanksYes. Any interpreter should workSent via Tapatalk because my laptop doesn't fit in my pocket
August 20, 20187 yr 5 hours ago, DZMM said: is it possible to run python scripts? I'm trying to run this script https://gist.github.com/JonnyWong16/2607abf0e3431b6f133861bbe1bb694e which starts with: #!/usr/bin/env python Thanks Do not forget that python is not included in the standard unRAID distribution. You would therefore have to install python (typically done via the Nerd Pack plugin) to be able to run the script.
August 20, 20187 yr I had python installed - it's falling over when the script https://gist.github.com/JonnyWong16/2607abf0e3431b6f133861bbe1bb694e is trying to install some modules at the start: import requests import xmltodict from plexapi.server import PlexServer I'll do some googling later to learn how to use pip or whatever to install the modules within the script
August 23, 20187 yr Looking for some advice on a script I've added (which i believe runs successfully) as unsure where the parsing issue is. Seeing a lot of the below in syslog: Aug 23 16:48:01 Tower crond[1440]: failed parsing crontab for user root: /usr/local/emhttp/plugins/user.scripts/startCustom.php /boot/config/plugins/user.scripts/scripts/copy_pibackup_to_Backup_share/script > /dev/null 2>&1 This is the script: #!/bin/bash /usr/bin/rsync -aPX /mnt/cache/pibackup.img /mnt/user/Backup/ Name of user script, description and custom cron: cheers
August 23, 20187 yr 30 minutes ago, sketchy said: Looking for some advice on a script I've added (which i believe runs successfully) as unsure where the parsing issue is. Seeing a lot of the below in syslog: Aug 23 16:48:01 Tower crond[1440]: failed parsing crontab for user root: /usr/local/emhttp/plugins/user.scripts/startCustom.php /boot/config/plugins/user.scripts/scripts/copy_pibackup_to_Backup_share/script > /dev/null 2>&1 This is the script: #!/bin/bash /usr/bin/rsync -aPX /mnt/cache/pibackup.img /mnt/user/Backup/ Name of user script, description and custom cron: cheers Isn’t the custom field at the end meant to have 5 values rather than 4?
August 23, 20187 yr 1 hour ago, itimpi said: Isn’t the custom field at the end meant to have 5 values rather than 4? Aha, good spot @itimpi. That may be what the parsing error was complaining about. I'll put another asterisk on the end for the 'day of week' requirement, see how it likes that! Edit: Looks like that cleared the issue. Cheers @itimpi Edited August 23, 20187 yr by sketchy In post
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.
Note: Your post will require moderator approval before it will be visible.