experts - i just want to run the script in SSH just like TELNET. But looks like I'm having problem re environment variables (with SSH)
my script file:
-rwx--x--x 1 amrik dba 88 Jul 9 23:23 ABC
SSH:
1.) amrik@tru: /usr/users/amrik>. ABC
ksh: ABC: not found
2.) amrik@tru: /usr/users/amrik>./ABC
ABC: Sat Jul 9 23:34:18 PDT 2005
End ABC Sat Jul 9 23:34:18 PDT 2005
amrik@tru: /usr/users/amrik>echo $DATAHOME
amrik@tru: /usr/users/amrik>
(I'm expecting reply from echo $DATAHOME*)
TELNET:
amrik@tru: /usr/users/amrik>. ABC
ABC: Sat Jul 9 23:40:12 PDT 2005
End ABC Sat Jul 9 23:40:12 PDT 2005
amrik@tru: /usr/users/amrik>echo $DATAHOME
/usr/users/amrik/data/*
amrik@tru: /usr/users/amrik>
my script file:
-rwx--x--x 1 amrik dba 88 Jul 9 23:23 ABC
SSH:
1.) amrik@tru: /usr/users/amrik>. ABC
ksh: ABC: not found
2.) amrik@tru: /usr/users/amrik>./ABC
ABC: Sat Jul 9 23:34:18 PDT 2005
End ABC Sat Jul 9 23:34:18 PDT 2005
amrik@tru: /usr/users/amrik>echo $DATAHOME
amrik@tru: /usr/users/amrik>
(I'm expecting reply from echo $DATAHOME*)
TELNET:
amrik@tru: /usr/users/amrik>. ABC
ABC: Sat Jul 9 23:40:12 PDT 2005
End ABC Sat Jul 9 23:40:12 PDT 2005
amrik@tru: /usr/users/amrik>echo $DATAHOME
/usr/users/amrik/data/*
amrik@tru: /usr/users/amrik>