Subject: Switching wm background using cron?
To: None <netbsd-users@netbsd.org>
From: Jan Danielsson <jan.danielsson@gmail.com>
List: netbsd-users
Date: 08/26/2005 21:26:59
This is an OpenPGP/MIME signed message (RFC 2440 and 3156)
--------------enigF2314EDC331FB7454634CA5C
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.
--------------enigF2314EDC331FB7454634CA5C
Content-Type: application/pgp-signature; name="signature.asc"
Content-Description: OpenPGP digital signature
Content-Disposition: attachment; filename="signature.asc"
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.2 (MingW32)
iD8DBQFDD20M8wBCTJQ8HEIRAiXHAJ9FbSsK46DfFJ9Pa7VBCON+0O2nwACgvMUU
vtkZfoOrjHUqshzu96czZ4o=
=OgWJ
-----END PGP SIGNATURE-----
--------------enigF2314EDC331FB7454634CA5C--