How do I make this file.sh executable via double click?

后端 未结 5 1587
长发绾君心
长发绾君心 2020-11-28 17:42

First off I\'m using Mac.

Next, I need to execute this \"file.sh\" we will call it. Everytime I need to execute it I have to open Terminal and type:

         


        
5条回答
  •  悲&欢浪女
    2020-11-28 18:25

    1. Launch Terminal
    2. Type -> nano fileName
    3. Paste Batch file content and save it
    4. Type -> chmod +x fileName
    5. It will create exe file now you can double click and it.

    File name should in under double quotes. Since i am using Mac->In my case content of batch file is

    cd /Users/yourName/Documents/SeleniumServer

    java -jar selenium-server-standalone-3.3.1.jar -role hub

    It will work for sure

提交回复
热议问题