Posted on 2009/04/29 15:20
Filed Under Etc/shell script

cron 에서 특정 유저의 권한으로 해당 쉘스크립트를 실행 시켜야 될 경우가 있다.

이럴경우

su - oracle -c /test/test.sh

처럼 입력하면 oracle 유저의 환경변수 및 권한으로 /test/test.sh 가 실행이 된다.


크리에이티브 커먼즈 라이센스
Creative Commons License
이올린에 북마크하기(0) 이올린에 추천하기(0)
2009/04/29 15:20 2009/04/29 15:20

트랙백 주소 : http://blog.seabow.pe.kr/trackback/631



About

by 삐꾸강아쥐

Counter

· Total
: 137361
· Today
: 62
· Yesterday
: 0
블로그코리아에 블UP하기