Page loading

Share your opinion
What do you think about gambaslinux.fr?
 
Interesting
It miss some informations
Excellent website
Results
WIDGETS GAMBAS
GAMBAS 3 SOFTWARES
TUTORIALS
Library
Create own software - One program start
Start your application one time


hye,
Taoteblue show us today a very intersting tips.
Well, here you find somesource code to test if your application is started in the task and it run one item of your appication.
Here the code :

PUBLIC SUB Form_Open()
DIM Sortie AS String

EXEC ["pgrep", "-f", "-l", "My_gambas_program_name.gambas"] WAIT TO Sortie

IF Split(Trim$­(Sortie), gb.NewLine).Count > 1 THEN
Message.Info("applcation is started", "Close")
ME.Close
ELSE

'Continu application

ENDIF
END

Regards


Creation date : 10/08/2010 @ 23:28
Last update : 10/08/2010 @ 23:28
Category : Create own software
Page read 4987 times


Print the article Print the article


react.gifReactions to this article

Nobody gave a comment yet.
Be the first one to do it!


QUICK MENU
SEARCH




LANGUAGE
COMPONENTS
Other
LANGUAGE
Where, who?
VISITS

   visitors

   visitors online

ARCHIVES GAMBAS 1/2
^ Top ^