1. B

    Trouble using nvm in any scripts

    I installed nvm, as per the install instructions here, and it works fine if I type stuff in directly into the command line. For example $ nvm ls And it runs fine. I understand that the nvm command works because of these couple of lines that are added to .profile: export NVM_DIR="$HOME/.nvm"...
  2. M

    Shell Script for splitting PDF pages vertically, removing blank pages and white borders

    So I'm trying to process PDF documents containing shipping labels the following way: Each A4 page in landscape orientation contains two A5 shipping labels side by side, so simply split each A4 page vertically into two A5 pages. Remove any blank pages. Remove white borders from each page. I...
  3. Josh Rea

    Solved Shell Scripting Output to File and Screen

    Hello all, I wrote a script to direct all output to a log file, but I'd like to echo certain things during the process of the script to screen output if I can. I haven't been able to find anything related to this searching online, and the man page for sh is cryptic for me (as of now). Sample of...
  4. T

    /etc/rc.d/bluetooth - enable or disable variable?

    When I run the bluetooth script I notice it doesn't have any variables: root@www# service bluetooth rcvar # bluetooth # compare to another random service root@www# service ntpd rcvar # ntpd # ntpd_enable="YES" # (default: "") so, most other services have an "enable" variable that I can put...
  5. Phishfry

    Backup script with tar

    I need some help. Will someone proof-read my backup script. Summary- APU3 - FreeBSD Headless Wireless AP on 4GB SDCARD Using NFSv3 I have /raid1 nfs share mount. I have a sub-directory /raid1/apu3-backup/ for the tar file. So I want to back up entire system Live except for unneeded files. I am...
  6. csptra

    read grep pattern from variable

    Hello, I'm sure this is easy, but trying to figure this out: I see a similar example here: but can't get it to work: but I have a basic code structure like this: #!/bin/sh pattern="hello|help" while...
  7. eriknstr

    Other Safely rename files to their SHA1 sum + ext on FreeBSD 11

    I have a collection of files with external origin which had bad names. The worst characters that they contained were some UTF-8 characters and the single quotation mark. Aside from these characters, there were other unwanted characters such as spaces in the file names. For this collection of...