Starting browser (Firefox, Safari, Opera, Chrome) from batch/bash script
Bismillah :)
Tutorial
About Me
Home
General
Starting browser (Firefox, Safari, Opera, Chrome) from batch/bash script
January 17, 2013 Todi Adiatmo no comments Posted in General , Tutorial
Last week i got a project to develop a small HTML5 web pages as that behave like a powerpoint slide. This web application is going to act like a flash replacement. So the user must be able to run this web app with a double click on the file. One way to accomplish that task is by using command line script either in mac or windows.
We’re going to use bat file in Windows to do this task.
File : [windows]autostart_browser.bat
1 2 3
@ ECHO OFF START CHROME . EXE % ~ dp0index . html
In Mac we’re going to use a command file :
File : [mac]browser_autostart.command
1 2 3 4
#!/bin/bash # Opening Safari cd ` dirname $ 0 ` open - a / Applications / Chrome . app file : //$PWD/index.html
Replace Chrome with your prefered browser and index.html with your desired file.
Remember that your HTML file must be in the same folder with the script file
Manajemen baterai dan Sleep mode yang failed pada sebagian Ubuntu (dan distro linux lain) June 4, 2019
Running Synergy With Extended Monitor September 2, 2016
Running Laravel Lumen from sub-directory April 15, 2015
Tutorial Semantik Web + Ontology Building menggunakan protege July 3, 2014
Konfigurasi Permalink WordPress untuk NGINX July 16, 2013