Automating Program Start / Stop

Tez binary_y2k2 at blueyonder.co.uk
Fri May 12 17:52:45 UTC 2006


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

Art Alexion wrote:

> On Thursday 11 May 2006 23:19, Dana J. Laude wrote:
>
>> How would you automatically start a program upon login to KDE and
>> then stop and restart it every 4 hours?
>
>
>
>> I assume I can do this via cron, but I've never had to do the
>> shutdown / kill part before.
>
>
> Have you tried kcron? Very easy to configure.
>
You could put a simple script in ~/.kde/Autostart
like:

#Sample Script
/path/to/app & pid=$!
sleep 14400
kill $pid
$0

That would start & stop a app for you.
(if my math is right 14400 seconds is 4 hours)

Terence Simpson
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.4.1 (GNU/Linux)
Comment: Using GnuPG with Thunderbird - http://enigmail.mozdev.org

iD8DBQFEZMttgnNG6YggFBURAq0ZAKCq1YRO6x8J0XbcIK5Z2y4K7gCw3wCbB4mV
FRSzMRCykmutYWdnFvKZT7U=
=x6jl
-----END PGP SIGNATURE-----






More information about the kubuntu-users mailing list