Subject: Switching wm background using cron?
To: None <>
From: Jan Danielsson <>
List: netbsd-users
Date: 08/26/2005 21:26:59
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
Content-Type: text/plain; charset=ISO-8859-1
Content-Transfer-Encoding: 7bit

Hello all,

   I have written a small script which changes WindowMaker's background
to an image chosen randomly from a directory. The script calls
"wmsetbg". So, I thought I'd set up a cron job to change picture at a
certain interval. This worked good, until I quit X (obviously) since
wmsetbg no longer could communicate with WindowMaker.

The script is written in Python.

How do I find out if WindowMaker is running from my script?

   Or is there some other solution? (Like modifying cron when
WindowMaker starts/stops - seems highly unstable, though)?

Kind Regards,
Jan Danielsson
Te audire no possum. Musa sapientum fixa est in aure.

Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"

Version: GnuPG v1.4.2 (MingW32)