Search DominoPower's 10,675 Lotus-related article archive 
Home
EasyPrint
News details Click here for the RSS feed's XML code. This is not a browser URL.
Articles-only Click here for the RSS feed's XML code. This is not a browser URL.
Twitter Feed Click here for the Twitter feed.
BEYOND LOTUSSCRIPT
Using Python to create a command line interpreter for Notes
By Jeffrey R. Burrows

Unix geeks, SQL (Structured Query Language) programmers, and old DOS hacks have one thing in common--a hankering for direct command line access to software, rather then the end-user-friendly graphical frills with which all software must be adorned nowadays. Even the Palm OS has a CLI (Command Line Interpreter) developer for it, although that may be a command line too far!

Good CLIs (or shells, as they're more commonly known in Unix) make it easy to explore file systems and objects, to test out small scraps of code, and to write full programs only when really needed. Even the DOS command.com can do basic IF and FOR statements, and good Unix shells--such as csh, bash, or ksh--are almost full programming languages in their own right. Most good CLIs let you save lines of commonly typed-in commands so they can be re-used easily. These are known as shell scripts in Unix and as batch files in DOS and Windows.

Lotus Notes does have a command console, but only for basic server administration. Any one-off changes to documents or experimenting with code and objects must be made using agents, and most Notes developers will have a continual turnover of agents made to be used just once (some of which never seem to get deleted from database templates).

This article will show you how a CLI is easily possible with Notes. It will also help Notes programmers venture beyond the world of LotusScript and spreadsheet formula language into two sets of wider worlds--the corporate world dominated by Microsoft standards and the Unixy, Linuxy, geeky world beyond.

The open source bits of our Notes command line
Cross-platform, object-oriented with classes, easily learned, and rapidly developed--that's what LotusScript tries hard to be, but with big limitations. For one thing, it's obviously limited to the world of Lotus, and there's none of the standard libraries, such as those for handling images, Internet protocols, zip files, etc., with which Java is so well endowed. Simple tasks like picking up mail from a POP3 server and manipulating the contents require major brainpower in LotusScript.

On the other hand, Java can be a daunting alternative, with its precise syntax and longer compile cycles, not to mention the disappointing performance. The other common language, Perl, produces code that seems to be perversely aimed at being as un-maintainable as possible.

The open source alternative is called Python at http://www.python.com. It's a fully cross-platform interpreted scripting language, running on UNIX, Linux, Macs, MS-DOS, Windows, Windows NT, Windows CE, OS/2, Java VM, and in the pipeline for the Palm OS.


1  ·  2  ·  3  ·  4  ·  5  ·  6  ·  Next »
Other articles you might like
Home > Lotus Technologies > LotusScript (64 articles)
   When the debugger won't debug hidden code that isn't hidden
   What to do if the LotusScript debugger won't single-step over code
   Little known traps about Lotus Notes fields
Get Weekly Email Updates
Subscribe to our regular weekly email newsletter. It's packed with tips, reviews, deep analysis, and the latest news.
 
Recent DominoPower Articles
What to look for in a Domino-based document management solution
Understanding Domino.doc end-of-life options
When the debugger won't debug hidden code that isn't hidden
What to do if the LotusScript debugger won't single-step over code
Top 10 ways to launch and build a Lotus consulting practice (with a little help from the Beatles)
Troubleshooting an OpenSuse Notes install
Incident report: denial of service attack against ConnectedPhotographer.com
Latest Lotus Headlines
SnTT - Enabling ALL the bells and whistles!
Tivoli Data protection causes Domino to crash
Fun when running DB2 CLP scripts
Introducing Flippr, the easy way to admin Quickr
DXL and fake security
Using search forms in IBM Workplace Collaborative Learning 2.7
Schmidt, Freed, and Gering on the OVF Toolkit
>> Read all the news
More from the ZATZ journals
Computing Unplugged: Eight steps to successful and reliable home backups
David Gewirtz Online: CNN commentary and analysis
OutlookPower: Can Outlook run when it's not running (and other mysteries)?
-- Advertisement --

AUTOMATE LOTUS NOTES USER ID MANAGEMENT
ID Manager 4.5 from HELP Software provides a new level of automaton for managing Lotus Notes IDs. ID Manager lets Lotus Notes administrators get out of the business of creating and managing user IDs. Use our ROI calculator to see how quickly ID Manager will pay for itself.

Learn more about HELP Software products
-- Advertisement --

Integrate your Notes Applications with Microsoft Office and Symphony
Integra for Notes Integrates Microsoft Office and/or IBM Lotus Symphony
Requires NO change to the design of the appliation or Installations of DLL's and EXE's
  • Integra is a ready to use solution, enhance static reports with Excel data analysis, pivot tables, macros
  • User friendly aproach, using a point and click access to features
  • Reports from any Lotus Notes databases
  • Runs reports through a Notes client, web browser and scheduled basis
  • Allows use of LotusScript for advanced data manipulation
  • Enables self service reporting capabilities to end-users


Learn more at www.integra4notes.com.
ZATZ Home  ·  News  ·  Back Issues  ·  Credits/Trademarks ·  Link To Us
Copyright © 1998-2009, ZATZ Publishing. All rights reserved worldwide.
Editor's Login