Skip to content

Instantly share code, notes, and snippets.

@lloyd
Created January 7, 2010 00:13
Show Gist options
  • Save lloyd/270833 to your computer and use it in GitHub Desktop.
Save lloyd/270833 to your computer and use it in GitHub Desktop.
[lth@lappro bp-ruby] $ ../bpsdk/bin/ServiceRunner -providerPath src/build/RubyInterpreter tests/FileChecksum/
service initialized: FileChecksum v1.0.10
> help
Available commands:
allocate [0 args]: Allocate a new service instance....
describe [0 args]: Extract and display the API description of the ser...
destroy [1 arg]: Destroy a service instance, the single required pa...
help [0-1 args]: Displays command usage. help <command> gives more...
invoke [1-2 args]: Invoke a function on a service instance. First ar...
prompts [0 args]: Show the outstanding user prompts that have been s...
quit [0 args]: Quit the program...
respond [1-2 args]: Respond to a prompt from the service. The first a...
select [1 arg]: Select the current instance, this is a numeric id ...
show [0 args]: Show the currently allocated service instances....
> desc
Describing corelet 'FileChecksum', version: 1.0.10
Allows client side MD5 of user selected files.
1 function(s) supported:
md5:
Generate an md5 checksum of a file.
path file
The file for which to calculate a checksum.
> a
allocated: 1
> i md5 '{"file":"file:///Users/lth/TODO.txt"}'
"a942f1fe65c4f55d1a05c048c2c6b0b0"
> ^D
shutting down...
[lth@lappro bp-ruby] $ md5 ~/TODO.txt
MD5 (/Users/lth/TODO.txt) = a942f1fe65c4f55d1a05c048c2c6b0b0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment