Chels has asked for the wisdom of the Perl Monks concerning the following question:
Here the send doesn't go through at all. i.e. it doesn't reach the expect() call at all. However, if i store unix type (/root/test/), it goes through.. Why does it happen? What is the issue with windows style directory name?my $Dir="C:\\users\\Administrator"; $object_handler_host->clear_accum(); $object_handler_host->send("cd $Dir\r"); $object_handler_host->expect($trn_timeout, [ qr/No such file or directory/i, => sub { print("ERROR::Failed t +o change directory $Dir....\n" );} ], [ ">" => sub { print("INFO: Changed to dir $Dir\n");}], [ "timeout" => sub { print("\nTimeout while changing the directory +. Exiting\n");}]);
|
|---|