diff options
author | Ricardo Wurmus <rekado@elephly.net> | 2021-02-09 23:33:18 +0100 |
---|---|---|
committer | Ricardo Wurmus <rekado@elephly.net> | 2021-02-09 23:33:18 +0100 |
commit | 8684f2444bc2e6883a4e04fb46e7888f10eb6b19 (patch) | |
tree | 19d1b512e6de28a2b907e5556f180e32e9d619a9 | |
parent | 769921724787f87700c769762a0c91335d03e4c4 (diff) |
Add a simple example.
-rw-r--r-- | README.org | 22 |
1 files changed, 22 insertions, 0 deletions
@@ -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. |