Problem in shell

From: paulose kutty (paulosekutty@hotmail.com)
Date: Sat Jul 27 2002 - 05:17:07 EDT


Hi friends,
I have a problem in the shell shown below (a sample script).

#! /bin/ksh
abc=123
echo $abc
su  oracle <<ENDC
abc = 456
echo $abc
ENDC

In the above shell first echo will give an out put 123
But the second output is not giving out put 456, Instead it is showing
output 123
Ie assignment after su has no effect.
Why it is showing 123?, How can I correct it.

Regards paulosekutty

_________________________________________________________________
Send and receive Hotmail on your mobile device: http://mobile.msn.com
_______________________________________________
sunmanagers mailing list
sunmanagers@sunmanagers.org
http://www.sunmanagers.org/mailman/listinfo/sunmanagers



This archive was generated by hypermail 2.1.7 : Wed Apr 09 2008 - 23:24:40 EDT