Let me guess, is it a solaris machine? :-)
Yes, there are some strange pty-implementations out there. And some of
them insert a space-backspace combo after a certain amount of chars. Try
setting the pty to raw before spawning the command.
Hope this helps,
Roland
James Shen (jcshen) schrieb:
> Hi, expect gurus :
>
> I have a very weird problem here , whenever the script send out the
> following command :
>
> "copy
> workspace:cores/1207476802_SAM_Alameda-A_svc_sam_*bladeAG*_log.2965.tar.gz"
>
> There is always a [<space>+<\b>] inserted in the word "bladeAG" and
> this cause the script failure.
>
> Here are the exp_internal output :
>
> copy
> workspace:cores/1207476802_SAM_Alameda-A_svc_sam_*bladeAG*_log.2965.tar.gz
> spawn id(5): Does `copy
> workspace:cores/1207476802_SAM_Alameda-A_svc_sam_*bla
> \bdeAG*_log.2965.tar.gz'
> match:
>
> I tried all kinds of regular expression to remove the char but the
> problem is still there :
>
> Appreciate for any help
>
> James
>
>
> ------------------------------------------------------------------------
>
> ------------------------------------------------------------------------------
> This SF.net email is sponsored by:
> High Quality Requirements in a Collaborative Environment.
> Download a free trial of Rational Requirements Composer Now!
> http://p.sf.net/sfu/www-ibm-com
>
>
> ------------------------------------------------------------------------
>
> _______________________________________________
> Expectperl-discuss mailing list
> Exp...@li...
> https://lists.sourceforge.net/lists/listinfo/expectperl-discuss
|