到目前为止,这就是我所拥有的:
Start-Process -FilePath Firefox -ArgumentList www.google.com start-Sleep -Seconds 40 killall Firefox start-Sleep -Seconds 5 Start-Process -FilePath Firefox -ArgumentList www.youtube.com
..。
基本上,我希望shell脚本打开google.com的firefox选项卡,在该网站上花费40秒,然后关闭该选项卡,等待5秒才能打开youtube.com。
我没有任何shell脚本经验,但编写了以下伪代码。任何关于正确语法/方法的反馈都是有帮助的!
618夏日盛惠
2核2G云服务器首年95元,GPU云服务器低至9.93元/天,还有更多云产品低至0.1折…
这应该是一项工作:
Start-Process -FilePath Firefox -ArgumentList www.google.com start-Sleep -Seconds 40 Get-Process firefox | Stop-Process start-Sleep -Seconds 5