Preventing Window-Popup in Batch Mode
Draw curves, colored 2D maps with CAD capabilities
Status: Beta
Brought to you by:
pfvincent
I am using GRACEGTK to produce PS-File for further processing with commands-lines like
"..\bin\ggrace.exe" "agr-file" -barebones -noask -hdevice PostScript -hardcopy
in a Windows bat-file
Is there a possibility to suppress the popping-up of the grace-gtk windows i.e the
execution of GRACEGTK in an invisible process window while I need no "manual" interaction
with GRACEGTK.
I did not find such a possibility with standard Windows functionality or additional utilities.
By the way: command-lines like
"..\bin\ggrace.exe" -barebones -noask -hdevice PostScript -hardcopy -batch "agr-file"
lead to errors.
Anonymous
Thank you for your cooperation.
I don't see any window when I execute on my box (under Linux as well as Vista, with -hardcopy and without -batch), thus it is not easy for me to know what appends: perhaps my example is too simple and the window is closed before being visible.
Grace-5 doc is not explicit about the use of the -batch option: it seems that this option is only to read parameters files, i.e. files with commands without the @ as first character.
In Grace-5, running batch mode is obtained by testing if the name of the executable is not "xmgrace" but "grace" or "gracebat".
These names must be extracted from the absolute path given by arg[0].
In GraceGTK, the only test is on "gracebat" and it is not working with Windows/MinGW because the only separator tested in path is "/" i.e. the Linux one and not "\", the Windows one. Moreover, GraceGTK is more dependent on GTK than Grace on Motif and I must check that the windows are not realized in case of a batch run.
For me, testing the name of the executable is not a good method (hard to make it reliable) , and I should prefer using a specific option, but I find the use of "-batch" in Grace-5 is confusing.
How to do if I want to keep a compatibility with Grace-5 ?
Your advice will be useful.
Hello Mr. Vincent,
Your remark:
Grace-5 doc is not explicit about the use of the -batch option: it seems that this option is only to read parameters files, i.e. files with commands without the @ as first character.(see below)
made me try out following workaround:
"..\bin\ggrace.exe" -barebones -noask -hdevice PostScript -hardcopy-batch "agr-file"
with an "agr-file" with commands WITHOUT the @ as first character.THIS WORKS FINE i.e.
the popping-up of a gracegtk-window does not occur anymore. The only restriction is that
set data are not included in the "agr-file" but in a separate file which is adressed by e.g
read xy "set data file"
Thus from my side a modification is not really necessary. An enhancement of gracegtk
documentation on the use of -batch with an "adapted agr-file" would be enough.
With best wishes
-----Ursprüngliche Mitteilung-----
Von: Patrick VINCENT pfvincent@users.sf.net
An: [gracegtk:tickets] 5@tickets.gracegtk.p.re.sf.net
Verschickt: Di, 23 Feb 2016 11:56 am
Betreff: [gracegtk:tickets] #5 Preventing Window-Popup in Batch Mode
Thank you for your cooperation.
I don't see any window when I execute on my box (under Linux as well as Vista, with -hardcopy and without -batch), thus it is not easy for me to know what appends: perhaps my example is too simple and the window is closed before being visible.
Grace-5 doc is not explicit about the use of the -batch option: it seems that this option is only to read parameters files, i.e. files with commands without the @ as first character.
In Grace-5, running batch mode is obtained by testing if the name of the executable is not "xmgrace" but "grace" or "gracebat".
These names must be extracted from the absolute path given by arg[0].
In GraceGTK, the only test is on "gracebat" and it is not working with Windows/MinGW because the only separator tested in path is "/" i.e. the Linux one and not "\", the Windows one. Moreover, GraceGTK is more dependent on GTK than Grace on Motif and I must check that the windows are not realized in case of a batch run.
For me, testing the name of the executable is not a good method (hard to make it reliable) , and I should prefer using a specific option, but I find the use of "-batch" in Grace-5 is confusing.
How to do if I want to keep a compatibility with Grace-5 ?
Your advice will be useful.
[tickets:#5] Preventing Window-Popup in Batch Mode
Status: open
Milestone: 1.0
Created: Sat Feb 20, 2016 01:47 PM UTC by Pieter Bedijn
Last Updated: Sat Feb 20, 2016 01:47 PM UTC
Owner: nobody
I am using GRACEGTK to produce PS-File for further processing with commands-lines like
"..\bin\ggrace.exe" "agr-file" -barebones -noask -hdevice PostScript -hardcopy
in a Windows bat-file
Is there a possibility to suppress the popping-up of the grace-gtk windows i.e the
execution of GRACEGTK in an invisible process window while I need no "manual" interaction
with GRACEGTK.
I did not find such a possibility with standard Windows functionality or additional utilities.
By the way: command-lines like
"..\bin\ggrace.exe" -barebones -noask -hdevice PostScript -hardcopy -batch "agr-file"
lead to errors.
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/gracegtk/tickets/5/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Related
Tickets: #5
Hello Mr. Vincent,
Your remark:
Grace-5 doc is not explicit about the use of the -batch option: it seems that this option is only to read parameters files, i.e. files with commands without the @ as first character.(see below)
made me try out following workaround:
"..\bin\ggrace.exe" -barebones -noask -hdevice PostScript -hardcopy-batch "agr-file"
with an "agr-file" with commands WITHOUT the @ as first character.THIS WORKS FINE i.e.
the popping-up of a gracegtk-window does not occur anymore. The only restriction is that
set data are not included in the "agr-file" but in a separate file which is adressed by e.g
read xy "set data file"
Thus from my side a modification is not really necessary. An enhancement of gracegtk
documentation on the use of -batch with an "adapted agr-file" would be enough.
With best wishes
-----Ursprüngliche Mitteilung-----
Von: Patrick VINCENT pfvincent@users.sf.net
An: [gracegtk:tickets] 5@tickets.gracegtk.p.re.sf.net
Verschickt: Di, 23 Feb 2016 11:56 am
Betreff: [gracegtk:tickets] #5 Preventing Window-Popup in Batch Mode
Thank you for your cooperation.
I don't see any window when I execute on my box (under Linux as well as Vista, with -hardcopy and without -batch), thus it is not easy for me to know what appends: perhaps my example is too simple and the window is closed before being visible.
Grace-5 doc is not explicit about the use of the -batch option: it seems that this option is only to read parameters files, i.e. files with commands without the @ as first character.
In Grace-5, running batch mode is obtained by testing if the name of the executable is not "xmgrace" but "grace" or "gracebat".
These names must be extracted from the absolute path given by arg[0].
In GraceGTK, the only test is on "gracebat" and it is not working with Windows/MinGW because the only separator tested in path is "/" i.e. the Linux one and not "\", the Windows one. Moreover, GraceGTK is more dependent on GTK than Grace on Motif and I must check that the windows are not realized in case of a batch run.
For me, testing the name of the executable is not a good method (hard to make it reliable) , and I should prefer using a specific option, but I find the use of "-batch" in Grace-5 is confusing.
How to do if I want to keep a compatibility with Grace-5 ?
Your advice will be useful.
[tickets:#5] Preventing Window-Popup in Batch Mode
Status: open
Milestone: 1.0
Created: Sat Feb 20, 2016 01:47 PM UTC by Pieter Bedijn
Last Updated: Sat Feb 20, 2016 01:47 PM UTC
Owner: nobody
I am using GRACEGTK to produce PS-File for further processing with commands-lines like
"..\bin\ggrace.exe" "agr-file" -barebones -noask -hdevice PostScript -hardcopy
in a Windows bat-file
Is there a possibility to suppress the popping-up of the grace-gtk windows i.e the
execution of GRACEGTK in an invisible process window while I need no "manual" interaction
with GRACEGTK.
I did not find such a possibility with standard Windows functionality or additional utilities.
By the way: command-lines like
"..\bin\ggrace.exe" -barebones -noask -hdevice PostScript -hardcopy -batch "agr-file"
lead to errors.
Sent from sourceforge.net because you indicated interest in https://sourceforge.net/p/gracegtk/tickets/5/
To unsubscribe from further messages, please visit https://sourceforge.net/auth/subscriptions/
Related
Tickets: #5