Download Shareware and Freeware Software for Windows, Linux, Macintosh, PDA

line Home  |  About Us  |  Link To Us  |  FAQ  |  Contact

Serving Software Downloads in 976 Categories, Downloaded 31.349.992 Times

BetterBatch 1.3.2

Company: Mark Mc Mahon
Date Added: September 03, 2013  |  Visits: 266


Report Broken Link
Printer Friendly Version

Product Homepage
Download (16 downloads)

BetterBatch scripts are very basic - and most functionality is in external commands. This keeps BetterBatch simple - and also fosters re-use of existing components and creation of small modular components.<br /><br />A 'plugin' of BetterBatch is any tool that can be run at the OS shell prompt. Additional the command should return 0 for success and any non-zero value for failure. <br /><br />Here is a BetterBatch script that shows many of the features:<br /><br /># this sets the log file. The log file CAN be changed <br /># during execution (logfile can use variables defined in file <br /># as opposed to includes)<br />- logfile <__script_dir__>test_bb.log<br /><br /># the following two 'pseudo' variables allow you to <br /># get directory where the script is and the directory<br /># from which the script was executed.<br />- echo __script_dir__ pseudo variable- <__script_dir__><br />- echo __working_dir__ pseudo variable- <__working_dir__><br /><br /># betterbatch pulls in the environment variables so that these can be used<br /># by better batch<br />- echo <computername><br /><br /># for example this would be a good way to include machine specific <br /># configuration<br />- if exist <computername>.bb:<br /> - include <computername>.bb<br /><br /># or user specific configuration<br />- if exist <username>.bb:<br /> - include <username>.bb<br /><br /># you can define your own variables<br />- set project_root=<__script_dir__><br /><br /><br /># Note - include statements cannot use variables defined in the script (because <br /># includes are executed before variable definitions statements are)<br />- include <__script_dir__><br /><br /># this will not work for example because <project_root> is<br /># not defined by the time the include will be executed<br />#- include <project_root><br /><br /><br /># change 0 to 1 to test<br />- if compare 1 = 0:<br /> # because of the 'ui' qualifier the output of this command will not <br /> # be captured because of the 'nocheck' qualifier the return value will<br /> # not be checked (so you can CTRL+C)<br /> - dir c: /s /p {*ui*} {*nocheck*}<br /><br /># example of channging the logfile<br />- logfile <project_root>test_bb2.log<br /><br /># finally you can pass in variables on the command line:<br /># the following section will only be run if you pass something like:<br /># perform_section=true at the command line<br />- if defined perform_section:<br /> - echo ************************************************<br /> - echo YOU PASSED SOMETHING AT THE COMMAND LINE<br /> - echo ************************************************<br /><br /><br /># qualifiers modify how the command is executed, qualifiers are:<br /># {*ui*}, {*nocheck*} and {*echo*}<br /># ui - does not capture the text, so the user can work with <br /># the output interactively<br /># nocheck - does not check the return value - so even if it fails <br /># errors will be ignored<br /># echo - output will be echoed<br /># It doesn't make sense to have echo + ui<br />- cd non_existing_directory {*nocheck*} {*echo*} <br /><br /><br /># add_tools_folder will make the executable programs in the specified folder<br /># availabe in the script without requing path or extension<br />- add_tools_folder c: # you a folder on your machine or in your config<br /><br /><br /># you can assign variables to the output of commands<br /># it can be multiline text there is a utility built in command to <br /># replace new lines (rn)<br />- set boot.ini = {{{type c:boot.ini}}}<br />- set boot.ini.one_line = {{{EscapeNewlines <boot.ini>}}}<br />- echo <boot.ini.one_line><br /><br /># the code within an {{{executable section}}} can include any shell<br /># command or any built_in commands. There can be more than one on a line<br /># But they cannot be embedded (on the same line - if you need to embed - you<br /># can do that by using a temporary variable)<br />- set dir_to_search = {{{echo <windir>}}}<br />- set found = {{{dir <dir_to_search>win.ini}}} {{{cd nowhere {*nocheck*}{*echo*}}}}<br /><br /><br /># commands can be split over many lines in two ways<br /># using either > or | characters<br /><br /># > character will result in all text being on one line<br />- ><br /> set long_greater=different<br /> values here<br /> and here<br /> <br />- echo <long_greater><br /><br /># | character will result in all text being on many lines (i.e. it is only<br /># it is kept as is with leading space stripped<br />- |<br /> set long_pipe=different<br /> values here<br /> and here<br /><br /><br />- set escaped = {{{escapenewlines <long_pipe>}}}<br />- echo <escaped><br /><br /># scrpits can be ended at any, using an END statment<br /># it must include error return value and can include an optional message<br />- end 0, Enough for now - stopping<br /><br />SHA1 Checksum: a7ab209cdae93d52fb909082a12f81557aa84f5c

Requirements: No special requirements
Platforms: *nix, Linux
Keyword: Betterbatch Command Commands Defined Executed Include Includes Lines Logfile Nocheck Output Return Script Variable Variables
Users rating: 0/10

