From erick at allsystemsdown.com Tue Feb 10 13:02:34 2009 From: erick at allsystemsdown.com (Erick) Date: Tue, 10 Feb 2009 13:02:34 -0600 Subject: [tclug-devel] Running Java class or jar file as cron job Message-ID: <1234292554.24913.9.camel@bellacor-es> I am interested in getting users experiences running a simple Java app. as a cron job on a Linux server. I am interested in hearing about any good or bad experiences or if doing this is a plain bad idea. I haven't touched Java in a number of years but it sounds like Java may be a good solution for the next project I work on. Actually I think Python would be ideal but I am trying to avoid bringing a 3rd language into our environment. Thanks for any info. Erick From haircut at gmail.com Tue Feb 10 15:42:39 2009 From: haircut at gmail.com (Adam Monsen) Date: Tue, 10 Feb 2009 15:42:39 -0600 Subject: [tclug-devel] Running Java class or jar file as cron job In-Reply-To: <1234292554.24913.9.camel@bellacor-es> References: <1234292554.24913.9.camel@bellacor-es> Message-ID: <1234302159.15539.23.camel@localhost> Could you be more specific about what this cron job will do? I would generally recommend Python (or Bash) for cron jobs that perform system administration tasks. But if you already have Java knowledge in your group or need to integrate tightly with existing Java-based infrastructure, then of course maybe Java is the stronger choice. Java and cron play nice together... no problems there that I can think of. Also consider, when making your decision on which language to use: it's easy to run a system command (like "find", "grep", etc) in Python, collect the output, process it, etc. In Java, calling out to system commands is bad form... "pure Java" (or Java+JNI) is the way most folks prefer it would be done, IMHO. Another example: pure Java can't manipulate UNIX signals. -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part Url : http://mailman.mn-linux.org/pipermail/tclug-devel/attachments/20090210/d7599633/attachment.pgp From erick at allsystemsdown.com Tue Feb 10 16:09:47 2009 From: erick at allsystemsdown.com (Erick) Date: Tue, 10 Feb 2009 16:09:47 -0600 Subject: [tclug-devel] Running Java class or jar file as cron job In-Reply-To: <1234302159.15539.23.camel@localhost> References: <1234292554.24913.9.camel@bellacor-es> <1234302159.15539.23.camel@localhost> Message-ID: <1234303787.25175.4.camel@bellacor-es> That pretty much answers my question, I was concerned with how well Java and cron would play together or any other possible issues that could arise running Java via cron. I am leaning towards Java for two reasons, Java's exception handling and it is the direction that we are moving. Thanks for the response. Erick On Tue, 2009-02-10 at 15:42 -0600, Adam Monsen wrote: > Could you be more specific about what this cron job will do? > > I would generally recommend Python (or Bash) for cron jobs that perform > system administration tasks. But if you already have Java knowledge in > your group or need to integrate tightly with existing Java-based > infrastructure, then of course maybe Java is the stronger choice. Java > and cron play nice together... no problems there that I can think of. > > Also consider, when making your decision on which language to use: it's > easy to run a system command (like "find", "grep", etc) in Python, > collect the output, process it, etc. In Java, calling out to system > commands is bad form... "pure Java" (or Java+JNI) is the way most folks > prefer it would be done, IMHO. Another example: pure Java can't > manipulate UNIX signals. > _______________________________________________ > tclug-devel mailing list > tclug-devel at mn-linux.org > http://mailman.mn-linux.org/mailman/listinfo/tclug-devel From justin at localtone.com Fri Feb 20 22:58:05 2009 From: justin at localtone.com (Justin Grammens) Date: Fri, 20 Feb 2009 22:58:05 -0600 Subject: [tclug-devel] tclug-devel Digest, Vol 4, Issue 1 In-Reply-To: References: Message-ID: Erick, If you like Java, you might also want to consider Groovy. http://groovy.codehaus.org/ It's a dynamic language for the JVM that integrates with all Java libraries. Works very well for scripting. Justin ------------------------------ > > Message: 3 > Date: Tue, 10 Feb 2009 16:09:47 -0600 > From: Erick > Subject: Re: [tclug-devel] Running Java class or jar file as cron job > To: tclug-devel at mn-linux.org > Message-ID: <1234303787.25175.4.camel at bellacor-es> > Content-Type: text/plain > > That pretty much answers my question, I was concerned with how well Java > and cron would play together or any other possible issues that could > arise running Java via cron. I am leaning towards Java for two reasons, > Java's exception handling and it is the direction that we are moving. > Thanks for the response. > Erick > > -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.mn-linux.org/pipermail/tclug-devel/attachments/20090220/88f41335/attachment.htm From haircut at gmail.com Fri Feb 27 23:26:28 2009 From: haircut at gmail.com (Adam Monsen) Date: Fri, 27 Feb 2009 23:26:28 -0600 Subject: [tclug-devel] thoughts on merb Message-ID: <1235798788.1467.1.camel@localhost> Anyone used merb[1]? Like/dislike? Merb vs. Ruby on Rails? Other thoughts? Thanks, -Adam References: 1. http://www.merbivore.com -------------- next part -------------- A non-text attachment was scrubbed... Name: not available Type: application/pgp-signature Size: 197 bytes Desc: This is a digitally signed message part Url : http://mailman.mn-linux.org/pipermail/tclug-devel/attachments/20090227/d444f0f4/attachment.pgp From mgreenly at gmail.com Sat Feb 28 08:45:14 2009 From: mgreenly at gmail.com (Michael Greenly) Date: Sat, 28 Feb 2009 08:45:14 -0600 Subject: [tclug-devel] thoughts on merb In-Reply-To: <1235798788.1467.1.camel@localhost> References: <1235798788.1467.1.camel@localhost> Message-ID: They're merging with next release of Rails http://weblog.rubyonrails.org/2008/12/23/merb-gets-merged-into-rails-3 http://yehudakatz.com/2008/12/23/rails-and-merb-merge/ Personally I'd consider just using edge rails and migrate in merbisms as they become available and obvious they provide an advantage. On Fri, Feb 27, 2009 at 11:26 PM, Adam Monsen wrote: > Anyone used merb[1]? Like/dislike? Merb vs. Ruby on Rails? Other > thoughts? > > Thanks, > -Adam > > References: > 1. http://www.merbivore.com > > _______________________________________________ > tclug-devel mailing list > tclug-devel at mn-linux.org > http://mailman.mn-linux.org/mailman/listinfo/tclug-devel > > -- Michael Greenly http://blog.michaelgreenly.com -------------- next part -------------- An HTML attachment was scrubbed... URL: http://mailman.mn-linux.org/pipermail/tclug-devel/attachments/20090228/004367b8/attachment.htm