Notice
Recent Posts
Recent Comments
Link
일 | 월 | 화 | 수 | 목 | 금 | 토 |
---|---|---|---|---|---|---|
1 | 2 | 3 | 4 | |||
5 | 6 | 7 | 8 | 9 | 10 | 11 |
12 | 13 | 14 | 15 | 16 | 17 | 18 |
19 | 20 | 21 | 22 | 23 | 24 | 25 |
26 | 27 | 28 | 29 | 30 | 31 |
Tags
- find
- import
- web.xml
- netsh
- xargs
- port
- Eclipse
- VirtualBox
- 네트워크
- DB 도메인
- lsof
- profile
- maVen
- Windows
- resource
- 공통표준용어
- GIT
- JavaScript
- tomcat
- ssh
- Windows 10
- bash
- IntelliJ
- 단축키
- copy-dependencies
- context
- Quartz
- Source
- Mac
- grep
Archives
- Today
- Total
목록exec (1)
develog
[bash] find tomcat & exec
방법1 find /home/dev/tomcat*/ -type f -name 'catalina.sh' -exec bash -c 'echo; {} start' \; find /home/dev/tomcat*/ -type f -name 'catalina.sh' -exec bash -c 'echo; {} stop' \; 방법2 # find tomcat find /home/dev/tomcat*/ -type f -name 'catalina.sh' # run tomcat list=(/home/dev/tomcat1/bin/catalina.sh /home/dev/tomcat2/bin/catalina.sh) for i in ${list[*]}; do bash $i stop; done command line 에서 바로 실행
OS & Shell/Linux
2017. 11. 23. 11:40