Shell ....

Need help with C, C++, perl, python, etc?

Shell ....

Postby A.I. BOT » 2006-07-26 15:39

Code: Select all
#!/bin/sh
cd /var/www
echo Content-Type: image/png
echo
DISPLAY=:0 scrot desktop.png
cat desktop.png
rm desktop.png


that works good for me, takes a snapshot of my desktop when i visit http://localhost/cgi-bin/desktop.sh and shows it fine ... but I need something ...

Is there a way to check if mousepad is viewable or is the current window open in XFWM4. Im trying to get the current active window im using. Is there a command for this ?

Thanks.
A.I. BOT
 
Posts: 3
Joined: 2006-02-18 15:46

Postby beissemj » 2006-09-01 20:12

xwinfo
beissemj
 
Posts: 38
Joined: 2006-07-19 13:53


Return to Programming

Who is online

Users browsing this forum: No registered users and 5 guests

fashionable