Microsoft
Software
Hardware
Network
Question : 'script' session logging in Linux, have to exit twice, need to exit once
I am using "script" to capture sessions on my Linux hosts. I added the following lines to /etc/profile and it works fine, but when the user types
, it only stops the script session, and they are still logged in and essentially can do anything without session logging. I need to figure out how to end the script session and kill their ssh session at the same time.
Code Snippet:
1: 2: 3:
dte=`date +%Y_%m_%d_%H_%M` script -q /var/log/telnet/$dte-syslog01.$USER
Open in New Window
Select All
Answer : 'script' session logging in Linux, have to exit twice, need to exit once
You could do
script -q /var/log/telnet/$dte-syslo
g01.$USER && exit
Random Solutions
Can't send email to local Exchange server
Cannot display complete email address in Outlook Web Access
Outlook crashing NACMNLIB.DLL not found error
PERL DBI MYSQL Import .sql into MySQL using PERL DBI
Exchange Mailbox / Address Book Quota
create tabs and image ist in Flash?
XP installation: Drive letters
SQL SERVER 2000 with Windows Server 2003 R2 SP2
Need to insert a value into a textbox (which is in an iFrame) from an HTML page
Delegation in W2K3 AD not working as expected