Forums
New posts
Articles
Product Reviews
Policies
FAQ
Log in
Register
What's new
Search
Search
Search titles only
By:
New posts
Menu
Log in
Register
Install the app
Install
Forums
Apple Computing Products:
macOS - Operating System
Open a url in mac with blocking terminal
JavaScript is disabled. For a better experience, please enable JavaScript in your browser before proceeding.
You are using an out of date browser. It may not display this or other websites correctly.
You should upgrade or use an
alternative browser
.
Reply to thread
Message
<blockquote data-quote="tarun91" data-source="post: 1237768" data-attributes="member: 201957"><p>Hi,</p><p></p><p>I am trying to open a url in Safari through terminal in my MAC machine. I am using following command:</p><p><strong></strong></p><p><strong>open -a /Applications/Safari.app <a href="http://google.com" target="_blank">Google</a></strong></p><p>As soon as hit enter, this url opens in Safari but terminal doesn't block i.e. it comes out.</p><p></p><p>Then, i tried:<strong></strong></p><p><strong>open -a /Applications/Safari.app/Contents/MacOS/Safari <a href="http://google.com" target="_blank">Google</a></strong></p><p>same thing happens: As soon as hit enter, this url opens in Safari but terminal doesn't block i.e. it comes out.</p><p></p><p>Then i tried:<strong></strong></p><p><strong>/Applications/Safari.app/Contents/MacOs/Safari <a href="http://google.com" target="_blank">Google</a></strong></p><p>in this case, as soon as i hit enter, it blocks the terminal but in browser (Safari) it opens: file:///Users/Administrator/http:/google.com</p><p></p><p>How i open one url using terminal such that it opens that url properly in Safari and it blocks terminal also until i close the browser (in that case, it should come out).</p></blockquote><p></p>
[QUOTE="tarun91, post: 1237768, member: 201957"] Hi, I am trying to open a url in Safari through terminal in my MAC machine. I am using following command: [B] open -a /Applications/Safari.app [url=http://google.com]Google[/url][/B] As soon as hit enter, this url opens in Safari but terminal doesn't block i.e. it comes out. Then, i tried:[B] open -a /Applications/Safari.app/Contents/MacOS/Safari [url=http://google.com]Google[/url][/B] same thing happens: As soon as hit enter, this url opens in Safari but terminal doesn't block i.e. it comes out. Then i tried:[B] /Applications/Safari.app/Contents/MacOs/Safari [url=http://google.com]Google[/url][/B] in this case, as soon as i hit enter, it blocks the terminal but in browser (Safari) it opens: file:///Users/Administrator/http:/google.com How i open one url using terminal such that it opens that url properly in Safari and it blocks terminal also until i close the browser (in that case, it should come out). [/QUOTE]
Verification
Post reply
Forums
Apple Computing Products:
macOS - Operating System
Open a url in mac with blocking terminal
Top