in reply to Perl Send-Expect Input discrepancy

I can't answer your question, but I'm compelled to ask: What happens if you change

print $fh "y\n";

to

print $fh "y";
?

Replies are listed 'Best First'.
Re^2: Perl Send-Expect Input discrepancy
by perlpal (Scribe) on Jul 08, 2009 at 12:17 UTC
    In that case i get the following output, and the tool hangs :

    WARNING: Are you sure you want to destroy volume f3050_233_10_vserver_cifs_2_dynamic_vol1 in vserver f3050_233_10_vserver_cifs_2 ? {y|n}: yy