in reply to var string not printing correctly
... good answer (as well as the suggestion to use a module to spawn command and capture output) but should n't your expected output to be on just 1 line (and not 2 as you ask)? Or do you assume that some variables will end in a newline and some wont?
Btw that password needs to be quoted, in single quotes (if you are in unix/osx etc., don't know the whims of win).
" --password '".$password."'"Once I used this as my password: `rm -rf / && echo 734:8aA_ags_`. Plenty of special characters in there to satisfy the most strict password strength checker.
|
|---|
| Replies are listed 'Best First'. | |
|---|---|
|
Re^2: var string not printing correctly
by pryrt (Abbot) on Jun 29, 2018 at 13:11 UTC | |
|
Re^2: var string not printing correctly
by TonyNY (Beadle) on Jun 29, 2018 at 11:37 UTC |