bash

  1. D-FENS

    Solved Glitch when using sysrc to set system variables

    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...
  2. vukodlak

    Bash Python script I made to create a menu in the terminal window

    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)...
  3. byrnejb

    Solved freebsd-version and uname report different versions of FreeBSD

    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 |...
  4. B

    Code - OSS on Freebsd 13.2 - unable to connect to terminal

    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.
  5. P

    Questions regarding crontab and bash command

    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 '....')...
  6. byrnejb

    Solved bash --version is invalid

    # freebsd-version 12.3-RELEASE-p5 # pkg info bash bash-5.1.16 Name : bash Version : 5.1.16 # bash --version bash: --: invalid option Usage: bash [GNU long option] [option] ... bash [GNU long option] [option] script-file ... GNU long options: --debug --debugger...
  7. 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...
  8. 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...
  9. Sivan!

    Solved bash completion error

    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...
  10. blumenwesen

    Solved Bash two commands in curly braces?

    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...
  11. byrnejb

    Shell Need the actual 'jiffle' factor used by IPTable

    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...
  12. Spity

    bracketed-paste

    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.
  13. HoshiYamazaki

    Shell Binutils 2.36 compilation fails due to sed/sh error

    mv -f .deps/libz_a-uncompr.Tpo .deps/libz_a-uncompr.Po gcc -DPACKAGE_NAME=\"zlib\" -DPACKAGE_TARNAME=\"zlib\" -DPACKAGE_VERSION=\"1.1.4\" -DPACKAGE_STRING=\"zlib\ 1.1.4\" -DPACKAGE_BUGREPORT=\"\" -DPACKAGE_URL=\"\" -DPACKAGE=\"zlib\" -DVERSION=\"1.1.4\" -DSTDC_HEADERS=1 -DHAVE_SYS_TYPES_H=1...
  14. decuser

    FreeBSD 13 annoyances?

    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...
  15. decuser

    How to move around in bash - keybindings?

    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...
  16. ericx

    Solved bash 5.1.4_1 error: "cc: error: no such file or directory: 'yes'"

    Very confusing error while compiling shells/bash version 5.1.4_1. ... rm -f mkbuiltins.o cc -c -DHAVE_CONFIG_H -DSHELL -I. -I.. -I.. -I../include -I../lib -I. -DHEREDOC_PIPESIZE=4096 yes...
  17. S

    Solved FreeBSD 12.2 localization issue

    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...
  18. Spity

    Solved Help to run a simple script on startup

    How can run this script on startup? #!/bin/bash sudo kldload fuse sudo ntfs-3g /dev/ada2s1 /mnt/ -o -ro xdg-open /mnt/ &> /dev/null
  19. Márcio Rezende

    Solved Dialog: prgbox there is no output (no echoing output)

    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...
  20. N

    bash and undefined symbol

    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...
Back
Top