Operating System - HP-UX
1836881 Members
1885 Online
110111 Solutions
New Discussion

Re: Trigger on someones ligon

 
SOLVED
Go to solution
Klaas D. Eenkhoorn
Regular Advisor

Trigger on someones ligon

Hi all,

Is it possable to place a trigger on the event of someones logon to the system ?
And if this is possible how do you do that.

The question is, we have an account for external parties for remote support.
Now we would like to know when this account is used, for how long and if possible what they have done.

The account uses csh.

Can someone help ?

Klaas Eenkhoorn
10 REPLIES 10
Pete Randall
Outstanding Contributor

Re: Trigger on someones ligon

You could put something in their .login to notify you or in csh's /etc/profile equivalent (sorry - I can't remember what it is) to test if this was that particular account and notify you.


Pete

Pete
Pete Randall
Outstanding Contributor

Re: Trigger on someones ligon

Ahh! Found it: /etc/csh.login.


Pete

Pete
Peter Godron
Honored Contributor
Solution

Re: Trigger on someones ligon

Klass,
have you read:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=217043
This explains how you can monitor the user actions.
The 'last' command is a quick way to show users login and connect time.
Regards
Peter Godron
Honored Contributor

Re: Trigger on someones ligon

Klass,
have you had any success with any of the solutions? Please update or close.
Regards
Klaas D. Eenkhoorn
Regular Advisor

Re: Trigger on someones ligon

Well through the link jou've given i've found a tool called ttyrec.
For me this would be an solution but this tool must bee compiled before it can be used with a gcc compiler.
I do'nt have this compiler.

Does someone have the tool compiled allready including the player ?
I have hpux 11.11.

Klaas
Stephen Keane
Honored Contributor

Re: Trigger on someones ligon

Attached is a gzipped tar archive of

ttyplay, ttytime and ttyrec

assuming those are what you want. It's release 1.0.6 built on HP-UX 11.11
Klaas D. Eenkhoorn
Regular Advisor

Re: Trigger on someones ligon

Is in normal that ttyrec is slow on response ?
It seems to hang during use.

Klaas
Stephen Keane
Honored Contributor

Re: Trigger on someones ligon

I have no idea, I've never actually run it, I just built it for you!
renarios
Trusted Contributor

Re: Trigger on someones ligon

Hi Klaas,

Take a look at this forum:
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=861862

I guess that's about the same question you have

Cheers / groetjes,

Renarios
Nothing is more successfull as failure
Klaas D. Eenkhoorn
Regular Advisor

Re: Trigger on someones ligon

I've used the option of sending an e-mail using the csh.login profile.

Klaas