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