Search DominoPower's 11,441 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
Application development, William Shatner, and the origin of the universe
Learn Domino Designer 8.5 for free
The (near) future of Sametime, Quickr, Connections, and Symphony
Inside the IBM Innovations lab
Lotusphere 2010: Hot fixes and cool news for Notes, Domino, and LotusLive
Lotusphere 2010: mobility and collaboration
2010: A Lotusphere of change
Latest Lotus Headlines
Xpages not loading? JVM errors? - Solution
How to implement an iCalendar feed into your Notes calendar with XPages
DWA Hotfixes for Domino 8.5.1FP1 - A Gotcha
IBM Adds DB2 to Lotus Foundations SMB Package
SNTT : XPages onclick Ghosts in the machine
Ports used by Lotus Sametime 8.5 servers
Exploring a Domino Date Bug
>> Read all the news
More from the ZATZ journals
Computing Unplugged: The iPad defenders have spoken
David Gewirtz Online: CNN commentary and analysis
OutlookPower: More about disappearing text
-- Advertisement --

Learn Notes and Domino 8 at your place and pace!
Learn Notes and Domino in your office and/or home! TLCC's highly acclaimed distance learning courses for users, developers, and admins will enhance your career and your resume.

The many included activities and demos will make you a pro! Expert instructor help is a click away.

Click here to try a FREE demo course!!

-- 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-2010, ZATZ Publishing. All rights reserved worldwide.
Editor's Login