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
 like an xterm would.
 Here's a C module that simplifies running something in a pty:
More information about the samba-technical