[CentOS] Question on /usr/bin/import for CentOS 7

Fri Jan 13 21:03:28 UTC 2017
Frank Cox <theatre at melvilletheatre.com>

On Fri, 13 Jan 2017 15:51:08 -0500
Jerry Geis wrote:

> However if I run the command using a shell script on a machine its not
> working.
> So in my script I have:
> export DISPLAY=:0.0
> /usr/bin/import -silent -window root screen.png

Does  the machine you're running the shell script on have an active X11 display?  You can't screenshot a desktop that doesn't exist.

Does your user own the desktop that you're trying to screenshot?

Is your user on the current access control list and allowed to connect to the desktop?

-- 
MELVILLE THEATRE ~ Real D 3D Digital Cinema ~ www.melvilletheatre.com