I need to learn shell scripting before programming so I bought some used books.
Are these any good? Most from early 2000's but i doubt much has changed.
Mastering Unix Shell Scripting
Beginning Shell Scripting
Beginning Portable Shell Scripting
Shell Scripting Recipes
I bought a C book...
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...
Hello,
when calling the gpg command I want gpg2 to be executed instead of gpg1. Both programs are installed. In Linux I used update-alternatives for that. What would be the equivalent in FreeBSD?
Thank you.
On pfSense 2.2.4 (FreeBSD 10.1), my custom init script filebeat_wrapper won't start at boot.
According to rcorder it should start right after boot:
# rcorder /etc/rc.d/* /usr/local/etc/rc.d/*
(snip)
/etc/rc.d/SERVERS
/etc/rc.d/DAEMON
/etc/rc.d/LOGIN
/usr/local/etc/rc.d/filebeat_wrapper
(snip)...
I am on
FreeBSD 10.2-RELEASE-p14 FreeBSD 10.2-RELEASE-p14 #0: Wed Mar 16 20:46:12 UTC 2016 root@amd64-builder.daemonology.net:/usr/obj/usr/src/sys/GENERIC amd64
Installed vim through pkg install vim.
My Current shell is:
$ echo $SHELL
/usr/local/bin/bash
My .profile file is edited...
hi
I'm dabbling with shell scripting a little and trying to get a backup script running on FreeBSD.
#!/bin/csh
NOW=$(date +"%Y-%m-%d-%H%M")
FILE="example.com.$NOW.tar"
BACKUP_DIR="/usr/home/andy/backups"
WWW_DIR="/var/www/"
DB_USER="user"
DB_PASS="pass"
DB_NAME="dbname"...
Hi,
I'm an intermediate-level user of FreeBSD. I recently ran into a problem that I have been unable to solve. Basically, most (but not all) commands now return 'Command not found', even if I use the full path, which makes no sense to me whatsoever. The only thing I can think of that...
What shell do you think that is the better shell or what is your favourite shell?
I think that the better shell is the Bourne Again Shell (bash), because his scripting language is most powerful than the tcsh, csh and sh, but I think that the Korn Shell is good too.
So, my favourite shell...
I decieded to start this thread after reading the thread 'Which shell do you use?'.
I'll start, mine is below.
# .cshrc - csh resource script, read at beginning of execution by each shell
#
#
# -- Set up command aliases
alias searchports 'find /usr/ports -type f -name pkg-descr | xargs...
I'm planning on switching the shell I'm currently using(tcsh) to Bash but I've read that changing the root shell to bash might be a bad idea. The main problem I have is tcsh doesn't update the directory list automatically, so that's why I'm wondering which shell do you guys use?
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.