- Community Home
- >
- HPE Community, Korea
- >
- HP-UX
- >
- 서버 사용자 로그인 History 화일 Shell입니다. (분석 요청 드립니다)
HP-UX
1752781
회원
5726
온라인
108789
솔루션
포럼
범주
Company
Local Language
뒤로
포럼
토론 게시판
포럼
- Data Protection and Retention
- Entry Storage Systems
- Legacy
- Midrange and Enterprise Storage
- Storage Networking
- HPE Nimble Storage
토론 게시판
토론 게시판
포럼
토론 게시판
뒤로
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
블로그
정보
커뮤니티 언어
언어
포럼
블로그
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
날짜: 09-25-2008 10:00 PM
날짜: 09-25-2008 10:00 PM
서버 사용자 로그인 History 화일 Shell입니다. (분석 요청 드립니다)
# server user logging
today_yyyymmdd=/.hist_logs/`date +%E%m%d`
today=`date +%E%m%d%H%M%S`
user=`whoami`
where=`who am i -R | sed -e 's/.*(//' -e 's/)//'`
file=$today.$user.$where.log
if ; then
mkdir $today_yyyymmdd
fi
touch $today_yyyymmdd/$file
HISTFILE=$today_yyyymmdd/$file;export HISTFILE
HISTSIZE=10000
#######################################################
1 응답 1
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
날짜: 09-25-2008 10:00 PM
날짜: 09-25-2008 10:00 PM
서버 사용자 로그인 History 화일 Shell입니다. (분석 요청 드립니다)
안녕하십니까
today_yyyymmdd=/.hist_logs/20080925 (날짜)
today=20080925154840 (날짜시간포함)
user=user01
where=192.168.10.10
file=20080925154840.user01.192.168.10.10.log
if -> /.hist_logs/20080925 디렉토리가 없으면
mkdir =/.hist_logs/20080925을 만듦
/.hist_logs/20080925 디렉토리가 있으면 touch /.hist_logs/20080925/20080925154840.user01.192.168.10.10.log
history 파일명은 /.hist_logs/20080925/20080925154840.user01.192.168.10.10.log 임..
history 갯수는 10000
today_yyyymmdd=/.hist_logs/20080925 (날짜)
today=20080925154840 (날짜시간포함)
user=user01
where=192.168.10.10
file=20080925154840.user01.192.168.10.10.log
if -> /.hist_logs/20080925 디렉토리가 없으면
mkdir =/.hist_logs/20080925을 만듦
/.hist_logs/20080925 디렉토리가 있으면 touch /.hist_logs/20080925/20080925154840.user01.192.168.10.10.log
history 파일명은 /.hist_logs/20080925/20080925154840.user01.192.168.10.10.log 임..
history 갯수는 10000
위에 명시된 의견은 Hewlett Packard Enterprise가 아닌 저자의 개인 의견입니다. 이 사이트를 사용하면 이용 약관에 동의하게되며 참여 규칙 .
뉴스 및 이벤트
© Copyright 2024 Hewlett Packard Enterprise Development LP