Kinook Software Forum

Kinook Software Forum (https://www.kinook.com/Forum/index.php)
-   [VBP] General Discussion (https://www.kinook.com/Forum/forumdisplay.php?f=2)
-   -   Pausing a command-line build? (https://www.kinook.com/Forum/showthread.php?t=4046)

digit 06-09-2009 09:37 AM

Pausing a command-line build?
 
Is it possible to pause a command-line build?

I'm thinking about something like UNIX signals, where I can just tell the process to wait until I tell it to continue again. These signals would come from the parent process I'm using to launch VisBuildCmd.

Thanks in advance.

kinook 06-09-2009 09:53 AM

You could use a signal file. Use a Wait action in the project to wait for a file to be created/modified, and write to the file in the parent process to signal the build to continue.
http://www.kinook.com/VisBuildPro/Manual/waitaction.htm

digit 06-09-2009 09:55 AM

Thanks for the quick reply. Impressive. :)

This isn't exactly what I'm looking for, unfortunately. I just would like a way to pause the build at an arbitrary point. Doing that with the Wait command would mean putting one after every step, which wouldn't even work very well anyway.

kinook 06-09-2009 10:03 AM

You might be able to use something like this to suspend the build process:
http://www.codeproject.com/KB/threads/pausep.aspx
http://www.beyondlogic.org/solutions...rocessutil.htm

Or if you call the GUI app from the command-line, you could send keystrokes to it to pause/resume the build (pausing would pause the build when the current step finishes). The default shortcuts for pause and resume are Esc and F7.
http://www.kinook.com/VisBuildPro/Ma...nd_linegui.htm

digit 06-09-2009 10:10 AM

I thought about something like the CodeProject app you linked, but was worried about the same things he said. I don't want to risk some sort of deadlock or abnormal behavior in a build.

Sending keystrokes to the GUI app is a possibility, though. Maybe I'll implement that.

Thanks for the (fast) help!


All times are GMT -5. The time now is 09:27 AM.


Copyright © 1999-2023 Kinook Software, Inc.