Questions tagged [exit]

Exiting, quitting, or halting refers to the termination of a process or program.

Filter by
Sorted by
Tagged with
0 votes
0 answers
16 views

When/why would one want to kill the IPython kernel?

Background: I am new to Python and Spark. In Spyder, I was troubleshooting why the following IPython console Startup command sometimes leads to multiple Spark Web UIs on ports 4040, 4041, 4042, etc. ...
user2153235's user avatar
0 votes
0 answers
11 views

Windows error code is 0 after exiting with error in NodeJS

I'm testing an application that runs on both MacOS and Windows using Node. If I have a program that exits with an error, the exit code is set on MacOS but not Windows. Running the error command $((0/0)...
Jacob Wartofsky's user avatar
1 vote
0 answers
45 views

FAILURE: Build failed with an exception on Flutter

Hi Im getting this error on my project when trying to build the dlutter app Running Gradle task 'assembleRelease'... FAILURE: Build failed with an exception. * Where: Script '...
Mohammad 7MoD's user avatar
0 votes
0 answers
17 views

Why is there an error in the exit() function in numba

this is my code: import numba as nb @nb.njit() def test(is_ok): if ( is_ok ): print(" error"); exit(); return; if __name__ == '__main__': is_ok = True; ...
Zhao Dazhuang's user avatar
0 votes
0 answers
32 views

How to Debug a SIGTERM that Causes Abrupt Helidon Server Shutdown

A simple Java program catches kill -SIGTERM and starts the JVM shutdown hooks (i.e., Runtime.addShutdownHook()). When the hooks complete, the JVM shuts down cleanly. A simple Helidon server has a JVM ...
Nathan's user avatar
  • 8,142
0 votes
0 answers
16 views

Why doesn't esbuild process exit when building by script?

I have this build.ts script: import * as esbuild from 'https://deno.land/x/[email protected]/mod.js' await esbuild.build({ entryPoints: ['main.ts'], }) The command deno run --allow-all --allow-env .\...
Ooker's user avatar
  • 2,067
0 votes
2 answers
45 views

Implement exit routine in python executable

I have created a executable of a python application using the library pyinstaller. When the *.exe is started via a double click a window with the python console starts and the application begins to ...
kamaru510's user avatar
0 votes
1 answer
34 views

Trying to end my python code if certain conditions are met without any output

I'm a very amateur programmer and was just messing around with making my own code outside of class. I made a simple game of sorts where random numbers meant to represent a series of dice rolls are ...
SaturnT's user avatar
1 vote
1 answer
50 views

How to auto close the console in BlueJ

I want to exit only the console in a method. I tried this: import java.util.Scanner; Scanner input = new Scanner(System.in); System.out.print("Press Enter to quit..."); input.nextLine(); ...
Burguel's user avatar
  • 13
-1 votes
1 answer
60 views

i can't exit while loop without using exit(). Neither break nor return don't exit the loop?

machine = True money = 0 def game(): global money, machine while machine: order = input("What would you like? (espresso/latte/cappuccino) ") # Gets order machine = ...
MaximusPrima's user avatar
0 votes
0 answers
23 views

Django - Alert user if exiting before submitting form

I have a page in my Django app with a form, and I would like to warn users if they try to exit the page without submitting the form. Below is the answer that I found, but it also asks users if they ...
C Regnew's user avatar
0 votes
1 answer
18 views

stopping a powershell script mid-code not working

My Script uses Windows Forms and I got a Cancel Button in one of the windows. If I click the button just nothing happens and the script goes on like nothing happend. Looks like the exit just isn't ...
cosmo_'s user avatar
  • 11
0 votes
0 answers
52 views

How to stop calling a subroutine in fortran

I am attempting to call a subroutine within my code that looks like this; CALL RAYLEY(SIGR,AL2,Fwater,FNCR) And when the code reaches this line, it gives me; Program received signal SIGFPE:...
jlan160's user avatar
  • 23
1 vote
1 answer
43 views

Python unittest C extension call to exit() [duplicate]

TLDR I can't get unittest to run a test where I am trying to check that my Python C extensions calls exit(1) from stdlib.h. The setup I have a Python unit test and C extension which looks like the ...
oliversm's user avatar
  • 1,787
0 votes
0 answers
11 views

How do I add a 'x' button to the top right to close out of the modal?

<div class="ReactModal__Overlay ReactModal__Overlay--after-open Modal__Overlay Modal__Overlay--popup" style="transition: none 0s ease 0s !important; top: 96px !important;"><div class="...
Haseeb Rahman's user avatar
0 votes
0 answers
301 views

React Native: Command PhaseScriptExecution failed with a nonzero exit code

So, I just created a new React Native using react-native init projectName, then I got an error of type cli is not a function and whatnot. So I used react-native init projectName --version 0.68.2, and ...
Phaswa Tiyasi's user avatar
1 vote
2 answers
49 views

