🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #517

Re: Stop execution

#517
From: lredmond
Date: Sun, 27 Jul 2003 19:50
16 lines
1496 bytes
Thats one way, another could b to use a properties file with a flag
running=true

have your program check this flag, if its not true then exit, you will have
to load this file each time
"John Steed" <my@spam.org> wrote in message
news:3f20ea02@newsgroups.borland.com...
>
>     How can I (safely and simple) stop execution of my app from outside?
It
> is executing on Linux/Unix. I was thinking to check if some file exists in
> app folder, and if not, then stop app from code. Then, if I want to stop
my
> app I would delete that file. Is there better solution?
>
>
Technical Details
Message-ID: <3f242d24$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail
References: <3f20ea02@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 1089d0,5820d46993b79e79
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2003-07-27 13:01:56 PST
From: "lredmond" <lredmond@nyc.rr.com>
Newsgroups: borland.public.jbuilder.java.api
References: <3f20ea02@newsgroups.borland.com>
Subject: Re: Stop execution
Date: Sun, 27 Jul 2003 15:50:48 -0400
Lines: 18
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 24.29.121.55
Message-ID: <3f242d24$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1059335460 24.29.121.55 (27 Jul 2003 12:51:00 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news1.google.com!sn-xit-02!sn-xit-04!sn-xit-03!sn-xit-01!sn-xit-09!supernews.com!news.maxwell.syr.edu!newsfeed.wirehub.nl!news.kweb.on.ca!KWeb!newsgroups.borland.com!not-for-mail