tag:blogger.com,1999:blog-1280619439915049383.post6038611754948632647..comments2024-03-26T07:37:16.163-05:00Comments on James Lorenzen's Blog: Linux generic start and stop scriptsjlorenzenhttp://www.blogger.com/profile/13635369821860631868noreply@blogger.comBlogger12125tag:blogger.com,1999:blog-1280619439915049383.post-16992342885507568722017-04-11T04:02:24.246-05:002017-04-11T04:02:24.246-05:00Thanks for the blogThanks for the bloggeneric viagra 100mghttp://www.epharmarx.com/noreply@blogger.comtag:blogger.com,1999:blog-1280619439915049383.post-37719533381417663972014-06-02T02:52:16.435-05:002014-06-02T02:52:16.435-05:00the way you present the things is really good plea...the way you present the things is really good please keep sharing such a things<br /><a href="http://www.genericviagrabuy.com" title="generic viagra" rel="nofollow"><b>Generic Viagra</b></a>Generic viagrabuyhttps://www.blogger.com/profile/14093085068769693450noreply@blogger.comtag:blogger.com,1999:blog-1280619439915049383.post-1612133475085423982014-04-28T15:21:44.457-05:002014-04-28T15:21:44.457-05:00Found out recently:
pkill 'somestring'
Is ...Found out recently:<br />pkill 'somestring'<br />Is on most OSes and easier than the ps|kill<br />Also it can stop all processes, if you accidently started more than oneAnonymousnoreply@blogger.comtag:blogger.com,1999:blog-1280619439915049383.post-40483921371261621762013-08-16T06:56:23.215-05:002013-08-16T06:56:23.215-05:00Thanks a million! You just made my day.Thanks a million! You just made my day.Anonymousnoreply@blogger.comtag:blogger.com,1999:blog-1280619439915049383.post-75671480915109294662012-05-12T07:13:08.752-05:002012-05-12T07:13:08.752-05:00Hey do have any idea about restarting a script (co...Hey do have any idea about restarting a script (containing .jar file) with a given time interval (daemon process). <br />I will appreciate any input regarding to this from your side. <br /><br /><br />Thanks & Regards,<br />Ravindra GohilRavindra Singh Gohilhttps://www.blogger.com/profile/11975499851585237526noreply@blogger.comtag:blogger.com,1999:blog-1280619439915049383.post-60288497882158232412012-05-12T07:05:28.430-05:002012-05-12T07:05:28.430-05:00HI jlorenzen,
Thanks a lot for the start & st...HI jlorenzen,<br /><br />Thanks a lot for the start & stop scripts, it works great. Hey instead of getting output in a text file, can we get that in a terminal. If it is possible it would really help me.<br /><br />Thanks in advance,<br />Ravindra GohilRavindra Singh Gohilhttps://www.blogger.com/profile/11975499851585237526noreply@blogger.comtag:blogger.com,1999:blog-1280619439915049383.post-19258690100226156752012-02-27T01:39:15.963-06:002012-02-27T01:39:15.963-06:00Great piece... you did great job bro keep it up. T...Great piece... you did great job bro keep it up. Thanks for a great time visiting your site.clarion hotel anaheim cahttp://www.anaheimhotelsguide.com/noreply@blogger.comtag:blogger.com,1999:blog-1280619439915049383.post-83260992824350744062011-02-26T07:03:39.056-06:002011-02-26T07:03:39.056-06:00Silly article; hudson is started alright when a ru...Silly article; hudson is started alright when a run level is entered, but is never stopped, because the stop script was never called from anywhere. So you got plenty of hudson instances running after switching the level around a few times.newbienoreply@blogger.comtag:blogger.com,1999:blog-1280619439915049383.post-35485844998070522602010-09-24T08:46:54.348-05:002010-09-24T08:46:54.348-05:00And it's even easier to get started using huds...And it's even easier to get started using hudson: sudo apt-get install hudson. This installs hudson as a service which starts on a reboot.Kamagrahttp://www.xlpharmacy.com/generic-viagra/online.phpnoreply@blogger.comtag:blogger.com,1999:blog-1280619439915049383.post-87550338495586092572010-08-02T09:40:51.401-05:002010-08-02T09:40:51.401-05:00@Richard,
Thanks. Those are excellent suggestions....@Richard,<br />Thanks. Those are excellent suggestions.jlorenzenhttps://www.blogger.com/profile/13635369821860631868noreply@blogger.comtag:blogger.com,1999:blog-1280619439915049383.post-44653028938840636802010-08-01T00:57:50.820-05:002010-08-01T00:57:50.820-05:00A few tips:
1. About the simple pattern:
ps -ef | ...A few tips:<br />1. About the simple pattern:<br />ps -ef | grep hudson-1.136.war | grep -v grep<br />You can prevent grep from matching its own ps by wrapping the first char in square brackets like so:<br />ps -ef | grep [h]udson-1.136.war<br />2. Any time you see yourself using grep in a pipe with awk or sed, stop, simplify. This takes 2 greps out of your pipe:<br />ps -ef | awk '/[h]udson-1.136.war/{ print $2 }'<br /><br />Both awk and sed can do their own regex filtering, no need to bring grep to the party.Anonymoushttps://www.blogger.com/profile/07558528821697820938noreply@blogger.comtag:blogger.com,1999:blog-1280619439915049383.post-37987871810860475792010-04-29T09:55:08.824-05:002010-04-29T09:55:08.824-05:00This was just an example of how to create generic ...This was just an example of how to create generic linux start and stop scripts. Hudson now supports linux packages; ubuntu for example. And it's even easier to get started using hudson: sudo apt-get install hudson. This installs hudson as a service which starts on a reboot.jlorenzenhttps://www.blogger.com/profile/13635369821860631868noreply@blogger.com