Exiting live plotting with a key press

I have made a program that plots data from a network analyzer live. The plotting of the graph is inside a while loop. The program does not stop plotting unless the program is closed. I want a program ...
Unstable's user avatar
1 vote
0 answers
50 views

save and exit to edit-mode

i have tables with edit button on the side. if i click the edit button it works fine, i can change/modify and the button edit change to save button just in case you need to save update the changes in ...
Ericson Ramos's user avatar
0 votes
0 answers
28 views

How do I close the original program using a second program that has been called in by the original in python

Trying to set up a pygame main menu for a game which closes once a level is selected and opened Tried Subprocess.Popen(app) and simply tried sys.exit() after calling the second script in the original ...
Matteo Latham's user avatar
0 votes
0 answers
41 views

What's the difference between the 3 commands: Exit-PSSession , Exit-PSHostProcess and Exit in Powershell?

I start to lean PowerShell this year, and I have some confusion about the PowerShell commands: Exit-PSSession , Exit-PSHostProcess and Exit. Could anyone expert to help me to understand these commands,...
Larry X's user avatar
0 votes
0 answers
57 views

AT&T Assembly not return with exit 1

I've read the documentation on assembly and this is how you exit a program using the AT&T Syntax .section .text .global _start _start: mov $60, %eax # System call number for exit mov $1,...
user avatar
0 votes
0 answers
20 views

Android application returns to main activity instead of exiting

I created an exit screen for an android application - when the user clicks exit, it is supposed to show the exit screen for 2sec then close the app. This works in android 10 & pixel emulator, but ...
Manu G Manu's user avatar
1 vote
1 answer
56 views

Exit application on press of IconButton in Flutter

