Norscax Posted May 8, 2018 Posted May 8, 2018 how do i save a file as .bat to run cli on ubuntu? o tried but it doesnt work
Norscax Posted May 8, 2018 Author Posted May 8, 2018 1 minute ago, goldKeeper said: you need to save it as .sh and make it executable and do u make it exucutable?
goldKeeper Posted May 8, 2018 Posted May 8, 2018 you can either right click it and look for permissions tab and set it to executable for the owner or if you are familiar with the terminal just do chmod +x fileName.sh and execute it with ./fileName.sh
Norscax Posted May 8, 2018 Author Posted May 8, 2018 16 minutes ago, goldKeeper said: you can either right click it and look for permissions tab and set it to executable for the owner or if you are familiar with the terminal just do chmod +x fileName.sh and execute it with ./fileName.sh did the first part and was able to click on execute but nothing pops up
goldKeeper Posted May 8, 2018 Posted May 8, 2018 then execute it in terminal and tell us the error. You can execute in the terminal with either ./file.sh or bash filename.sh and if you are not at the right directory then do bash /path/to/file/file.sh