Unix Shell - which command executed on which terminal

This is Interesting: Free IT Magazines  
Home > Archive > Unix Shell > September 2006 > which command executed on which terminal





You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

Author which command executed on which terminal
Danish

2006-09-23, 7:29 am

Hi All,
Can I know, on which terminal a particulaer command was executed....

For eg...was

$ls executed on pts/2 or pts/3


Is there any command like

$last etc

Thanks
Danish

John DuBois

2006-09-23, 7:28 pm

In article <1159014008.581142.275940@i3g2000cwc.googlegroups.com>,
Danish <me.linuxadmin@gmail.com> wrote:
>Hi All,
>Can I know, on which terminal a particulaer command was executed....
>
>For eg...was
>
>$ls executed on pts/2 or pts/3
>
>
>Is there any command like
>
>$last etc


If your OS supports process accounting, you can turn it on and it will give you
this information (using 'acctcom' or its equivalent). Only executable names
are recorded, not arguments.

John
--
John DuBois spcecdt@armory.com KC6QKZ/AE http://www.armory.com/~spcecdt/
Sponsored Links






Free braindumps | Software forum | Database administration forum

Copyright 2003 - 2008 webservertalk.com