[prev in list] [next in list] [prev in thread] [next in thread]
List: kde
Subject: Re: Assigning conditional statements to Icons on Desktop
From: Willi Kappler <grandor () gmx ! de>
Date: 1999-08-07 9:31:15
[Download RAW message or body]
On Wed, 04 Aug 1999, Terry wrote:
>Does anyone know if it is possible to use IF/THEN conditions in conjuction with
>starting apps? For instance..........I can make my email desktop icon APPEAR to
>dial my PPP connection on demand (Done through kppp), but can I tell my other
>internet apps to "look" to see if kppp is already running BEFORE it executes the
>actual app? I'm sorry if I am not making myself clear. If you need more info
>just ask. FYI Running RH6.0 with KDE1.1.1.
>TIA
>Terry
>--
Hi,
what about a shell script which is startet by the desktop icon?
To find out if kppp is running, you could do the following:
ps | grep kppp | grep -v grep && echo kppp is running
for the shell script:
#!/bin/bash
if ps | grep kppp | grep -v grep
then
echo kppp is running
else
echo kppp is not running
fi
Bye,
Willi
--
Send posts to: kde@lists.netcentral.net
Send all commands to: kde-request@lists.netcentral.net
Put your command in the SUBJECT of the message:
"subscribe", "unsubscribe", "set digest on", or "set digest off"
PLEASE READ THE ARCHIVED MESSAGES AT http://lists.kde.org/ BEFORE POSTING
**********************************************************************
This list is from your pals at NetCentral <http://www.netcentral.net/>
[prev in list] [next in list] [prev in thread] [next in thread]
Configure |
About |
News |
Add a list |
Sponsored by KoreLogic