[ale] Scriptable motd for initial SSH login?

James Sumners james.sumners at gmail.com
Wed Sep 14 16:52:01 EDT 2011


Okay, so how about:

#!/bin/bash

if [ ! -t 1 ]; then
    exit
fi
...
...


On Wed, Sep 14, 2011 at 16:38, Michael H. Warfield <mhw at wittsend.com> wrote:
> Actually, thinking about it, you might even check to see of /dev/tty
> exists for you (that would be your "console" to a ptty) and if so write
> straight to it.  If it doesn't, you might not want to do anything,
> stdout or stderr, since you don't have a ptty allocated.


-- 
James Sumners
http://james.roomfullofmirrors.com/

"All governments suffer a recurring problem: Power attracts
pathological personalities. It is not that power corrupts but that it
is magnetic to the corruptible. Such people have a tendency to become
drunk on violence, a condition to which they are quickly addicted."

Missionaria Protectiva, Text QIV (decto)
CH:D 59



More information about the Ale mailing list