Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
私はこのような期待スクリプトを持っています
#!/usr/bin/expect spawn /usr/bin/firefox https://www.google.com/
スクリプトが終了するとすぐに..端末は自動的に閉じますが、これは問題ありません。
開いたFirefoxブラウザも閉じます。
ブラウザを開いたままにしておく必要があります。
次のことを試しましたか?
#!/usr/bin/expect spawn /usr/bin/firefox https://www.google.com/ \&
また
#!/usr/bin/expect spawn /usr/bin/firefox https://www.google.com/ "&"