License: Freeware Size: 204.8 KB
Libraries  -  DeDup 1.5 Build 9396
DeDup is a handy Java command-line tool for removing duplicate lines in text files. The dedup process compares adjacent lines only. It does not sort first. The comparison is case sensitive. It removes adjacent indentical lines. It replaces the...
Programming  -  eLoc Engine 1.0
A simple to use and configurable command line tool which generates effective lines of code (eLoc) summaries for any text based programming language. By default, it currently supports the following file types: java, xml, sql, cs, css, js, and more.
1.95 MB  
Network & Internet  -  Web2Py for Linux 1.95.1
web2py was inspired by Ruby on Rails and, as Rails, it focuses on rapid development and follows a Model View Controller design. web2py differs from Rails because it is based on Python (thus it is faster and more scalable), because it provides a...
4.42 MB  
Travel  -  TouristGuideSriLanka
This is an app designed to deliver information about the places to visit in Sri Lanka. This app include includes information on Places to see, hotels, hospitals, wildlife, night life, banks embassies, vehicle hiring places and beaches in Sri...
26 MB  
Printer Tools  -  ESP Ghostscript 8.15.4
ESP Ghostscript project is a customized version of GPL Ghostscript that includes an enhanced autoconf-based configuration script, the CUPS raster driver to support CUPS raster printer drivers, and additional patches and drivers from various Linux...
9.8 MB  
Finance  -  xmlfy 1.5.5
xmlfy is a command line tool that converts text/UTF-8 based output into XML formatted output using schema files and/or options to control its behaviour. xmlfy is a powerful yet lightweight tool that primarily caters for converting ASCII, UTF-8,...
Programming  -  Javadoc2Help 1.0
Javadoc2Help is a java based command line tool for converting the javadoc generated html output to Java Help, HTML Help(chm) and Oracle Help for Java(OHJ)
3.03 MB  
Science  -  UCCASS - PHP Survey System 1.8.1
The Unit Command Climate Assessment and Survey System (UCCASS) is a PHP survey script for creating dynamic surveys. Supports unlimited questions and answers, branching logic, bar graph results with filtering, CSV export, templates, time limits and...
1.65 MB  
Programming  -  PowerConsole 0.7.5
Advanced Command Console PowerConsole is an enhanced Python interpreter that can host user defined commands. Uses pyparsing-based grammars for user commands to translate them into python calls, so it has limited support for mixing them...
122.88 KB  
FTP Clients  -  LFTP 3.5.12
LFTP is sophisticated file transfer program with command line interface. LFTP supports FTP, HTTP, FISH, SFTP, HTTPS and FTPS protocols. GNU Readline library is used for input. Every operation in lftp is reliable, that is any non-fatal error is...
1.2 MB  
Linux Software  -  Polling Autodialer Software 3.4
ICTBroadcast Auto Dialer software has a survey campaign for telephone surveys and polls. This auto dialer software automatically dials a list of numbers and asks them a set of questions that they can respond to, by using their telephone keypad....
488 B  
Linux Software  -  Total Video Converter Mac Free 3.5.5
Total Video Converter Mac Free developed by EffectMatrix Ltd is the official legal version of Total Video Converter which was a globally recognized brand since 2006. Total Video Converter Mac Free is a free but powerful all-in-one video...
17.7 MB  
Linux Software  -  Skeith mod_log_sql Analyzer 2.10beta2
Skeith is a php based front end for analyzing logs for Apache using mod_log_sql.
47.5 KB  
Linux Software  -  SLAX 6.0+
Slax is a modern, portable, small and fast Linux operating system with a modular approach and outstanding design. Despite its small size, Slax provides a wide collection of pre-installed software for daily use, including a well organized graphical...
190 KB  
Linux Software  -  GTK+ 2.5
GTK+, which stands for the GIMP Toolkit, is a library for creating graphical user interfaces for the X Window System. It is designed to be small, efficient, and flexible. GTK+ is written in C with a very object-oriented approach. Language bindings...
60 MB  
Programming  -  FLEX-db Digital Asset Manager 3.0.9
FLEX-db - an enterprise Digital Asset Manager (DAM). It ingests and links metadata with files, creates thumbnails, and processes files using business rules. FLEX-db has a JSP client, Java app server for file input and output and an EJB metadata...
21.57 MB  
Programming  -  Libicom 0.9.0
The libicom library is a character based dynamicly linked library for Linux. It is used to remotely control the Icom IC-R8500 wide band receiver via an RS232 link. All call and return parameters to the control functions are character string based....
20.48 KB  
Programming  -  dotdesktop 0.3
Dotdesktop library provides ability to parse desktop entry file and access the information in a convenient way. Desktop entry file format is defined by, it is used to describe information about an application such as the name and...
327.68 KB  
Programming  -  Cedalion for Linux 0.2.6
Cedalion is a programming language that allows its users to add new abstractions and define (and use) internal DSLs. Its innovation is in the fact that it uses projectional editing to allow the new abstractions to have no syntactic limitations.
471.04 KB  
Programming  -  libyasl 0.2
Libyasl is a C++ class library to easily realize TCP/UDP/Multicast clientsand servers in IPv4 and IPv6 environments under GNU/Linux systems.
143.36 KB