pass credentials/msg via stdin