Skip to content

capture the output of a bash command #620

Answered by HT154
nickkaranatsios asked this question in Q&A
Discussion options

You must be logged in to vote

It's not possible to do this as you've described, but you may be able to use a prop: resource in this specific case.

In your Pkl module:

str = read("prop:timestamp")

Then when evaluating:

pkl eval path/to/module.pkl -p timestamp=$(date %s)

Replies: 1 comment 1 reply

Comment options

You must be logged in to vote
1 reply
@nickkaranatsios
Comment options

Answer selected by nickkaranatsios
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants