Path: csiph.com!aioe.org!.POSTED!not-for-mail From: =?UTF-8?Q?Arne_Vajh=c3=b8j?= Newsgroups: comp.lang.java.programmer Subject: Re: Libraries for sysadmins? Date: Fri, 4 Mar 2016 21:48:13 -0500 Organization: Aioe.org NNTP Server Lines: 37 Message-ID: References: <2cec6af2-9636-4a2a-8849-b01286c0814c@googlegroups.com> NNTP-Posting-Host: ANasIS7Js9OyLQwgloeBLQ.user.gioia.aioe.org Mime-Version: 1.0 Content-Type: text/plain; charset=windows-1252; format=flowed Content-Transfer-Encoding: 7bit X-Complaints-To: abuse@aioe.org User-Agent: Mozilla/5.0 (Windows NT 6.1; WOW64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0 X-Notice: Filtered by postfilter v. 0.8.2 Xref: csiph.com comp.lang.java.programmer:33927 On 3/4/2016 6:33 AM, Elena wrote: > Are there any libraries that make Java feel more like a scripting > language? I mean: libraries that let you write fewer lines of code > for common sysadmin tasks, where you would normally choose a > scripting language (for example: file I/O, piping, processing text > files line by line, filtering collections, etc.) Of course, using > Java would still mean some overhead, but that is fine. Java is rarely used as adhoc scripting language, so library for common sysadmin tasks may be hard to find. The examples you give seems to be covered by plain Java (just like by any general purpose programming language). If you want a scripting context, then look at BeanShell. Example: C:\>java -cp bsh-2.0b4.jar bsh.Interpreter BeanShell 2.0b4 - by Pat Niemeyer (pat@pat.net) bsh % System.out.println("Hello world!"); Hello world! bsh % for(int i = 0; i < 10; i++) System.out.println(i); 0 1 2 3 4 5 6 7 8 9 bsh % ^Z C:\> Arne