[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Re: bash and password variable




On 20/10/2013 11:23 PM, "Pol Hallen" <deben@fuckaround.org> wrote:
>
> Hi folks :-)
>
> I need create a programmatically script password using saslpasswd2
>
> saslpasswd user1
>
> after press enter I need (manually) insert a password
>
> How pass to saslpasswd a variable?
>
> Thanks!
>
> --
> Pol
>
>
> --
> To UNSUBSCRIBE, email to debian-user-REQUEST@lists.debian.org with a subject of "unsubscribe". Trouble? Contact listmaster@lists.debian.org
> Archive: [🔎] 5263CC21.7020509@fuckaround.org">http://lists.debian.org/[🔎] 5263CC21.7020509@fuckaround.org
>
Easiest is:
$ echo password > file.txt
$ saslpasswd user1 < file.txt
Otherwise you need to use expect.


Reply to: