April 6, 20224 yr 10 hours ago, Teknishun said: Huh, I'm sure I tried it last night but it was pretty late! My bad🤦 I think it's been down for a while now. https://crontab.guru is a good alternative.
April 6, 20224 yr Author It goes up and down a fair amount. TBH I'm sick of doing plugin updates simply to fix a link
April 16, 20224 yr On 4/6/2022 at 8:03 PM, Squid said: It goes up and down a fair amount. TBH I'm sick of doing plugin updates simply to fix a link Just came here to report that dead corntab link. Seems that I'm not the first one ... May I suggest to use a more generic link, like Wikipedia, instead of a private one. They are hopefully longer valid.
April 18, 20224 yr I might be stupid, but how do I schedule the script to a time of my liking? I thought I would be able to choose a start time after selecting Scheduled Daily.
April 18, 20224 yr 32 minutes ago, lusitopp said: I might be stupid, but how do I schedule the script to a time of my liking? I thought I would be able to choose a start time after selecting Scheduled Daily. You can do this using the custom option.
April 28, 20224 yr How do I run any CA Userscript Script from within a Terminal Session? I know copies of scripts are held and ran from " /tmp/user.scripts/tmpScripts"....but when I go there via Terminal...I don't see ALL of my scripts listed (only a subset). It appears the only scripts listed here are ones which have been previously executed through Userscripts GUI. I know scripts are also located in "/boot/config/plugins/user.scripts/scripts" but those are all buttoned up with permissions restricting run (probably for good reason too since its the flash drive).
April 28, 20224 yr 39 minutes ago, Stupifier said: How do I run any CA Userscript Script from within a Terminal Session? Copy them from 39 minutes ago, Stupifier said: /boot/config/plugins/user.scripts/scripts to somewhere they can be made executable. The plugin copies them to 40 minutes ago, Stupifier said: /tmp/user.scripts/tmpScripts
April 29, 20224 yr 23 hours ago, trurl said: Copy them from to somewhere they can be made executable. The plugin copies them to No need for that. You can run them directly like: bash /boot/config/plugins/user.scripts/scripts/<name>/script
April 30, 20224 yr 4 hours ago, KnifeFed said: No need for that. You can run them directly like: bash /boot/config/plugins/user.scripts/scripts/<name>/script ah nice, instead of executing the script itself directly, the script is just an arg for bash
May 19, 20224 yr Hey was just wondering is there anyway to increase the amount of line shown in the "show log" window? or is this a limitation of unraids popup windows. i know its not hard to download the log and view its just when you do it 20 times gets a lil tedious, just one of the QOL things i was wondering edit: i guess i could just look into getting log viewers setup if the above isnt possible where do the logs get stored? thanks! Edited May 19, 20224 yr by phyzical
May 21, 20224 yr Not sure if this is a bug or if I'm doing something wrong but... Has anyone noticed that if you set a script to run when the array is stopped then the script is not run when you shut down your server?. A bit of background. I'm running Unraid inside Proxmox and a bunch of other VMs use Unraid shares as storage so I want to orchestrate things so that when the array comes up the VMs are started with the storage mounted and if the array is stopped then the VMs are shut down. It works great when I manually stop the array but if I instead want to shutdown Unraid then the script is not triggered even though one of the stages of shutting down is stopping the array. I've seen this with v6.9 and with the newest 6.10. The version of the User Scripts plugin is 2021.11.28.
May 21, 20224 yr 1 minute ago, Laucien said: Not sure if this is a bug or if I'm doing something wrong but... Has anyone noticed that if you set a script to run when the array is stopped then the script is not run when you shut down your server?. It might be worth mentioning that you can have a ‘stop’ file that is similar to the ‘go’ file that is run near the end of the shutdown process. Not very well documented.
May 21, 20224 yr Just now, itimpi said: It might be worth mentioning that you can have a ‘stop’ file that is similar to the ‘go’ file that is run near the end of the shutdown process. Not very well documented. Ah, interesting!. That could be a workaround for this. Just put it in the same location as the go file?. I'm guessing same owner and permissions as well.
May 21, 20224 yr Just now, Laucien said: Ah, interesting!. That could be a workaround for this. Just put it in the same location as the go file?. I'm guessing same owner and permissions as well. Yes. i have always wondered why a dummy file that does nothing is not included as standard.
May 22, 20224 yr Author 13 hours ago, Laucien said: Not sure if this is a bug or if I'm doing something wrong but... Has anyone noticed that if you set a script to run when the array is stopped then the script is not run when you shut down your server?. A bit of background. I'm running Unraid inside Proxmox and a bunch of other VMs use Unraid shares as storage so I want to orchestrate things so that when the array comes up the VMs are started with the storage mounted and if the array is stopped then the VMs are shut down. It works great when I manually stop the array but if I instead want to shutdown Unraid then the script is not triggered even though one of the stages of shutting down is stopping the array. I've seen this with v6.9 and with the newest 6.10. The version of the User Scripts plugin is 2021.11.28. This actually appears to be a bug in the OS.
May 27, 20224 yr Trying to get a script working. It seems to be ignoring stuff that works if I do it manually. I thought at first it was ignoring back ticks, but it's not that. Take this section: SOURCE=https://<my database url including auth> echo `date` # works fine SRC_DBS=`curl -s -X GET $SOURCE/_all_dbs | sed 's/\[//;s/\]//;s/"_[a-z]*"//g;s/[,\"]/ /g'` # works elsewhere echo "$SRC_DBS" # nada :( EDIT: Sussed the cause, at least. It doesn't like the SSL cert. It is valid, so I guess it must be that the local CAs need updating? Adding `-k` to the curl statement sorts it, for now... Edited May 27, 20224 yr by banterer
May 29, 20224 yr Hi, I'm trying to create a script that gets executed every 5 seconds, to control PWM fan speed. Because Cron doesn't give enough granularity, I had to resort to the watch command. I have created a "parent" script that invokes the watch command with the main script as argument, like this: #!/bin/bash INTERVAL=5 watch --interval $INTERVAL bash /boot/config/plugins/user.scripts/scripts/hdd_fans_control/script If I execute the parent script manually from the command line, like this: bash /boot/config/plugins/user.scripts/scripts/parent/script everything works as expected. While if I execute the parent script via the "Run Script" or "Run in background" buttons from the User Scripts page, the script doesn't work. With "Run Script" I just get an empty output and nothing happens, while if I use "Run in background" (which is how I intend to run the script eventually) I get this output: Script Starting May 29, 2022 11:09.54 Full logs for this script are available at /tmp/user.scripts/tmpScripts/parent/log.txt Error opening terminal: unknown. Script Finished May 29, 2022 11:09.54 Full logs for this script are available at /tmp/user.scripts/tmpScripts/parent/log.txt @Squid do you know how to fix it? What am I doing wrong? Thanks Andrea
June 3, 20224 yr Hi, I wonder if I can execute a command to a docker container's console using a script? And if so how would I go about achieving this?
June 3, 20224 yr @Squid thank you for a great plugin, which I personally use every day and that enables myself and the community to run our servers in such customised ways! Out of curiosity, which version of cron is currently used by the plugin? when using crontab.guru it warns that some expressions are not standard and may not run. Do you have experiences with using expressions such as 'run every 3rd month, Jan-Dec'?
June 3, 20224 yr 1 hour ago, emkab said: Hi, I wonder if I can execute a command to a docker container's console using a script? And if so how would I go about achieving this? docker exec <container name> /full/command/that/works/at/the/container/console
June 5, 20224 yr Is here the right place to make a improvement suggestion ? If yes: The plugin itself works great for me, but due i have a lot of scripts it would be great to have something like a folder structure etc --> See example . In best case also to collapse the list items. Best regards, Mathias
June 5, 20224 yr Author On 6/2/2022 at 8:50 PM, GMAsterAU said: run every 3rd month, Jan-Dec'? Whatever version that's with the OS. Generally speaking though, you want to use numbers for days / months and not the alpha equivalents
June 5, 20224 yr Author 35 minutes ago, elgatobavaria said: Is here the right place to make a improvement suggestion ? Thanks for the suggestion. I'll add it to my whiteboard, but I also wouldn't hold your breath on it.
June 8, 20224 yr I'm having a weird issue. I have strips installs, did it a while back and put some scripts in place. Just went in to settings cause I wanted to check one of them and there is no icon for me to click, it's like it's not installed on my system. If I click on it from the plugins page just goes to /Settings/Userscripts, but it's a blank page. Thoughts? Are my scripts even still running or are they gone?
June 10, 20224 yr Hey there i got a problem on my unraid server (dell r710) i cant set a schedule if i want i cant press apply but i cant press done but its do not save want can i do ? any other have the same issue
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.