I couldn't find any information from the web on how to make a shell script which can automatically execute commands that require "su" privileges during user login.
I have read that I can store the shell script at "/etc/profile.d/" location which did not exist by default and I had to...
I just wanted to share a small but handy script with the community, as I think more people than me could find it useful!
You have some dangerous command which could alter your system in a bad way, e.g.:
$ pkg upgrade
$ portmaster -a
$ some_cmd --force --overwrite...
So I'm trying to set a script, so it starts on boot. The problem is, I'm using "@reboot" and I don't think that is working.
Tried modifying /etc/crontab as root
using crontab -e -u syncthing
tried various commands, IE: "@restart touch /home/syncthing/test"
I have surfed the net...
I'm a student and I have to create a script, but I want to show a progress bar when the script is making a backup. For example, I'm making a full backup of the FreeBSD system and while the script is making the job, I want to show a progress or a bar percent completed, is that possible on...