- Community Home
- >
- Servers and Operating Systems
- >
- Legacy
- >
- HPE 9000 and HPE e3000 Servers
- >
- commands history to 2 files
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
тАО06-20-2001 10:19 PM
тАО06-20-2001 10:19 PM
commands history to 2 files
(http://forums.itrc.hp.com/cm/QuestionAnswer/1,1150,0x7394ee3e323bd5118fef0090279cd0f9,00.html)
Rick,
for each command it maybe dificult to do, but I keep the date of each login buy adding that last line to the user's profile:
HISTFILE=$HOME/.sh_history
export HISTFILE
echo "`date`\n" >> .sh_history
one more question
can i also send the commands for that 1 username
to another file (that he can't edit) + the ime/date-stamp?
so to sh_history AND /tmp/sh_history
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2001 01:13 AM
тАО06-21-2001 01:13 AM
Re: commands history to 2 files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2001 01:23 AM
тАО06-21-2001 01:23 AM
Re: commands history to 2 files
cause i dont want any time between the writing to
the sh_history and the backup file.
In case the user himself changes the file meanwhile...
more ideas?
:)
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2001 02:18 AM
тАО06-21-2001 02:18 AM
Re: commands history to 2 files
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
тАО06-21-2001 09:18 AM
тАО06-21-2001 09:18 AM
Re: commands history to 2 files
like:
$ pwd
/home/vbe
$ su
Password:
# cd /var/adm/root
# umask 027
# ln -s /home/vbe/.sh_history titi
ll titi
lrwxr-x--- 1 root sys 21 Jun 21 19:17 titi -> /home/vbe/.sh_history
# ll -ld /var/adm/root
dr-xr-x--- 2 bin bin 96 Jun 21 19:17 /var/adm/root
#