How to permanently exit the application from IconButton in AppBar? I set icon: return Scaffold( appBar: AppBar( title: const Text('Your app'), actions: [ ...
aleksB's user avatar
  • 13
0 votes
0 answers
29 views

Exit from a Jupyter notebook within another

I am performing different types of analyses over some data. I keep the preprocessing, main iteration, and plotting in one ‘main.ipynb’. From one cells that loops over chunks of the data I call another ...
Dom's user avatar
  • 70
0 votes
2 answers
167 views

Write a simple error message without a backtrace [duplicate]

I want to write to either STDOUT or STDERR a clean, simple error message for the user, without the (verbose) backtrace. I am currently using raise to write the error message and exit, as in this ...
Timur Shtatland's user avatar
0 votes
0 answers
28 views

Linux exit 0 command without a newline?

Linux how do you use the exit 0 command without a newline? I want : exit 0 $ I have : exit 0 $ I have tried: exit -ne 0 echo -ne exit 0
Bob Gax's user avatar
  • 11
1 vote
0 answers
48 views

How to stop the entity or controller creation process in the Terminal? (Symfony)

I'm new to Symfony. I would like to know if there is a way (shortcut or anything) to stop the creation process of an entity or controller in the terminal (?). For example, if I make a typo naming the ...
JuanS's user avatar
  • 11
0 votes
1 answer
42 views

Python: filedialog.asksaveasfilename() exits accidentally

Recently I'm learning PyQt5 and Tkinter, and I'm implementing a function that saving text as a txt to the address I designated. The codes are here(part of the hole application): import tkinter....
yamato's user avatar
  • 85
0 votes
0 answers
12 views

Trades won't close at set stop and profit level

I am creating a simple long/short pinescript. I want my long trades to close with +6% profit and close when -4% in loss. For my shorts I want it to close with +3% profit and when -2% in loss. Current ...
Pieter hein's user avatar
0 votes
2 answers
138 views

A button which would stop the program when pressed in python with tkinter

Is it possible in python with the use of tkinter to have a button which would, when pressed, stop the program completely, not only closing the window but would stop it ? I tried 2 different ways of ...
Uncrow's user avatar
  • 13
1 vote
1 answer
91 views

Is it possible to execute code after Exit Sub In vb6?

Is there anyway to execute code after exit sub? In the following code: If Dir("C:\My Folder\myfile.dll") <> "" Then Exit Sub End If 'Somecodehere etc I tried to put the ...
NewUser's user avatar
  • 65
0 votes
3 answers
214 views

How can I make a C# Console program wait for certain code before terminating?

I have a C# project using a Logger. To improve performance, this Logger will add the log info to a waiting queue, and another thread will handle it, including writing it to the Console and the log ...
Yyh's user avatar
  • 113
0 votes
0 answers
18 views

Package installation SOEPhelp non-zero exit status error

I am having trouble downloading this package: install.packages("http://companion.soep.de/SOEPhelpR/SOEPhelp_0.37.1.tar.gz", repos = NULL, type = 'source', quiet = TRUE) And get the following ...
gemey's user avatar
  • 1
0 votes
0 answers
17 views

How to prevent terminal from exiting on process error

I try running some script pulled from an open-source GitHub project, but the script crashes and the terminal quits. My VSCode said The terminal process "/bin/bash" terminated with exit code: ...
Pond-nj's user avatar
  • 35
9 votes
5 answers
2k views

Vite build hangs forever

when I run vite build aka npm run build the build performs without errors. I see built in 4661ms. but the process never finishes. It just hangs. How can I make the process end and exit?
Stephani Bishop's user avatar
-3 votes
2 answers
54 views

quit while loop inside for loop [duplicate]

I have the following logic in my code: count=0 for x in lst: print('hello!') while True: rep=input('save this?y/n?') print(rep) if rep=="y": ...
Reut's user avatar
  • 1,561
2 votes
1 answer
526 views

How to exit a powershell script that runs in the systray?

I would like to exit this systray program by clicking with the left mouse on the text "Quit.". When I hover, the mouse shows a rotating blue icon and clicking does nothing. What's the ...
merlinuwe's user avatar
  • 191
-1 votes
1 answer
82 views

Trying to get program to quit when "quit" is typed. C++

I'm currently trying to get my program to quit when "quit" is typed out but it won't work and nothing happens. On occasion it terminates it. I'm super new to all coding so any help is ...
kaiblu's user avatar
  • 1
-1 votes
1 answer
62 views

How to close cmd window when batch file running exe

A very basic question, sorry. How do I close a batch file CMD window after a command to run a exe is running in it's own separate window? I mean even a trivial example like below? The window doesn't ...
imacken's user avatar
0 votes
0 answers
66 views

python - code won't kill when using command to terminate

I am trying to create a version of cookie clicker, except using text i/o in the console, and when the user enters the command "exit", I want it to kill the program. Still, this does not work,...
Yugm Shah's user avatar
1 vote
1 answer
276 views

Daemon threads - When does a python app finish running?

I found this in the python documentation. https://docs.python.org/3/library/threading.html#threading.Thread.daemon The entire Python program exits when no alive non-daemon threads are left. Does ...
user avatar
0 votes
1 answer
44 views

Not sure why program only works once

I have an assignment to write a palindrome checker that can loop back into itself and also contains a quit statement. I'm not sure why what I came up with doesn't work. It will work once but then ...
jake myers's user avatar
1 vote
1 answer
177 views

os.Interrupt is not working. How can I stop the program with the signal?

` package main import ( "context" "os" "os/signal" "sync" "syscall" ses "github.com/jame/SES-algorithm/SES" &...
Legend Never Die's user avatar
0 votes
0 answers
34 views

My Python code is getting stuck in a loop when I type "Exit". Shouldn't it just exit the program altogether? [duplicate]

My Python code is getting stuck in a loop when I type "Exit" or "exit" after the program prompts me for a user name. Shouldn't it just exit the program altogether? What am I ...
The Tree Code's user avatar
0 votes
2 answers
101 views

How can I use boolean variable in this method to exit out of while for-loop?

I have a method that finds the position of a specific element in a queue and returns the position. I am finding the position by using the n counter and incrementing every time until I find the element ...
stackover's user avatar
0 votes
0 answers
20 views

exit strategy long and entry.strategy short with reaching the open of an bearish engulfed at least 5 candles later

I'm a sales guy and have no clue of programming but youtube videos helped to get some basic understanding. At the beginning of the Long Strategy I took from one of the videos the basic stop loss. If a ...
Alex ACN's user avatar
0 votes
0 answers
19 views

I wanted to Load interstitial ad on exit pop up when user pressed yes button. But as soon as ad loaded it closes the application

it an exit pop up confirnmation I wanted to Load interstitial ad on exit pop up when user pressed yes button. But as soon as ad loaded it closes the application (I wanted to Load interstitial ad on ...
Usama Subaiyyal's user avatar
0 votes
1 answer
56 views

Continue asking user for input until condition is met in two way process

I continue to ask for user input until a negative number is entered. One user enters a positive number, the parent reads it and passes the input to the child. The child replies back with square root ...
BearB's user avatar
  • 1
0 votes
1 answer
111 views

exit pine strategy when price moves X% up or down

Hello there I am attempting to create a pine strategy that will exit a position once the price has gone 3% up or 1% down, can any one guide this is what I have so far //@version=5 startDate = input(...
Esteban G. Gutierrez's user avatar
0 votes
1 answer
39 views

Closing sub-window in tkinter leaves command window behind

In the following code if I close by clicking the delete window "X" in the top right of the root window, all is fine. If I open the sub-window and click "Quit", all is fine. But if ...
Trevor Boardman's user avatar

1
2 3 4 5
52