bash

  1. B

    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...
  2. 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.
  3. 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...
  4. 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...
  5. 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...
  6. 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...
  7. 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...
  8. 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
  9. 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...
  10. 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...
  11. daBee

    nginx Passenger Shell Logins && Associated Errors

    Hi folks. I hope this is the proper place for this thread. I have an nginx/Passenger/Sinatra situation. I've sent over a website to my server, and nginx has no user set. I've been told NOT to run it as root, but that's been highly disputed and it's never a clear answer. So because of...
  12. NapoleonWils0n

    Other Switch audio device script

    I just knocked up a little bash script to switch audio devices because i use i3wm instead of Desktop like gnome I have 3 audio devices, the built in speakers, headphones and a usb dac So i created a script to easily switch audio outputs called switch-audio, which lets you see the current...
  13. vermaden

    HOWTO: Ghost in the Shell - Part 2

    I would like to share HOWTO in Ghost in the Shell series about efficient working in the UNIX shell environment. Ghost in the Shell - Part 2 https://vermaden.wordpress.com/2018/07/08/ghost-in-the-shell-part-2/
  14. spython01

    Shell Duplicity backup script not running via cronjob

    I am running FreeBSD 11.1-RELEASE-p10 and trying to schedule a cronjob to run a daily script which will use duplicity to backup my ~/Documents directory to an Azure blob. The script (~/.duplicity/.backup1.sh) reads as follows: #!/bin/bash # the true variable values are in my real script...
  15. fullauto2012

    Shell DB backup Script

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

    Can Java execute bash script by default?

    Can Java running on FreeBSD execute bash script by default? I'm getting this error: Caused by: java.io.IOException: Cannot run program "/exo/platform-public-distributions-develop/plf-community-tomcat-standalone/target/platform-community-5.0.x-SNAPSHOT/platform-community-5.0.x-SNAPSHOT/addon"...
  17. daBee

    Bash Login Profile Read Order

    I rely on a bunch of aliases and directives in my user (admin) ~/.bash_profile. I quite often have to enter superuser to get some stuff done efficiently. I would like to source /home/rich/.bash_profile but I am having no luck finding which file to shove that directive in for it to happen upon...
  18. daBee

    Exit to user from SU in bash script

    Is there a way I can initiate a script as root, then exit to my normal admin user (sudoers) to accomplish further tasks as the user? I tried exit but the script stopped completely. Things like RVM like to be installed using the user.
  19. Preacher

    Shell 'Garbage' output during script execution (via cron)

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

    Shell Strange Bash problem

    While debugging a script I wrote for backups I noticed some strange problems. I snipped out the log directory sanity part of the script to show you and I'm hoping someone can shed some light on this... root@Washington:/usr/home/tim.falardeau/LOGS # ls 20160806.log 20160813.log 20160820.log...
Top