Shell REDIRECT Input

Source: Internet
Author: User

#!/bin/Bashnc_start="NC 192.168.76.227 9999"LOOP=100000  for ((i=0;i< $LOOP; i++))  Do  <<eof$ieof Done

The above example is an example of a call to the NC command to send data to a listening port.

Here Nc_start is just an example, before <<eof can be any command

EOF is a variable name that can be customized, but must appear in pairs.

Any characters before XXX <<eof and EOF (including line breaks) are entered as input and placed into the input stream.

Shell REDIRECT Input

Related Article

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.