anyterm/anyterm-cmd
Mohammed Morsi 561d4b2b0b - correct anyterm dependency for anyterm-httpd subpkg
- removed useradd/group add stdout redirection
- def attr for anyterm-httpd subpkg
- slight rewording and other trivial tasks
Tue Jul 14 2009 <mmorsi@redhat.com> - 1.1.29-7
- removed useradd/group add stderr redirection
- used all macros where i could
- create httpd subpackage for anyterm/httpd integration
Mon Jul 13 2009 <mmorsi@redhat.com> - 1.1.29-6
- fixed location of %%doc macro, and resolved other macro issues
- moved anyterm-cmd from bindir to libexecdir/anyterm
Thu Jul 09 2009 <mmorsi@redhat.com> - 1.1.29-5
- added CFLAGS / CXXFLAGS to pick up RPM_OPT_FLAGS
Tue Jul 07 2009 <mmorsi@redhat.com> - 1.1.29-4
- removed pbuild
- removed executable stack (requires prelink/execstack)
Thu Apr 09 2009 <mmorsi@redhat.com> - 1.1.29-3
- updated spec / init based on rpmlint output
Wed Apr 08 2009 <mmorsi@redhat.com> - 1.1.29-2
- Serve static content via apache
- Use 1.1.29 release and newly added patches
Mon Mar 16 2009 <mmorsi@redhat.com> - 1.1.29-1
- Initial checkout and build.
2009-07-28 15:37:26 +00:00

16 lines
398 B
Bash

#!/bin/bash
# Default command anyterm will run.
# Simply prompt the user for a username and
# ssh locally as that user
while : ; do
echo -n "Username: "
read U
# Make sure it does not start with a "-" and only contains valid
# username characters.
if [[ "$U" =~ "^[A-Za-z0-9_][A-Za-z0-9_-]*\$" ]]; then
ssh "$U@localhost"
else
echo "Bad username."
fi
done