autoTelnet within Linux
1, auto Telnet in linux
assumption:
host : localhost
user/passwd : oracle/oracle
run the following command at bash shell environment, you will see an interesting automatic output . So we have the Linux's amazing experience.
( sleep 2; echo "oracle" ; sleep 2 ; echo "oracle" ;sleep 2; echo "echo hello I'm oracle person."; sleep 2; echo "ls " ;sleep 2)|telnet localhost
2, use xargs , process only ONE parameter each time:
As we all knows, xargs could convert the string in a stream to the command line parameters, by default all string in the input stream will transport to parameter in one line, But we sometimes do wanna one parameter per line. How would we do ? Here is a sample to achieve it.
ls|xargs head -1 # add all parameter into one line.
ls|xargs -L1 -r head -1 # add each parameter into each line. This is we really wanted . with "-r" , do not run command head if input stream is NULL.
來自 “ ITPUB部落格 ” ,連結:http://blog.itpub.net/350519/viewspace-1034396/,如需轉載,請註明出處,否則將追究法律責任。
相關文章
- 新CSS偽類:focus-withinCSS
- service_update within listener.log
- How to dynamically evaluate a tag within a java fileJava
- 神奇的選擇器 :focus-within
- MySQL 5.5 -- Metadata Locking Within TransactionsMySql
- 艾倫·坡《夢中夢》(A Dream Within A Dream)
- CSS :focus-within 偽類選擇器CSS
- initialize or clean up your unittest within .net unit test
- Service.cpp:10:28: error: within this contextErrorContext
- Oracle 12C RMAN Duplicating Tablespaces Within a PDBOracle
- Running Central Admin on Multiple Servers within a FarmServer
- 神奇的選擇器 :focus-within,子控制父
- 使用 tabindex 配合 focus-within 巧妙實現父選擇器Index
- How To Identify a Hot Block Within The Database Buffer Cache. [ID 163424.1]IDEBloCDatabase
- View and Data API Tips: Constrain Viewer Within a div ContainerViewAPIAI
- Rename a Datafile in Primary Within in Physical Dataguard Configuration_733796.1
- How to dynamically evaluate a tag within a java file?(上個發錯了,重發)Java
- HP:11gR2 runI Fails internal err occu within cluster verif framework"_983713.1AIFramework
- 錯誤:ORA-28002: the password will expire within 7 days 解決方法
- android TV-Making TV Apps Searchable,Searching within TV AppsAndroidAPP
- ocp 19c考題,科目082考試題(23)- space management within blocks managed ASSMBloCSSM
- 下載特定區域內街景照片資料 | Download Street View Photos within Selected RegionView
- 關於VHDL中Loop State error...loop must terminate within 10,000 iterations錯誤解決方法OOPError
- 論文翻譯:2018_LSTM剪枝_Learning intrinsic sparse structures within long short-term memoryStruct
- 【Linux】常用linux操作Linux
- 【LINUX】LINUX PHP搭建LinuxPHP
- [linux]重拾linuxLinux
- Linux module(Linux 模組)Linux
- 【LINUX】linux ulimit調優LinuxMIT
- Linux知識--初始linuxLinux
- LINUX(十七)Linux其它命令Linux
- LINUX(十四)Linux磁碟管理Linux
- Linux1:Linux概述Linux
- 【Linux】Linux安全加固指令碼Linux指令碼
- 【linux】Linux作業系統Linux作業系統
- Linux小白如何快速上手Linux?Linux
- Linux安裝之Linux mintLinux
- 【Linux基礎】Linux目錄Linux