Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Program sink doesn't writes to stdin? #6

Open
raphaelyancey opened this issue Feb 4, 2020 · 1 comment
Open

Program sink doesn't writes to stdin? #6

raphaelyancey opened this issue Feb 4, 2020 · 1 comment

Comments

@raphaelyancey
Copy link

Hi, I'm having an issue reading stdin in a program sink.

/home/jobber/.jobber

version: 1.4
jobs:
  GroupDefine:
    cmd: curl -v http://app/script.php
    time: 0 * * * * *
    onError: Backoff
    notifyOnSuccess:
      - type: program
        path: /usr/local/bin/barbaz

/usr/local/bin/barbaz

#!/bin/bash
echo < /dev/stdin > /tmp/stdout.txt
# Also tried with <&0 instead of < /dev/stdin
$ docker-compose exec jobber cat /tmp/stdout.txt

$ # ^ file is created but is empty

/tmp/stdout.txt should be filled with a RecRecording, right?

@raphaelyancey raphaelyancey changed the title Program sink doesn't read stdin Program sink doesn't writes to stdin? Feb 4, 2020
@raphaelyancey
Copy link
Author

NOTE: using stdout sink it does write the runRecording to the container's stdout.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant