summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorRicardo Wurmus <rekado@elephly.net>2021-02-09 23:33:18 +0100
committerRicardo Wurmus <rekado@elephly.net>2021-02-09 23:33:18 +0100
commit8684f2444bc2e6883a4e04fb46e7888f10eb6b19 (patch)
tree19d1b512e6de28a2b907e5556f180e32e9d619a9
parent769921724787f87700c769762a0c91335d03e4c4 (diff)
Add a simple example.
-rw-r--r--README.org22
1 files changed, 22 insertions, 0 deletions
diff --git a/README.org b/README.org
index 7d2e607..01fe187 100644
--- a/README.org
+++ b/README.org
@@ -2,3 +2,25 @@
#+TITLE: README for Guile Drmaa
+Hi there! Currently, this project only provides low-level bindings to DRMAA version 1. Here’s an example:
+
+#+begin_src scheme
+(use-modules (drmaa v1 low))
+
+(define (test)
+ (let ((t (allocate-job-template!)))
+ (set-attribute! t (DRMAA 'REMOTE_COMMAND) "/bin/ls")
+ (set-attribute! t (DRMAA 'JS_STATE)
+ (DRMAA 'SUBMISSION_STATE_ACTIVE))
+ (set-attribute! t (DRMAA 'WD)
+ "/home/rwurmus/")
+ (apply set-vector-attribute! t (DRMAA 'V_ENV)
+ (list "USER=rwurmus" "USER=rwurmus" "you"))
+ (run-job t)))
+
+(init-session!)
+(test)
+(exit-session!)
+#+end_src
+
+Higher level bindings will be added eventually.