I appreciate all your assistance.
with adding the
Code: Select all
DISPLAY=:0.0
note for anyone reading after this thread is closed.
This DISPLAY option only works if your executing your script as the user that is currently logged in and will not execute properly under the sudo command as suggested.