Skip to ContentSkip to Footer
시작 내용
- Community Home
- >
- HPE Community, Korea
- >
- HP-UX
- >
- cron 에서요...
HP-UX
-
- Forums
-
- Advancing Life & Work
- Advantage EX
- Alliances
- Around the Storage Block
- HPE Ezmeral: Uncut
- OEM Solutions
- Servers & Systems: The Right Compute
- Tech Insights
- The Cloud Experience Everywhere
- HPE Blog, Austria, Germany & Switzerland
- Blog HPE, France
- HPE Blog, Italy
- HPE Blog, Japan
- HPE Blog, Middle East
- HPE Blog, Latin America
- HPE Blog, Russia
- HPE Blog, Saudi Arabia
- HPE Blog, South Africa
- HPE Blog, UK & Ireland
-
Blogs
-
정보
- 커뮤니티
- Welcome
- 시작하기
- 포럼 FAQ
- 랭킹 개요
- 참여규칙
- Tips and Tricks
- 접촉
- Announcements
- Email us
- Feedback
- Information Libraries
- Integrated Systems
- Networking
- Servers
- Storage
- 다른 HPE 사이트
- Support Center
- Aruba Airheads Community
- Enterprise.nxt
- HPE Dev Community
- Cloud28+ Community
- Marketplace
-
포럼
-
블로그
-
정보
-
한국어
- 신규로 표시
- 북마크
- 구독
- 소거
- 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가 아닌 저자의 개인 의견입니다. 이 사이트를 사용하면 이용 약관에 동의하게되며 참여 규칙 .