Advertisement
v1ral_ITS

Example on how to execute entire script with root privs.

May 6th, 2018
130
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Bash 0.10 KB | None | 0 0
  1. #!/bin/bash
  2. [ "$UID" -eq 0 ] || exec sudo "$0" "$@"
  3. iwlist $1 scanning | grep 'Channel\|ESSID'
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement