我不是编码员,但我在一个要求使用ms powershell的课程中有一个作业,但我在Mac上。我已经想出了binbash ......有点儿。我被要求写一个剧本......
"`n"
Echo "Hello Internet World! -- I am here"
"`n"
Echo "My Name is Norma and today is `r"
Get-Date
"`n"
ECHO "As a net admin testing is an important part of the job"
"`n"
ECHO "You should check for IP information with ipconfig "
"`n"
ipconfig
Echo "You should check connectivity with ping"
PING www.google.com
ECHO "All done pinging google"
ECHO "This is a very simple program using windows powershell scripting"
我得到了......
#!/bin/bash
Echo Hello Internet World! -- I am here
Echo My Name is Dawn and today is $(date)
ECHO As a net admin testing is an important part of the job
ECHO You should check for IP information with ipconfig
ipconfig
Echo You should check connectivity with ping
PING www.google.com
ECHO All done pinging google
ECHO This is a very simple program using Mac bin bash scripting
但是当我运行它时,它不会停止ping google.com。我怎么能让它停下来,所以它将继续“所有完成ping谷歌”等?
感谢您的帮助!