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