1. Sergei_Shablovsky

    Shell cron script/utility to make screenshots and periodically emailing

    HI, FreeBSD Gurus ! Please suggest me tool/sys utility/script that : - constantly running in a background under root privilege; - saving local-attached terminal (monitor on server's VGA output, no any GUI used) screenshot to destination folder; - periodically (hourly or daily, or certain day of...
  2. E

    could not get PID in a script

    Hi All, In my script, I am trying to get the PID ID of the following process: 30679 0 SJ 0:01.47 node: homebridge (node). I have tried pidof, pgrep and ps but I can't find a way to get the correct PID. there are multiple node processes, when i use pidof node i get more than 1 pid. Does...
  3. byrnejb

    Solved bash - cannot find a mailer (dma)

    I am running a bash script that contains these statements: MAILER="/usr/sbin/sendmail -t" # -t get To:, CC:, and BCC:, from message . . . local _mailer_return=$(cat "${_msg_file_name}" | "${MAILER}") # <<== this is the error, using a variable instead of a literal...
  4. Sergei_Shablovsky

    Bash script to automate installing bunch of packages

    Dear FreeBSD Gurus! Please share bash script to automate installing bunch of packages without any user interaction in a process. Let me write a little bit of details what I need exactly: pkg_autoinstaller_list.txt - text file that contain name of packages that I would to install. Each name in...
  5. M

    Shell Script for rebooting if network down for a certain amount of time?

    Today in the morning I have discovered that my server running 13.0-RELEASE-p6 wasn't reachable anymore, which left me no other choice then to perform a hardware reset, after which everything was working again. It started during the night with re0 losing connection and toggling link state between...
  6. Sergei_Shablovsky

    How to determine the NIC port state? (cable plugged yes/no, link yes/no, etc)

    Dear BSD gurus! How to determine the NIC port state (cable plugged yes/no, link yes/no, 10/100/1000 speed link, etc) ? Thank You all!
  7. 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...