use sudo with no password
# Add rule
sudo sh -c "echo \"$USER\t\tALL = NOPASSWD: /usr/local/bin/exec\" >>/etc/sudoers"
# Delete rule
sudo sh -c "sed -ie \"/\/usr\/local\/bin\/exec/d\" /etc/sudoers"
Run besttrace for linux
command -v unzip >/dev/null 2>&1; [ $? -eq 0 ] && { command -v wget >/dev/null 2>&1; [ $? -eq 0 ] && { [ `getconf LONG_BIT` == 32 ] && filename="besttrace32" || filename="besttrace";wget --no-check-certificate -qO /tmp/besttrace4linux.zip https://cdn.ipip.net/17mon/besttrace4linux.zip; unzip -o /tmp/besttrace4linux.zip "$filename"; [ "$filename" != "besttrace" ] && mv -f "$filename" besttrace; chmod 755 besttrace; }; }