... 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.
In reply to Re: var string not printing correctly
by bliako
in thread var string not printing correctly
by TonyNY
| For: | Use: | ||
| & | & | ||
| < | < | ||
| > | > | ||
| [ | [ | ||
| ] | ] |