Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

TELNET & SSH

Status
Not open for further replies.

johny2K

Technical User
Dec 19, 2001
184
CA
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>
 
From SSH, as at 2. (above), try
. ./ABC

Also from both SSH and TELNET, to try to track down the environmental variable issue, try
env
and study the differences.

I hope that helps.

Mike
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top