Operating System - Tru64 Unix
1748136 Members
3474 Online
108758 Solutions
New Discussion юеВ

Re: read from /dev/pts

 
jousif
Frequent Advisor

read from /dev/pts

Hi Admins
many many thanks to all for fast help,
I need to read all data from /dev/pts
for monitor and recored it to text file
then I reading it,
thanks in advise.
6 REPLIES 6
Muthukumar_5
Honored Contributor

Re: read from /dev/pts

Do you want to monitor tty login commands? Plz elloborate more.

hth.

Easy to suggest when don't know about the problem!
Vijeesh CTK
Trusted Contributor

Re: read from /dev/pts

hello,

you can use script for achieving this.

like if you want to monitor a specific user put the string "script -a filename " so that all the user initiated commands will log into the file name u have specified.

Smiles

Viju
Muthukumar_5
Honored Contributor

Re: read from /dev/pts

If you are looking for auditing then,

a) setup history files
b) Use script -a in profile
c) Use tee to update all details.

hth.
Easy to suggest when don't know about the problem!
jousif
Frequent Advisor

Re: read from /dev/pts

many thanks for fast reply,
I need to read /dev/pts devices without
using script command,
I dont need to put any things in .profile file,
many thanks.
Ivan Ferreira
Honored Contributor

Re: read from /dev/pts

Is that possible?

Maybe you will like to try this software:

http://www.bangmoney.org/presentations/screen.html
Por que hacerlo dificil si es posible hacerlo facil? - Why do it the hard way, when you can do it the easy way?
jousif
Frequent Advisor

Re: read from /dev/pts

thanks to all,
suppose there are three users working on same server,
user1 /dev/pts so..
I want to read the /dev/pts1,/dev/pts2,/dev/pts3 for these users
many thanks,