Skip to content

Not taking STDIN #1

@tristanvs

Description

@tristanvs

I might be a complete idiot, but the script works fine, apart that i cannot input a list through stdin like the documentation states.

root@ansible:/etc/ansible/playbooks/ansible-create-users# python generate_user_passwords.py < users.txt
You must at least give one username
Usage: generate_user_passwords.py [-l ] USER1[:PASSWORD1] USER2[:PASSWORD2] USER3[:PASSWORD3] ...
User names can also be passed via stdin (each username:password on a separate line)

users.txt contains:

whatnot
constantin
trudie
esthelle

Any clue about what i'm doing wrong?

Thanks in advance

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions