07-26-2005
Session time out
Hi,
We have a generic login id :- ship1 .
There can be any number of sessions for this login ID. I'm working on a way to log off idle sessions ( not logins) . I searched the forum and found
TMOUT. Is it at login level or session level ? ( looks like it is at login level)
But I added it to .profile
********
TMOUT=100
export TMOUT
**********
Then I tried logging as ship1 , but it did not log out the user after 100 seconds..
Even if it works, will it work at session level ? I don't want to logoff sessions which are active . Is there any unix command to find out session idle time, so that I could use that in my application program .( this is second option if we can't do it at profile level)
We are using Solaris 2.8 .
Any ideas ??
Thanks..
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Please lemme know how & where to set the session time for ftp connection in Wu-ftp .
Regards
Gambhi. (5 Replies)
Discussion started by: gambhi_s
5 Replies
2. UNIX for Dummies Questions & Answers
How can an automated script be setup to run at a later time in the day. cron runs recurring tasks. I am interested in a one time process.
I want to back up a number of files whenever I make changes to an application and ftp for backup purposes. The script to automate the zipping of files has... (1 Reply)
Discussion started by: msmkeml
1 Replies
3. Shell Programming and Scripting
Hi there.
How do I make the DB connection see the parameter variables passed to the unix script ? The code snippet below isn't working properly.
sqlplus << EOF
user1@db1/pass1
BEGIN
PACKAGE1.perform_updates($1,$2,$3);
END;
EOF
Thanks in advance,
Abrahao. (2 Replies)
Discussion started by: 435 Gavea
2 Replies
4. Shell Programming and Scripting
Hi,
Apologies if anyone has read my recent post on the same subject in the Linux forum, just thought actually the solution might more likely come from scripting.
Essentially, I am trying to restrict access to directories based on the user's name AND their location on a session-by-session... (3 Replies)
Discussion started by: en7smb
3 Replies
5. Solaris
I am not able to login in gnome session and java session in Sun solaris 9& 10 respectively through xmanager as a nis user, I am able to login in common desktop , but gnome session its not allowing , when I have given login credentials, its coming back to login screen, what shoul I do to allow nis... (0 Replies)
Discussion started by: durgaprasadr13
0 Replies
6. Shell Programming and Scripting
Besides 'who am i' and 'tty' what commands could be used to determine if a session is interactive as compared to a web process or cron process. Any command should work with the common unix variants. (3 Replies)
Discussion started by: jgt
3 Replies
7. Solaris
what is the difference between desktop session and console session in solaris
as i am wondering we use option -text for the former and -nowin for the later (1 Reply)
Discussion started by: kishanreddy
1 Replies
8. UNIX for Advanced & Expert Users
Below code runs n number of session at a time when called. I want to restrict it to run only for 3 sqlplus at a time. Is there a way to do the same.
for name in `cat abc.txt`
do
(sqlplus -s usert/password@host <<-EOF>> error.txt
SET LINESIZE 1000
select '$name',... (4 Replies)
Discussion started by: ATWC
4 Replies
9. UNIX for Advanced & Expert Users
Hi,
How can I find out the login and logout time of the old UNIX session/user?. (2 Replies)
Discussion started by: sharif
2 Replies
LEARN ABOUT HPUX
acctcon2
acctcon(1M) acctcon(1M)
NAME
acctcon, acctcon1, acctcon2 - connect-time accounting
SYNOPSIS
[options]
[options]
DESCRIPTION
The command converts a sequence of login/logoff records read from its standard input to a sequence of records, one per login session. Its
input should normally be redirected from or Its output is ASCII, giving device, user ID, login name, prime connect time (seconds), non-
prime connect time (seconds), session starting time (numeric), and starting date and time. Prime connect time is defined as the connect
time within a specific prime period on a non-holiday weekday (Monday through Friday). The starting and ending time of the prime period and
the year's holidays are defined in file
expects as input a sequence of login session records, produced by and converts them into total accounting records (see format in acct(4)).
combines the functionality of and into one program. It takes the same input format as and writes the same output as
recognizes the following options:
Print input only, showing line name, login name,
and time (in both numeric and date/time formats).
maintains a list of lines on which users are logged in.
When it reaches the end of its input, it emits a session record for each line that still appears to be active. It
normally assumes that its input is a current file, so that it uses the current time as the ending time for each ses-
sion still in progress. The flag causes it to use, instead, the last time found in its input, thus ensuring reason-
able and repeatable numbers for non-current files.
and recognize the following options:
file is created to contain a summary of line usage showing line name, number of minutes used, percentage of total elapsed
time used, number of sessions charged, number of logins, and number of logoffs. This file helps track line usage,
identify bad lines, and find software and hardware oddities. Hang-up, termination of (see login(1)), and termination
of the login shell each generate logoff records, so that the number of logoffs is often three to four times the num-
ber of sessions. See init(1M) and utmp(4).
file is filled with an overall record for the accounting period, giving starting time, ending time, number of reboots, and
number of date changes.
When this option is used, the records of the type found in
are read from the specified input.
EXAMPLES
These commands are typically used as shown below. The file is created only for the use of commands described by the acctprc(1M) manual
entry:
or
With option:
or
Note:
The file can be either or a file containing records of the type found in
WARNINGS
The line usage report is confused by date changes. Use (see fwtmp(1M)) to correct this situation.
FILES
SEE ALSO
login(1), acct(1M), acctcms(1M), acctcom(1M), acctmerg(1M), acctprc(1M), acctsh(1M), fwtmp(1M), init(1M), utmpd(1M), runacct(1M), acct(2),
getbwent(3C), acct(4), utmp(4).
STANDARDS CONFORMANCE
acctcon(1M)