If you’ve tried using
plesk in a Bash script and you’re encountering the error
plesk: command not found, the fix is very simple – you just need to prepend
plesk with the location of the executable.
plesk should be located at
/sbin/plesk, so update your Bash script as follows:
plesk db "query"
/sbin/plesk db "query"