- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- Re: Capture Session
Categories
Company
Local Language
Forums
Discussions
Forums
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
Discussions
Discussions
Discussions
Forums
Forums
Discussions
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
- BladeSystem Infrastructure and Application Solutions
- Appliance Servers
- Alpha Servers
- BackOffice Products
- Internet Products
- HPE 9000 and HPE e3000 Servers
- Networking
- Netservers
- Secure OS Software for Linux
- Server Management (Insight Manager 7)
- Windows Server 2003
- Operating System - Tru64 Unix
- ProLiant Deployment and Provisioning
- Linux-Based Community / Regional
- Microsoft System Center Integration
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Discussion Boards
Community
Resources
Forums
Blogs
- Subscribe to RSS Feed
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Bookmark
- Subscribe
- Printer Friendly Page
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-13-2011 01:47 PM
тАО03-13-2011 01:47 PM
I am in need to capture session data (commands and output which are executed during that login session) and put that in a file(date wise saved).
Shell is tcsh. Has anyone setup something like that using script command?
Please suggest.
Thanks,
Allan.
Solved! Go to Solution.
- Tags:
- Script
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-13-2011 01:59 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2011 08:24 AM
тАО03-14-2011 08:24 AM
Re: Capture Session
If this is your intention, keep in mind that, when you execute the script command, the typescript file (or any other name you choose) gets created by the ownership of the user, who is running the shell. Hence, it is open to modification by the user. So, if they chose to delete lines out of it, they can do it without anyone else noticing.
If what you are doing is just to document what you are doing while in the shell, script utility is perfectly fine for it.
HTH
UNIX because I majored in cryptology...
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2011 05:50 PM
тАО03-14-2011 05:50 PM
Re: Capture Session
script -a /tmp/log
Is there a proper implementation of this command?
Thanks,
Allan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-14-2011 09:42 PM
тАО03-14-2011 09:42 PM
Re: Capture Session
I don't think you can. The user must invoke it manually.
Is it the last command in .bashrc?
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2011 03:14 PM
тАО03-15-2011 03:14 PM
Re: Capture Session
Is there something which I can put in .bashrc or .cshrc to record commands and output and route it to a file?
Thanks,
Allan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2011 07:44 PM
тАО03-15-2011 07:44 PM
Re: Capture Session
Well. in a real shell you set use "set -x" to record execution of commands.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-15-2011 10:09 PM
тАО03-15-2011 10:09 PM
Re: Capture Session
Regards,
Allan.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-16-2011 12:07 AM
тАО03-16-2011 12:07 AM
Re: Capture Session
For the scummy C shell there is:
set echo
See the "-x" command option.
And for -v: set verbose
- Tags:
- scummy C shell
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО03-17-2011 09:05 PM
тАО03-17-2011 09:05 PM
Re: Capture Session
#command 1
#command 2
.
.
.
.
.
.
#commandn
#exit
you will have the output in /tmp/xyz.txt file
you may refer man pages of script