I have stumbled on a glitch of sysrc (apparently).
I am trying to set a system variable to a string containing quotes like so:
# sysrc -f "$rootDir/etc/rc.conf" ssh_tunnel_connection_1="abc \"def\" gah"
ssh_tunnel_connection_1: abc def gah -> abc def gahdef gah
# sysrc -f...
Thought maybe some other ppl people might appreciate this. I just use it for common commands instead of using aliases.
I bound it to the m key to start it up. Easy to edit for your own commands.
#!/usr/bin/env python3
import curses
import subprocess
import os
def main(stdscr)...
We have an iocage administered jail that was recently updated to 13.2 from 13.1. However, we see this:
[root@vhost02 ~ (master)]# iocage list
+-----+--------+-------+--------------+--------------------------------+
| JID | NAME | STATE | RELEASE | IP4 |...
Code - OSS on Freebsd 13.2 - unable to connect to terminal.
Gives the following popup.
"The connection to the terminal's pty host process is unresponsive, the terminals may stop working." -- Restart pty host.
Changed the shell to bash. Tried killing the pty process, still issue persists.
Hi,
1. My first question is regarding crontabs. I added a command to be run every minute in the file /var/cron/tabs/root but it does not execute, is there any other file I need to change as well to make the changes take effect? The syntax of what I added is like this:
* * * * * (bash -c '....')...
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...
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...
When konsole in kde plasma, freebsd 13-0 release, starts, it starts with this error:
bash: /usr/local/share/bash-completion/bash-completion.sh: No such file or directory
I search for the file, found it, even tried changing permissions
/usr/local/share/bash-completion]$ ls -l
total 66...
how is it possible to run these two commands and then truncate them to the end of the curly bracket? thanks
a=g; z="abcdefgh"
echo ${z%%$a*}
error:
echo ${z%%$a:0:4}
echo ${z//ab/01}
error:
echo ${${z//ab/01}:0:4}
How should that look? I wanted to make it as compact as possible and because...
This may belong in another forum but since I am encountering this in a BASH script I will start here.
I am examining records created using the IPTables recent module. The last_seen value is recorded in something that I have read are called jiffles. A jiffle is reported to be 1 sec divided by...
I'm on FreeBSD 13, and I don't know how to disable "bracketed paste". I already tried with inputrc (set enable-bracketed-paste off) and it does not work. I switched to zsh and it is still there, active.
Anybody got any Freebsd 13 annoyances, yet?
BTW, so far, I'm loving 13, so this isn't a knock on the release - it's beautiful. However, things are different and different is... well, different... and often annoying, so I have an example:
One of the first things I noticed with my shiny new...
In the BASH(1) manpage, the keybindings are described. However, these don't seem to be what FreeBSD is using. In particular, it shows:
Well, M-f works on the command line, but it looks like M-b deletes the previous word, I just wanna move back a word and leave the command line intact like...
Every time I install FreeBSD, I would follow some steps to set locale to Turkish. First, I would add these lines to the end of the /etc/login.conffile:
turkce|Turkce Dil Destegi:\
:charset=UTF-8:\
:lang=tr_TR.UTF-8:\
:tc=default:
Then, I would issue this command:
cap_mkdb...
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 All,
The other week I ran in to the following error. I hope this post helps someone.
After upgrading to bash-5.0.18. We saw one of the following errors while trying to use bash
Undefined symbol "rl_signal_event_hook" referenced from COPY relocation in /usr/local/bin/bash
Undefined symbol...
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.