• Content Count

  • Joined

  • Last visited

Everything posted by JoeUnraidUser

  1. You can run it from any folder except the flash drive. You can then run it from within a script in the UserScripts plugin.
  2. I can't seem to make it get the same error. What command line are you entering?
  3. Sorry for my confusion. To install p7zip: Install the NerdPack plugin. Go to SETTINGS and click on Nerd Pack. Turn on p7zip-16.02-x86_64-1sl.txz. Then click on APPLY at the bottom. You may have to reboot for it to take effect if the apply doesn't work.
  4. Try typing in the full path: /usr/bin/7z
  5. 7z is already installed in /usr/bin/7z. In a terminal type 7z and hit enter.
  6. To set the umask to 0000 do the following on a line before your command: umask 0
  7. Try adding the following to the beginning of your command so it runs in a login shell: sudo -i -u root
  8. When I have to reboot from the command line I run: shutdown -r now
  9. Did you try running the script in a login shell like I suggested above?
  10. Try adding "<<<password" to the end of the command: rsync -avhP --progress /source/file/path root@192.168.1.X:/destination/file/path <<<password Change "password" to your password.
  11. I had the same problem when running PERL scripts. I had to hardcode library and config paths. Try running the script in a login shell by doing the following: su - root /mnt/user/test/ <<<password --or-- sudo -i -u root /mnt/user/test/
  12. You could use the following: echo $(eval echo "~$(whoami)")
  13. You can achieve the same thing from the command line with PERL: perl -pi -e 's/#FF8C2F/#42ADFA/g' /mnt/user/text/mytestfile.txt Perl one-liners
  14. Try: rm -rf /mnt/disks/DELUGETorrents/Sonarr_Pickup/The.100.S06.1080p.BluRay.x264-TURMOiL
  15. Could you create a separate post with the instructions? It would make it much easier for users to follow along.
  16. My upgrade went well. Just incase something goes wrong; don't forget to backup your flash drive before upgrading.
  17. From the error messages, it looks like you need the library make: error while loading shared libraries: cannot open shared object file: No such file or directory Try installing guile-2.2.3-x86_64-2.txz from DevPack. Edit: I tried an install of HTTP::Cookies and you also need gc-8.0.4-x86_64-1.txz from DevPack.
  18. Your right it doesn't work. I tested it using "MON" and it failed. It looks like Unraid is using "crond 4.5 dillon's cron daemon". It's strange because the man page crontab(1) for "dillon's lightweight cron daemon" contains: a symbolic range for the day of week and month in year # run at 11 am on the first and last Mon, Tue, Wed of each month 0 11 1,5 * mon-wed date Edit: I tested it again using "mon" and it worked. It must only work with lowercase days of the week.
  19. "or use names" means SUN-SAT or sun-sat. Example crontab line from man page crontab(5): 5 4 * * sun echo "run at 5 after 4 every sunday" Edit: Also from man page crontab(5): Names can also be used for the 'month' and 'day of week' fields. Use the first three letters of the particular day or month (case does not matter). Ranges or lists of names are not allowed.
  20. The last field should be day of week. Allowed values are 0-6, 7 for Sunday or SUN-SAT. 0 6 * * MON is 06:00 on Monday From the crontab man page crontab(5) : field allowed values ----- -------------- minute 0-59 hour 0-23 day of month 1-31 month 1-12 (or names, see below) day of week 0-7 (0 or 7 is Sunday, or use names)
  21. To run mover enter the following command: /usr/local/sbin/mover
  22. The following script will show the subfolders for each movie. To remove the subfolders; uncomment the following line: #rm -rf "$dir" to rm -rf "$dir" #!/bin/bash movies="/mnt/user/test/movies" process() { local movieDir=$1 readarray -t dirs < <(find "$movieDir" -mindepth 1 -maxdepth 1 -type d -print 2>/dev/null) if [ ${#dirs[@]} != 0 ] then printf "$movieDir\n" for dir in "${dirs[@]}" do printf "$dir\n" #rm -rf "$dir" done