- Community Home
- >
- HPE Community, Korea
- >
- HP-UX
- >
- cron 에서요...
HP-UX
1752472
회원
7135
온라인
108788
솔루션
포럼
범주
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 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
날짜: 10-25-2005 10:00 PM
날짜: 10-25-2005 10:00 PM
cron 에서요...
안녕하세요......
이상하게 cron에등록해놓으면요 Redirection이 안되네요...
#vi /tmp/crontest.sh
#! /bin/csh
echo "asdfasdf" > /tmp/test.txt
#crontab -l
* * * * * /tmp/crontest.sh > /tmp/crontest.log 2>&1
이거 방법이 없나요?
이상하게 cron에등록해놓으면요 Redirection이 안되네요...
#vi /tmp/crontest.sh
#! /bin/csh
echo "asdfasdf" > /tmp/test.txt
#crontab -l
* * * * * /tmp/crontest.sh > /tmp/crontest.log 2>&1
이거 방법이 없나요?
3 응답 3
- 신규로 표시
- 북마크
- 구독
- 소거
- RSS 피드 구독
- 강조
- 인쇄
- 부적절한 컨텐트 신고
날짜: 10-25-2005 10:00 PM
날짜: 10-25-2005 10:00 PM
cron 에서요...
당연히 /tmp/crontest.log 에는 아무것도 없는게 맞는것 같습니다.
echo "asdfasdf" > /tmp/test.txt
위 명령어가 실행된이후에는 아무런 output 이 없기때문입니다.
어떤 output 이 있을경우에 리다이렉션이 되기때문입니다.
echo "asdfasdf" crontest.sh 파일내의 명령어를 이렇게 고치면
/tmp/crontest.log 에 내용이 redirection 될것 같네요~
echo asdfasdf 보여지는것은 -x 옵션으로인해 debug 된내용을 보여주는것입니다.
echo "asdfasdf" > /tmp/test.txt
위 명령어가 실행된이후에는 아무런 output 이 없기때문입니다.
어떤 output 이 있을경우에 리다이렉션이 되기때문입니다.
echo "asdfasdf" crontest.sh 파일내의 명령어를 이렇게 고치면
/tmp/crontest.log 에 내용이 redirection 될것 같네요~
echo asdfasdf 보여지는것은 -x 옵션으로인해 debug 된내용을 보여주는것입니다.
위에 명시된 의견은 Hewlett Packard Enterprise가 아닌 저자의 개인 의견입니다. 이 사이트를 사용하면 이용 약관에 동의하게되며 참여 규칙 .
뉴스 및 이벤트
© Copyright 2024 Hewlett Packard Enterprise Development LP