Colin J. Raven wrote:
Greetings all!
Trying to create a custom login message for csh users.
I put the following in /etc/csh.login
snip
###
if [ `whoami` = user1 ]; then
echo
echo -e This is a test message for user1 \
echo
else
if [ `whoami` = user2
snippage
+ if [ `whoami` = test ]; then
+ echo
+ echo -e This is a test message for user test \
+ echo
+ fi
+ ###
+ /snip
+ and got an error upon subsequent login as user test:
+ if: Expression Syntax. (without parens)
+
+ Anyone got
On Fri, Feb 14, 2003 at 01:10:15PM +0100, Colin J. Raven wrote:
Greetings all!
Trying to create a custom login message for csh users.
I put the following in /etc/csh.login
snip
###
if [ `whoami` = user1 ]; then
echo
echo -e This is a test
On Fri, Feb 14, 2003 at 02:40:17PM +0100, Colin J. Raven typed:
snippage
+ if [ `whoami` = test ]; then
+ echo
+ echo -e This is a test message for user test \
+ echo
+ fi
+ ###
+ /snip
+ and got an error upon subsequent login as
Colin J. Raven wrote:
snippage
+ if [ `whoami` = test ]; then
+ echo
+ echo -e This is a test message for user test \
+ echo
+ fi
+ ###
+ /snip
+ and got an error upon subsequent login as user test:
+ if: Expression Syntax. (without