Skip to content
This repository has been archived by the owner on Dec 7, 2019. It is now read-only.

Sometimes *.output files are not deleted automatically. #14

Open
yunikkk opened this issue Apr 11, 2017 · 2 comments
Open

Sometimes *.output files are not deleted automatically. #14

yunikkk opened this issue Apr 11, 2017 · 2 comments

Comments

@yunikkk
Copy link
Contributor

yunikkk commented Apr 11, 2017

Can't figure out the trigger yet, but sometimes *.output is not deleted.
Got a bunch of files, it contained

Script started on Tue Apr 11 15:01:33 2017
command: /Users/dmitryyunitsky/Library/Android/sdk/platform-tools/adb devices
Script started on Tue Apr 11 15:01:33 2017
command: /Users/dmitryyunitsky/Library/Android/sdk/platform-tools/adb devices
List of devices attached
Script started on Tue Apr 11 15:01:33 2017
command: /Users/dmitryyunitsky/Library/Android/sdk/platform-tools/adb devices
Script started on Tue Apr 11 15:01:33 2017
command: /Users/dmitryyunitsky/Library/Android/sdk/platform-tools/adb devices
List of devices attached
Script started on Tue Apr 11 15:01:33 2017
command: /Users/dmitryyunitsky/Library/Android/sdk/platform-tools/adb devices
List of devices attached
emulator-5554 device
Script done on Tue Apr 11 15:01:33 2017
Script started on Tue Apr 11 15:01:33 2017
command: /Users/dmitryyunitsky/Library/Android/sdk/platform-tools/adb devices

@koral--
Copy link
Contributor

koral-- commented Nov 9, 2017

I've also seen this issue.
At a glance, there is File.deleteOnExit() https://github.com/gojuno/commander/blob/4fea273b24007c3787bbbad538b6e8e1dbde3972/os/src/main/kotlin/com/gojuno/commander/os/Processes.kt#L115
so file won't be deleted if JVM process terminates abnormally.

@artem-zinnatullin
Copy link
Collaborator

Yep, that's expected, nothing we can really do here I guess unless it's a normal case when we expect files to be deleted.

I think with proper redirection to a folder instead of current working dir this will is fine.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants