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
- resource
- grep
- Windows
- bash
- 줄바꿈 문자
- xargs
- IntelliJ
- 단축키
- netsh
- GIT
- context
- Eclipse
- maVen
- port
- plugin
- Windows 10
- Source
- find
- ssh
- 네트워크
- vscode
- tomcat
- Quartz
- profile
- Mac
- web.xml
- import
- JavaScript
- lsof
- VirtualBox
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