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...
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...
I was following an example found in: Practical rc.d scripting in BSD - at https://docs.freebsd.org/en/articles/rc-scripting/ ...and the 1st example, shows the "dummy" script. So, I reproduced the script in /etc/rc.conf.d, then I corrected errors, set the execute bit, and made a run. # start...
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...
I am trying to write an rc.d script to start and stop a (Python) script. Starting the command seems to be working, but stopping it is not yet the way I want.
My goal is to ensure the script receives a SIGTERM signal when it should shut down; that seems not to be the case; I think only the...
Hi, pals.
I'm trying to convert an old bash script that runs normally in cygwin and linux.
For some reason the same command is not working on my FreeBSD box.
It is just one line that supose to echo command output when used with command dialog --prgbox.
If I use eval to execute bash (forking...
Hi, FreeBSD guru!
Is it possible at all to see which NIC is installed in which PCI slot by script ?
As I know this may be something near the dmidecode and pciconf commands.
But interesting to determine which exactly motherboard PCI slot are used for which NIC.
I know that different...
I am looking to parse a file for specific content that is on a line that always has a specific beginning,
for example:
"Program: code"
I want to extract code on the line that starts with Program.
I then want to add that extracted string into an already created file.
Can anyone provide some...
I've wanted to write up a tutorial on how to script the set up for getting Transmission to use a VPN connection, including inbound connections but havent had much time until now. I've read many articles using jails(I dont use jails), other distros and all of that helped me get it working on my...
Not real good with scripting. But, I through my hat in the ring.
I was in dire need of a DB backup script that wrote to an inserted, but mostly unmounted rdx drive, regardless of mount situation. I also needed it to keep sanity in that backups older than 30 days needed to be pruned. Logs needed...
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...
Dear all,
How can I not generate the substring ...[C[C[C[0k after issued comands trough expect scripts?
For example, I have the following lines in an expect script:
#set variables, parameters etc
...
spawn telnet $IP $PORT
expect -nocase "name:"
send -- "$USER\r"
expect -nocase "password:"
send...
Hi,
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.
I have:
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...
Hi all, i'm brand new on FreeBSD, i want to run a python script for pfsense firewall running on FreeBSD (FreeBSD 10.3-RELEASE-p9)
this is the script
https://github.com/edgauthier/pfsense-backup
I already installed beautifulsoup4 (py27-beautifulsoup-4.4.1)
So, when i make this as root
...
I have this script which checks for updates on my host system and on my jails:
#!/usr/local/bin/bash
PATH="/sbin:/bin:/usr/sbin:/usr/bin:/usr/games:/usr/local/sbin:/usr/local/bin:/root/bin"
# Updaten en rapporteren Ports Tree host system:
portsnap cron update && {
echo -e "Packages te...
To write a script, which checks the availability of computers in the network (the range of addresses in the /24 subnet). The Protocol displayed in the form of: IP-address –available/unavailable for each of the addresses.
Please help, for earlier thanks for the answer!
Hi,
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...
May someone can help me out. I want to use a script everytime my machine boots up. Execute before even the splash screen pops up. As I am the single user, I could set it as root in the crontab /etc/crontab following the handbook, so it would act for each other user. If I do so, do I set it as a...
Ultimately, I want to shutdown a freebsd box from my android (there are lots of android apps to run scripts).
I do not want to be prompted for a password.
One step at a time, first I just want to shut down the remote from another freebsd box.
The following did not work:
#!/bin/sh
ssh -t...
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.