You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
jobbercommand.sh simply run a python3 scripts which outputs two different lines, one to stdout, one to stderr.
In the current terminal output, I can only see the output the script made to stdout.
(This got me thinking for hours that jobber was not working, since my initial script only wrote to stderr: all I saw was a "blank" output from jobber, thinking the script never run and not having any message to help me debug appart from the return code).
Is it not the way to write a jobber file which captures both stderr and stdout and redirect the result to current terminal stdout?
Thank you for reading!
Edit: for completeness, the Python script
#!/usr/bin/env python3
import sys
if __name__ == "__main__":
print("Stdout message from Python.")
print("Stderr message from Python.", file=sys.stderr)
The text was updated successfully, but these errors were encountered:
I am also having this problem trying to capture the output of my jobber script, which at this point is just an echo command to make sure I can get it to work. The format of the .jobber file in the documentation is a bit different than what's actually in the file when I enter a bash terminal inside my docker container. This is what I set up initially, which I can confirm runs:
Below is an attempt to separate out the resultsSinks into their own section. This fails with a "Failed to parse 'jobs' section: yaml: unmarshal errors: line 6: cannot unmarshal !!seq into bool"
I am trying to capture both
stderr
andstdout
of my job, to output tostdout
.(I am yet another Docker user ; )
I could not find instructions in the current doc, but have been following this comment: #182 (comment)
Now my jobber file is as follows
jobbercommand.sh simply run a python3 scripts which outputs two different lines, one to
stdout
, one tostderr
.In the current terminal output, I can only see the output the script made to
stdout
.(This got me thinking for hours that jobber was not working, since my initial script only wrote to
stderr
: all I saw was a "blank" output from jobber, thinking the script never run and not having any message to help me debug appart from the return code).Is it not the way to write a jobber file which captures both
stderr
andstdout
and redirect the result to current terminalstdout
?Thank you for reading!
Edit: for completeness, the Python script
The text was updated successfully, but these errors were encountered: