Problems running smbclient noninteractively

Michael B Allen mba2000 at ioplex.com
Thu Feb 17 04:45:00 GMT 2005


Russell Kliese said:
> Is there problems running smbpasswd noninteractivly?

A lot of programs behave differently depending on whether or not their
connected to a terminal. You could try system() but the only sure-fire way
to run an interactive program without a terminal is to do I/O with a pty
[1] like an xterm would.

Mike

[1] Here's a C module that simplifies running something in a pty:
    http://www.ioplex.com/~miallen/libmba/dl/docs/ref/sho.html



More information about the samba-technical mailing list