It is currently Thu, 20 Jan 2022 04:55:01 GMT



 
Author Message
 autologout in tcsh
Hello,

This must be an exceedingly simple problem but I've been unable to solve it.
Inserting the line

  set autologout = 30

into '.cshrc' will cause tcsh to perform automatic logout after half an
hour. So far so good. But it is mentioned in man pages that you can also
give an optional "second word" argument to specify the time interval
after which tcsh will lock the unused console. I've unsuccessfully tried:

  set autologout = 30 10

This one gives me "variable name must begin with a letter". Alternative
attempts

  set autologout = (30 10)
  set autologout = 30, 10      

have not worked either. 'echo $autologout' will show '30 10' but it still
doesn't work, i.e. console is not locked. (Actually I've tried the
combination '30 1' so that I wouldn't have to wait 10 minutes
for something to happen).

So could it be that my tcsh has been compiled without the option that
allows console locking? Is there a way to see which options are enabled?

I'm embarrassed but I don't remember which version of tcsh we're talking
about, but if this helps, it is the one that comes with GNU/Linux Debian
2.1. Shell version is probably 6.x...TENEX something, I think.

Thanks in advance.

Regards,
Vesa-Matti Kari

****************************************************************************
                 "Facts are stupid things" - Ronald Reagan
****************************************************************************



 Sat, 10 Aug 2002 03:00:00 GMT   
 autologout in tcsh
Vesa-Matti J Kari <vmk...@cc.helsinki.fi> writes:

The correct syntax is

  set autologout = (30 10)

The $version variable shows the settings of several configuration
options; 'al' indicates that autologout is enabled.  (I'm actually not
sure whether this indicates whether it's enabled, or just specifies
the default if the user doesn't set the "autologout" variable.)

I just tried setting autologout to (30 1) in tcsh 6.07.02; the shell
terminated after 1 minute.

(Personally, I never use the autologout feature.)

--
Keith Thompson (The_Other_Keith) k...@cts.com  <http://www.ghoti.net/~kst>
San Diego Supercomputer Center           <*>  <http://www.sdsc.edu/~kst>
Welcome to the last year of the 20th century.



 Sat, 10 Aug 2002 03:00:00 GMT   
 autologout in tcsh
In article <88u5t4$e9...@oravannahka.helsinki.fi>,
  Vesa-Matti J Kari <vmk...@cc.helsinki.fi> wrote:

<snip>

This will work....
set autologout = (30,10)

ishaq

Sent via Deja.com http://www.deja.com/
Before you buy.



 Sun, 11 Aug 2002 03:00:00 GMT   
 autologout in tcsh
In article <yecitzgbxfd....@king.cts.com>,
  Keith Thompson <k...@cts.com> wrote:

<snip>

<snip>

please read the manual....

the second variable is for locking the terminal..... this is obviously
not useful if you are using X-windows....

the correct usage is

set autologout = (30,10)

this will lock the terminal after 10 minutes, and logout after 30 mins.

it can be useful sometimes....

ishaq

Sent via Deja.com http://www.deja.com/
Before you buy.



 Sun, 11 Aug 2002 03:00:00 GMT   
 autologout in tcsh

Thanks a lot for your help, guys. The version I had problems
with was 6.08.1. Yesterday evening I compiled 6.09.00 and came across
the magic spell

 set autologout = ( 30 1 )

which happily worked. Probably this would have been all right in the older
version too, but I didn't catch your replies at that time. I finally managed
to figure out the above syntax by a rather frustrating
trial-and-error method. :-)

In any case now the console gets locked after 1 minutes of inactivity, but
who would have guessed... Suddenly there is a new problem: the console does
not accept the user password, claiming it to be incorrect although I'm
typing it quite correctly. After five attempts it will automatically
logout so the locking feature is not very useful at the moment.

Regards,
Vesa-Matti Kari

****************************************************************************
                 "Facts are stupid things" - Ronald Reagan
****************************************************************************



 Sun, 11 Aug 2002 03:00:00 GMT   
 autologout in tcsh

I did read the manual.

I don't think so.  That sets $autologout to a one-element array;
$autologout[1] is "30,10".  The correct syntax is

    set autologout = (30 10)

which set $autologout to a two-element array, with values "30" and
"10".  (Unless $autologout works a lot differently than I think it
does -- which is possible, since I wasn't able to get it to work.)

I don't deny that; I just haven't found it useful myself.

--
Keith Thompson (The_Other_Keith) k...@cts.com  <http://www.ghoti.net/~kst>
San Diego Supercomputer Center           <*>  <http://www.sdsc.edu/~kst>
Welcome to the last year of the 20th century.



 Sun, 11 Aug 2002 03:00:00 GMT   
 
   [ 6 post ] 

Similar Threads

1. Turn off autologout on Tcsh?

2. autologout in tcsh

3. Pine won't let tcsh autologout

4. TCSH Autologout question.

5. Question about "autologout" in tcsh

6. tcsh - autologout problem

7. autologout/lock on tcsh ...

8. tcsh : autologout[2] doesn't watch for shadowing

9. tcsh - autologout question

10. /bin/tcsh vs /usr/local/bin/tcsh


 
Powered by phpBB © 2000, 2002, 2005, 2007 phpBB Group.
Designed by ST Software