![]() |
Hello and Welcome from United States to the UNIX and Linux Forums! Thank You for Visiting and Joining Our Global Community.
|
|
google unix.com
|
|||||||
| Forums | Register | Forum Rules | Links | Albums | FAQ | Members List | Calendar | Search | Today's Posts | Mark Forums Read |
| UNIX for Dummies Questions & Answers If you're not sure where to post a UNIX or Linux question, post it here. All UNIX and Linux newbies welcome !! |
More UNIX and Linux Forum Topics You Might Find Helpful
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| history | mirusnet | Shell Programming and Scripting | 1 | 01-27-2008 09:02 AM |
| History | JuniorJack | UNIX for Dummies Questions & Answers | 2 | 06-02-2005 04:37 AM |
| Any History | igorsch | Linux | 1 | 09-25-2004 12:45 PM |
| history | tselvanin | UNIX for Dummies Questions & Answers | 2 | 09-23-2003 03:40 AM |
| history in ksh | vince_ascend | Shell Programming and Scripting | 5 | 11-08-2001 04:36 AM |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
|
||||
|
csh History
Hello everybody,
Im being unsuccessful to enable command history logging in csh shells on a Sun machine running Solaris 9, I know csh doesnt log commands history by itself, here under is my /.cshrc file: Code:
# @(#)cshrc.standard 1.1 Copyright 1994, Motorola Inc.
if ( -e /.datagen_system ) then
source /usr/gsm/DataGen/current/config/local/cshrc.datagen
if ( -f $HOME/.dg_profile ) then
source $HOME/.dg_profile
endif
else
source /usr/omc/current/env/.cshrc
endif
alias omc_env 'source /usr/omc/config/global/pmInfxUserConfig.csh'
alias mib_env 'source /usr/omc/config/global/mibInfxUserConfig.csh'
alias omclog tail -f /usr/omc/logs/omcaudit`date +%Y%m%d`
alias usrlog tail -f /usr/omc/logs/usrauditlogs/usraudit`date +%Y%m%d`
alias h history
alias glu /usr/omc/ne_data/GLU
set filec
set histfile=/.history
set history=200
Code:
set histfile=/.history set history=200 Thanks in advance Aladdin |
|
||||
|
Thanks for your reply drl,
I tried also commenting the two lines in /etc/profile but still same result. as for knowing the shell, emmm. actually Im using "ps" command, and "echo $$", is that right??? but it is still not running, I will post any solution might work. Regards Aladdin |
|
|||||
|
Hi.
Here is how I quickly check to see what shell I am using: Code:
vm-solaris% ps | grep $$ 666 pts/2 0:00 csh Code:
vm-solaris drl ~ $ ps | grep $$ 585 pts/2 0:00 bash Code:
history Code:
set savehist=10 |
|
||||
|
Hi drl,
and thanks again for your help. the output for "ps" was csh: Code:
cl1# ps | grep $$ 7344 pts/1 0:00 csh cl1# history cl1# set savehist=10 cl1# history cl1# ./.cshrc /usr/omc/current/env/.cshrc: No such file or directory cl1# history cl1# Many Thanks Aladdin |
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|