Am Dienstag, 15. Oktober 2013, 13:18:17 schrieb Michael Speer:
> > "/usr/sbin/ftpasswd" "--hash"
>
> You're missing a comma, and python automatically concatenates adjacent
> strings.
Damn!
Thanks!
>
> On Tue, Oct 15, 2013 at 1:13 PM, Florian Lindner wrote:
> > Hello,
> >
> > I have a 3rd par
> "/usr/sbin/ftpasswd" "--hash"
You're missing a comma, and python automatically concatenates adjacent
strings.
On Tue, Oct 15, 2013 at 1:13 PM, Florian Lindner wrote:
> Hello,
>
> I have a 3rd party perl script:
>
> head -n 1 /usr/sbin/ftpasswd
> #!/usr/bin/perl
>
> I want to write data to s
Hello,
I have a 3rd party perl script:
head -n 1 /usr/sbin/ftpasswd
#!/usr/bin/perl
I want to write data to stdin and read from stdout:
proc = Popen( ["/usr/bin/perl", "/usr/sbin/ftpasswd" "--hash", "--stdin"],
stdout=PIPE, stdin=PIPE)
output, input = proc.communicate(pwd)
return output.stri