- Community Home
- >
- Servers and Operating Systems
- >
- Operating Systems
- >
- Operating System - HP-UX
- >
- histfile in csh
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
Forums
Discussions
Discussions
Discussions
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
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
09-15-2005 06:31 PM
09-15-2005 06:31 PM
I have a critical system which have many users. I want to log a data which contains who run which command at what time and connected from which ip. In ksh I can do it with setting the HISTFILE variable to export HISTFILE=/usr/history/user_hist/${usr}_${user}_$$.tmp in the /etc/profile. For csh and tcsh, I did the same settings in csh.login file but it didn't run. Also I did the same settings in users profile (.cshrc and .login) but no change. Can't we do this kind of setting in csh? If so what can I do for logging the users.
Thanks,
Solved! Go to Solution.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 06:38 PM
09-15-2005 06:38 PM
Re: histfile in csh
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 06:40 PM
09-15-2005 06:40 PM
Re: histfile in csh
.login file in your HOME Directory as,
set history=1000
and save it.
Next login for that account will be with history.
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 06:43 PM
09-15-2005 06:43 PM
Re: histfile in csh
-Arun
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 06:44 PM
09-15-2005 06:44 PM
Re: histfile in csh
http://forums1.itrc.hp.com/service/forums/questionanswer.do?threadId=723200
Good Luck,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 06:45 PM
09-15-2005 06:45 PM
Re: histfile in csh
set history = 256
set savehist = 256 merge
It writes to .history file but it doesn't write to /usr/history/user_hist/${usr}_${user}_$$.tmp file.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 06:47 PM
09-15-2005 06:47 PM
Re: histfile in csh
hth.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 06:58 PM
09-15-2005 06:58 PM
Re: histfile in csh
edit /etc/csh.login
works for csh and tcsh users. No need to enable that on individual basis
Enjoy, Have FUN! H.Merijn
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 06:58 PM
09-15-2005 06:58 PM
Re: histfile in csh
http://wks.uts.ohio-state.edu/unix_course/intro-61.html
it may help.
-AV
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 07:07 PM
09-15-2005 07:07 PM
Re: histfile in csh
Unfortunately,
I set it in /etc/csh.login. It doesn't work.
I set it also in .login and .cshrc files in the home directory of a user.
In both of them it doesn't write to the file that I've set.
"setenv HISTFILE /usr/users/`whoami`/.history_$$"
When I look this link, I can't see a variable of "histfile".
http://wks.uts.ohio-state.edu/unix_course/intro-61.html
Can't we set this variable in csh?
Thanks,
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 07:34 PM
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 08:10 PM
09-15-2005 08:10 PM
Re: histfile in csh
-mugil
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 10:00 PM
09-15-2005 10:00 PM
Re: histfile in csh
set savehist=xxx
To actually save the history when the user logs out.
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
09-15-2005 11:50 PM
09-15-2005 11:50 PM
Re: histfile in csh
When I change the shell to tcsh, it worked.
So csh doesn't support histfile,
tcsh supports it.
Deniz,