[Mono-list] Interact with the console in Linux

Madars Vitolins madars.vitolins at gmail.com
Mon Jul 2 13:43:49 EDT 2007


I use following script for password samba/ldap password change:

$ cat chpass
#! /bin/sh

    echo "$2"
    echo "$2"
    } | /usr/sbin/smbldap-passwd "$1"

here is no magic, just call that chpass with <username> <password>


On 6/22/07, Hoqenishy <monodev.dsbl at antichef.net> wrote:
> Hi, folks - I've got a quick question that hopefully has an easy
> resolution... how can I pass commands to the console in Linux from a C#
> app?
> It's fairly easy to do in Windows from C#, but nothing I try in Mono seems
> to do the trick. I'm trying to automate password synchronization between
> Samba, passwd, and some database applications, and it would be REALLY
> handy
> if I could manage to do it with a C# app.
> Any help would be greatly appreciated. Thanks!
> --
> View this message in context:
> http://www.nabble.com/Interact-with-the-console-in-Linux-tf3961728.html#a11243045
> Sent from the Mono - General mailing list archive at Nabble.com.
> _______________________________________________
> Mono-list maillist  -  Mono-list at lists.ximian.com
> http://lists.ximian.com/mailman/listinfo/mono-list
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://lists.ximian.com/pipermail/mono-list/attachments/20070702/73ea76f1/attachment.html 

More information about the Mono-list mailing list