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

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

Serving Software Downloads in 956 Categories, Downloaded 50.331.523 Times

BetterBatch 1.3.2

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

BetterBatch

Report Broken Link
Printer Friendly Version


Product Homepage
Download (36 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__>betterbatchteststest_filesbasic.bb<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>betterbatchteststest_filesbasic.bb<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
USER REVIEWS
More Reviews or Write Review


BETTERBATCH RELATED
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  
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  
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  
Shell & Desktop  -  Quasi 0.87
Quasi project is a Python shell which supports pluggable "contexts" for non-Python commands, such as OS commands, MySQLdb queries and external programs. The smart-eyed reader will have noticed the use of the built-in quoted() method in the...
47.1 KB  
Utilities  -  Alert Manager 1.0-RC5
Alert Manager was created to run an alert command, monitor the status of that commands output, and guarantee that if something goes wrong it wont go unnoticed. Alert Manager has been successfully deployed in several fortune 500 companies...
16.38 KB  
NEW DOWNLOADS IN LINUX SOFTWARE, PROGRAMMING
Linux Software  -  EasyEDA PCB Designer for Linux 2.0.0
EasyEDA, a great web based EDA(Electronics Design Automation) tool, online PCB tool, online PCB software for electronics engineers, educators, students, makers and enthusiasts. Theres no need to install any software. Just open EasyEDA in any...
34.4 MB  
Linux Software  -  wpCache® WordPress HTTP Cache 1.9
wpCache® is a high-performance, distributed object, caching system application, generic in nature, but intended for use in speeding up dynamic web applications, by decreasing database load time. wpCache® decreases dramatically the page...
3.51 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  
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  -  Math::GMPf 0.29
Math::GMPf - perl interface to the GMP library's floating point (mpf) functions.
30.72 KB  
Programming  -  Net::Wire10 1.08
Net::Wire10 is a Pure Perl connector that talks to Sphinx, MySQL and Drizzle servers. Net::Wire10 implements the low-level network protocol, alias the MySQL wire protocol version 10, necessary for talking to one of the aforementioned...
30.72 KB  
Programming  -  logilab-common 0.56.2
a bunch of modules providing low level functionnalities shared among some python projects devel Please note that some of the modules have some extra dependencies. For instance, logilab.common.db will require a db-api 2.0 compliant...
174.08 KB  
Programming  -  OpenSSL for linux 1.0.0a
The OpenSSL Project is a collaborative effort to develop a robust, commercial-grade, full-featured, and Open Source toolkit implementing the Secure Sockets Layer (SSL v2/v3) and Transport Layer Security (TLS v1) protocols as well as a...
3.83 MB