X-Git-Url: https://git.arvados.org/arvados.git/blobdiff_plain/7a47332fa99627c3ed0e22a02c54afcb6d128ef5..3da10f0c0f5a0c0c91d49436a5995c890b03d228:/doc/user/topics/run-command.html.textile.liquid diff --git a/doc/user/topics/run-command.html.textile.liquid b/doc/user/topics/run-command.html.textile.liquid index f02a6e6f5a..7883919696 100644 --- a/doc/user/topics/run-command.html.textile.liquid +++ b/doc/user/topics/run-command.html.textile.liquid @@ -239,6 +239,19 @@ Provide standard input and standard output redirection. @task.stdout@ specifies the desired file name in the output directory to save the content of standard output. When command describes a Unix pipeline, this captures the output of the last command. +h3. task.env + +Set environment variables for the command. Accepts an object mapping environment variables to the desired values. Parameter substitution is performed on values, but not on the environment variable names themselves. Example usage: + +
+{
+  "command": ["/bin/sh", "-c", "echo $MY_ENV_VAR"],
+  "task.env": {
+    "MY_ENV_VAR": "Hello world!"
+  }
+}
+
+ h3. task.vwd Background: because Keep collections are read-only, this does not play well with certain tools that expect to be able to write their outputs alongside their inputs (such as tools that generate indexes that are closely associated with the original file.) The run-command's solution to this is the "virtual working directory".