当前位置: 技术问答>linux和unix
telnet mail???
来源: 互联网 发布时间:2016-08-11
本文导语: telnet ip port 发邮件,不用交互式的,写在shell脚本里怎么写 例如: #!/bin/sh telnet ip port ! 结果总是会报 Connection closed by foreign host 但是不用脚本,直接telnet是可以的 | 现在命令行把你...
telnet ip port 发邮件,不用交互式的,写在shell脚本里怎么写
例如:
#!/bin/sh
telnet ip port !
结果总是会报 Connection closed by foreign host
但是不用脚本,直接telnet是可以的
例如:
#!/bin/sh
telnet ip port !
结果总是会报 Connection closed by foreign host
但是不用脚本,直接telnet是可以的
|
现在命令行把你的每个步骤的提示 和要输入的信息记录下来
然后用expect脚本实现 不用shell脚本
然后用expect脚本实现 不用shell脚本