V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
Distributions
Ubuntu
Fedora
CentOS
中文资源站
网易开源镜像站
carlosw
V2EX  ›  Linux

关于 echo 管道符的问题

  •  1
     
  •   carlosw · Jul 22, 2019 · 3332 views
    This topic created in 2483 days ago, the information mentioned may be changed or developed.

    我两次执行一样的 echo 内容,但是总有一次会少个 d 字母,这是啥原因?

    # echo  "dis int bri"  | /usr/local/sbin/microcom  -s 9600 /dev/ttyUSB5 -t 1000
    
    <WA4330-ACN>is int bri
                ^
     % Unrecognized command found at '^' position.
    <WA4330-ACN>
    
    
    # echo  "dis int bri"  | /usr/local/sbin/microcom  -s 9600 /dev/ttyUSB5 -t 1000
    dis int bri
    The brief information of interface(s) under route mode:
    Link: ADM - administratively down; Stby - standby
    Protocol: (s) - spoofing
    Interface            Link Protocol Main IP         Description
    NULL0                UP   UP(s)    --
    Vlan1                UP   UP       192.168.1.1
    WLAN-Radio1/0/1      UP   UP       --
    WLAN-Radio1/0/2      UP   UP       --
    WLAN-Radio1/0/3      UP   UP       --
    
    The brief information of interface(s) under bridge mode:
    Link: ADM - administratively down; Stby - standby
    Speed or Duplex: (a)/A - auto; H - half; F - full
    Type: A - access; T - trunk; H - hybrid
    Interface            Link Speed   Duplex Type PVID Description
    GE1/0/1              UP   1G(a)   F(a)   A    1
    GE1/0/2              DOWN auto    A      A    1
    WLAN-BSS11           UP   --      --     A    1
    WLAN-BSS12           UP   --      --     A    1
    WLAN-BSS13           UP   --      --     A    1
    WLAN-BSS14           UP   --      --     A    1
    WLAN-BSS18           UP   --      --     A    1
    WLAN-BSS19           UP   --      --     A    1
    
    2 replies    2019-07-23 11:41:02 +08:00
    arrow8899
        1
    arrow8899  
       Jul 23, 2019
    字符串加个引号试试
    julyclyde
        2
    julyclyde  
       Jul 23, 2019
    说实话,还是第一次见到用管道给 minicom 输入内容的
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   1360 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 32ms · UTC 17:23 · PVG 01:23 · LAX 10:23 · JFK 13:23
    ♥ Do have faith in what you're doing.