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

send_nrdp.py - Does not accept STDIN or File #16

Closed
box293 opened this issue Jun 21, 2017 · 1 comment
Closed

send_nrdp.py - Does not accept STDIN or File #16

box293 opened this issue Jun 21, 2017 · 1 comment
Milestone

Comments

@box293
Copy link
Contributor

box293 commented Jun 21, 2017

Help states the following:

  -d DELIM, --delim=DELIM
                        With only the required parameters send_nrdp.py is
                        capable of processing data piped to it either from a
                        file or other process. By default, we use t as the
                        delimiter however this may be specified with the -d
                        option data should be in the following formats one
                        entry per line.

When I try piping to it I get an error:

printf "centos01\t0\tThe host is up and OK\n" | ./send_nrdp.py -u http://10.25.5.2/nrdp/ -t XXXXX
Cannot connect to url.
syntax error: line 1, column 0

In addition there is currently no way of reading from a file (the help about says you can). Looking at the script there are comments that this is a to-do item.

@jomann09
Copy link
Contributor

Also fixed in #22

This issue was closed.
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

2 participants