Unix / Linux Bourne / Bash Shell Scripting Tutorial [ steve-parker.org ]

Unix / Linux Bourne / Bash Shell Scripting Tutorial [ steve-parker.org ]

瀏覽:453
日期:2025-09-29
telnet2.sh #!/bin/sh # telnet2.sh | telnet > FILE1 host=127.0.0.1 port=23 login=steve passwd=hellothere cmd="ls /tmp" timeout=3 file=file1 prompt="$" echo open ${host} ${port} sleep 1 tout=${timeout} while [ "${tout}" -ge 0 ] do if tail -1 "${file}" 2>/de...看更多