On Thu, 21 Jun 2007 at 18:35 +0530, K T Ligesh wrote:
> On Thu, Jun 21, 2007 at 01:51:40PM +0300, Yura Pakhuchiy wrote:
> > On Thu, 21 Jun 2007 at 06:57 +0530, K T Ligesh wrote:
> > > Is there someway I can run ntfsresize in a non-interactive
> > > manner? It seems that ntfsresize always asks for user confirmation
> > > before finally proceeding to the final step.
> >
> > You can write script that parses ntfsresize output and responds
> > respectively. There several ntfsresize front-ends, you can look on
> > some of them for example.
>
> Yes. I am using 'expect'. But it is very fragile, and it will depend
> on the output that ntfsresize prints, and any change means that it
> will not work. Genarally it becomes a bit more complex for debugging,
> and more chances of error, but yes, it can be done.
We try to do not change ntfsresize output without REALLY good reason.
BTW, ntfsresize source have following warning in the begging:
* WARNING FOR DEVELOPERS!!! Several external tools grep for text messages
* to control execution thus if you would like to change any message
* then PLEASE think twice before doing so then don't modify it. Thanks!
--
Best regards,
Yura
|