Hi All,
On Sun Solaris 9 machine I have got the following error if the default
shell is set to /bin/sh "-sh: TIMEOUT=900: is not an identifier"
TIMEOUT is specified in /etc/profile
readonly TIMEOUT=900
export TIMEOUT
If I run set TIMEOUT is not their, but even if I modify the .profile
and set the value again
TIMEOUT=900
export TIMEOUT
The set will show that the TIMEOUT is set but the message every time I
am login "-sh: TIMEOUT=900: is not an identifier" is there.
Thanks,
Ivan
|
|
0
|
|
|
|
Reply
|
lowkwell (12)
|
9/30/2005 3:24:23 PM |
|
I have no explainnation for your problem but here are my 2 cents :
1- did you check any 0(zero) O(Uppercase o) mistake ?
2- If you are talking about the system variable to automatically
disconnet iddle connections this is not the right spelling try
TMOUT=900.
But setting a variable TIMEOUT to charcaters string "900" should not
leads to the behaviour you get...
|
|
0
|
|
|
|
Reply
|
thulhu
|
9/30/2005 4:02:22 PM
|
|
On 2005-09-30, lowkwell@hotmail.com <lowkwell@hotmail.com> wrote:
> On Sun Solaris 9 machine I have got the following error if the default
> shell is set to /bin/sh "-sh: TIMEOUT=900: is not an identifier"
>
> TIMEOUT is specified in /etc/profile
> readonly TIMEOUT=900
Change this to
TIMEOUT=900
readonly TIMEOUT
The syntax of /bin/sh is here more restrictive than the syntax of
ksh or bash. /bin/sh permits just variable names to be given as
argument to ``readonly'' but no assignments.
Andreas.
|
|
0
|
|
|
|
Reply
|
comp
|
9/30/2005 4:09:44 PM
|
|
I'll bet Bourne wishes had had .0001 pennies every time
someone executed his shell.
..
|
|
0
|
|
|
|
Reply
|
greek_philosophizer
|
9/30/2005 4:14:37 PM
|
|
In <1128093863.556276.26060@g47g2000cwa.googlegroups.com> lowkwell@hotmail.com writes:
>On Sun Solaris 9 machine I have got the following error if the default
>shell is set to /bin/sh "-sh: TIMEOUT=900: is not an identifier"
>TIMEOUT is specified in /etc/profile
>readonly TIMEOUT=900
>export TIMEOUT
That's incorrect shell syntax. It should be:
TIMEOUT=900
readonly TIMEOUT
--
-Gary Mills- -Unix Support- -U of M Academic Computing and Networking-
|
|
0
|
|
|
|
Reply
|
Gary
|
9/30/2005 4:42:37 PM
|
|