stdin

  1. tembun

    Shell Reattach stdin to the terminal after using heredoc

    Hello! I'm developing a TUI program that is controlled via the commands entered into stdin. I want to automate the process of testing: I want to write a script that would start this program with some initial input data (to set the proper state of the program) and then hand the input to me so...
  2. tembun

    Shell What is the best way to implement -y (yes) option for POSIX shell script?

    Suppose we have two scripts: one that prompts for the input and one that acts as a wrapper for the first one: prompt: #!/bin/sh printf "Enter: " 1>&2 read input echo "You entered: ${input}" wrapper: #!/bin/sh ./prompt Now imagine that we want to implement the behaviour for the wrapper that...
  3. K

    read the password from stdin when using "doas"

    Hi I want to automatically transfer a setup script and run it on freshly installed FreeBSD 13.2 machines. The problem is that the script requires elevated privileges. In linux, the command $ echo 'password' | sudo -S ./setup.sh would do the trick, but it seems like it's not possible to read the...
  4. D

    Geli and default US

    Hello, I want try to change the US keymap (Stdin?) that GELI uses to input the password. I used the automatic ZFS Geli encryption. Is it possible to change to spanish keyboard? I was reading this: But not solution found. Thanks, I am newbie at Freebsd. Sorry for my English.
Back
Top