Advertisement
Guest User

Untitled

a guest
Jul 23rd, 2019
69
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.50 KB | None | 0 0
  1. osascript -e 'do shell script "open -a Terminal "'"$appDir"'"" with administrator privileges'
  2.  
  3. #!/bin/bash
  4. sudo /usr/bin/id
  5.  
  6. osascript -e 'do shell script "open -a Terminal ./something.command"'
  7.  
  8. osascript -e 'do shell script "sudo /Applications/Utilities/Terminal.app/Contents/MacOS/Terminal" with administrator privileges'
  9.  
  10. #!/bin/bash
  11. osascript -e 'tell application "Terminal"
  12. set newTab to do script "echo mypassword | cd /someFolder && sudo -S someCommand"
  13. end tell'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement