stdin

  1. 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...
  2. 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...
  3. 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