Just a sample of the Echomail archive
Cooperative anarchy at its finest, still active today. Darkrealms is the Zone 1 Hub.
|    TUXPOWER    |    Advocacy for the Linux operating system    |    1,237 messages    |
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
|    Message 176 of 1,237    |
|    Damon Getsman to All    |
|    OpenBSD 5.4 /bin/sh 'public domain Bourn    |
|    31 Dec 13 23:18:29    |
   
    I've been trying lately to do a lot of systems automation tasks in the most   
   recent OpenBSD release environment. For a few of them, I need to unlock some   
   encrypted filesystems. However, if there is nobody present at the terminal to   
   type in a passphrase, I need it to default around unlocking those and then   
   execute different code. Simple logic, but not so simple to execute because it   
   seems that OpenBSD's /bin/sh doesn't support the 'read' command with a timeout.   
   There is supposed to be a way to do it via 'stty', also, but I haven't yet been   
   able to get that working, either. Here's the script snippet that I've been   
   toying with:   
      
    echo -n "Please enter crypto-img passphrase: "   
    oldstty=`/bin/stty -g`   
    /bin/stty raw time 0 min ${1:-45}   
    IFS='' read -r pphrase   
    /bin/stty $oldstty   
      
    This is attempting to use the stty implementation, obviously. I can dig up   
   some of the other methods that I was trying to use if anybody would like to   
   have a gander at them, as well. I'd really appreciate any pointers in the   
   right direction with this, because this is the glue that's going to keep my   
   system up, an bouncing back up after a punch in the face, for the long haul,   
   provided it all works out.   
    Thank you muchly and have a happy new year (if you're not in it already!).   
      
    --Damo dice, "Perhaps today IS a good day to die!"   
   --- SBBSecho 2.24-OpenBSD   
    * Origin: TTBBS-telnet bismaninfo.hopto.org 8023 (1:14/0) (1:282/1057)   
|
[   << oldest   |   < older   |   list   |   newer >   |   newest >>   ]
(c) 1994, bbs@darkrealms.ca