Skip to main content
1 vote
1 answer
338 views

I am running the same python.exe, from the same working directory, in VS Code's terminal running cmd.exe, and in Windows Terminal running cmd.exe. For some reason, these two behave differently. In ...
bers's user avatar
  • 6,341
1 vote
1 answer
96 views

I am debugging a workflow, and cannot quickly find a way to execute view (to print the diagnostic output) and then exit (quit) the workflow. The actual workflow is complex, and I reduced it to a ...
Timur Shtatland's user avatar
0 votes
1 answer
240 views

I am debugging a workflow, and cannot quickly find a way to execute view (to print the diagnostic output) and then exit (quit) the workflow. If I use System.exit(0) or exit(0) in the code snippet ...
Timur Shtatland's user avatar
2 votes
1 answer
180 views

I'm encountering a crash at exit(0) in a simple Perl script using DBI with DBD::Oracle, specifically when running on newer versions of glibc. Here’s a minimal script to reproduce the issue: use DBI; ...
tourist's user avatar
  • 614
1 vote
1 answer
267 views

I'm running a Perl script where everything appears to execute correctly, but it crashes immediately after calling exit 0;. Whether I run the script normally or with perl -d, the crash still happens. ...
tourist's user avatar
  • 614
0 votes
1 answer
79 views

I am using Spyder 6 console to invoke a Python script via the runfile command. After a recent Anaconda update, I found that sys.exit() no longer exits the script quietly. It prints: An exception has ...
user2153235's user avatar
  • 1,285
0 votes
0 answers
32 views

Using: go version go1.22.2 linux/amd64 on Ubuntu 24.04 some Go code: svc.Rc = 0 fmt.Println("my rc="+strconv.Itoa(svc.Rc)) os.Exit(svc.Rc) go run . ; echo $? # my rc=0 <== correct as ...
JohnA's user avatar
  • 899
2 votes
2 answers
238 views

I’m messing with PowerShell scripting and wanted to know if this was possible. I know when you use try / finally the code in the finally block will execute even when Ctrl+C is typed. However, how can ...
Ryan Cruz's user avatar
0 votes
0 answers
93 views

I'm having troules with Pydroid3: When a script is ending or an exception is thrown, Pydroid is halting and I have to force it to end by closing the app. Then anew opening the app, opening the script ...
lesenv's user avatar
  • 1
3 votes
0 answers
84 views

I am working on a C program that simulates a hair salon, and I'm facing an issue with terminating the main process from the simulation_timer_thread. The only way I can successfully exit the main ...
Bartłomiej's user avatar
0 votes
1 answer
58 views

I'm learnig python and doing some simple programming exercises (Python 3.13.2 and VScode 1.97.1) Here, while a counter runs in the while loop, I'm listening for any key press in the background. When &...
BEsmart's user avatar
  • 67
3 votes
1 answer
71 views

Question: In R or RStudio, if a user aborts an ongoing calculation (by clicking the stop sign or pressing esc), on.exit is not called. Is there a way such that if the user presses esc, a certain ...
Said's user avatar
  • 33
0 votes
1 answer
84 views

I want a Game of Life program in the console. The parameters to initialize the 'field' can be changed in the mainMenu(). When all is done, it returns 1, and the drawing begins. When we return from ...
c51p152's user avatar
0 votes
1 answer
63 views

I am trying to add a hotkey to my python program so that I can quit out of it without having to click on the anaconda prompt and do ctrl+c. From another topic I see that sys.exit() merely raises an ...
elscan's user avatar
  • 123
1 vote
1 answer
137 views

I currently have a file called shellScript.sh that has the following two lines node firstJavascriptFile.js node secondJavascriptFile.js The contents of firstJavascriptFile.js are as follows: console....
George Ji's user avatar

15 30 50 per page
1
2 3 4 5
189