RSS/Atom feed Twitter
Site is read-only, email is disabled

Closing Command Line Window in Batch Mode (Windows

This discussion is connected to the gimp-developer-list.gnome.org mailing list which is provided by the GIMP developers and not related to gimpusers.com.

This is a read-only list on gimpusers.com so this discussion thread is read-only, too.

4 of 4 messages available
Toggle history

Please log in to manage your subscriptions.

Closing Command Line Window in Batch Mode (Windows pakko 25 Aug 15:27
  Closing Command Line Window in Batch Mode (Windows Sven Neumann 25 Aug 23:54
  Closing Command Line Window in Batch Mode (Windows saulgoode@flashingtwelve.brickfilms.com 26 Aug 07:33
  Closing Command Line Window in Batch Mode (Windows pakko 26 Aug 12:19
2010-08-25 15:27:38 UTC (over 14 years ago)
postings
2

Closing Command Line Window in Batch Mode (Windows

Hi,

i'm writing a java application that automatizes some processes. One part of the process is to start the gimp with a predefined script. The script loads an image an applies some filter. For this purpose i use the commmand line switches:

gimp2-6.exe -i -b "(script_name params)" -b "(gimp-quit 0)"

This works fine so far, but this opens a new windows-console. After the script finished it states:

"batch command successfull - "

Since this window doesn't close itself, i can't recognize in my java-app, that the gimp-process has finished.

Another issue concerns time measuring. I would like to measure the time gimp takes for applying the different filters. Is it somehow possible save a timestamp to a file with script-fu?

Sven Neumann
2010-08-25 23:54:11 UTC (over 14 years ago)

Closing Command Line Window in Batch Mode (Windows

On Wed, 2010-08-25 at 15:27 +0200, pakko wrote:

Hi,

i'm writing a java application that automatizes some processes. One part of the process is to start the gimp with a predefined script. The script loads an image an applies some filter. For this purpose i use the commmand line switches:

gimp2-6.exe -i -b "(script_name params)" -b "(gimp-quit 0)"

This works fine so far, but this opens a new windows-console. After the script finished it states:

"batch command successfull - "

You are supposed to use the gimp-console binary for non-interactive use.

Sven

saulgoode@flashingtwelve.brickfilms.com
2010-08-26 07:33:07 UTC (over 14 years ago)

Closing Command Line Window in Batch Mode (Windows

Quoting pakko :

:
:
:
Another issue concerns time measuring. I would like to measure the time gimp takes for applying the different filters. Is it somehow possible save a timestamp to a file with script-fu?

(set! port (open-output-file "timings.log"))

(set! starttime (realtime)) ; integer number of seconds since Unix epoch (apply-some-filterA drawableA paramA paramB) (display (- (realtime) starttime) port) ; elapsed time (in seconds) (newline port)

(set! starttime (realtime)) (apply-some-filterB drawableB paramD paramE paramF) (display (- (realtime) starttime) port) (newline port)

(close-output-port port)

2010-08-26 12:19:19 UTC (over 14 years ago)
postings
2

Closing Command Line Window in Batch Mode (Windows

Those two tips were exactly what i have searched for. Everything works fine now. Thanks a lot!