It is currently Fri Jun 05, 2026 6:39 pm


All times are UTC - 5 hours [ DST ]



Post new topic Reply to topic  [ 6 posts ] 
Author Message
 Post subject: Running script from batch
PostPosted: Sun Jun 15, 2008 7:50 am  (#1) 
Offline
New Member

Joined: Jun 15, 2008
Posts: 3
How to run some script-fu logo script from terminal in nointeractive mode, I spend days and days trying to run it but with no success, so PLEASE any help will be a good,

eg I tried
gimp -i -b '(script-fu-basic1-logo 0 "Text" "100" "Dragonwick" "white" "black")' -b '(gimp-quit 0)'
but I get
batch command: experienced an execution error.

where I made misstake?


Share on Facebook Share on Twitter Share on Orkut Share on Digg Share on MySpace Share on Delicious Share on Technorati
Top
 Post subject: Re: Running script from batch
PostPosted: Sun Jun 15, 2008 2:07 pm  (#2) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6946
Location: Somewhere in GIMP
I am not understanding why you want to run Script Fu from batch.

If you click Xtns/Script-Fu (the second one in the list) you will be able to click on one of the scripts and make it work. All of the selections below the line across the drop down menu are clickable to run any script you want. Be sure not to click Script-Fu above the line. That won't work.

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Top
 Post subject: Re: Running script from batch
PostPosted: Sun Jun 15, 2008 7:05 pm  (#3) 
Offline
New Member

Joined: Jun 15, 2008
Posts: 3
ORgal wrote:
I am not understanding why you want to run Script Fu from batch.

If you click Xtns/Script-Fu (the second one in the list) you will be able to click on one of the scripts and make it work. All of the selections below the line across the drop down menu are clickable to run any script you want. Be sure not to click Script-Fu above the line. That won't work.



Thanks for fast reply but,
I need it because I have to link it with website, php on website has to send command to terminal and gimp has to process command and save output to specific folder.

If I run
gimp -n -b -
and after load enter
(script-fu-basic1-logo "GIMPER" 100 "Dragonwick" '(255 255 255) '(6 6 206))
I get what I need, but I need to run by one command
gimp -n -b "(script-fu-basic1-logo "GIMPER" 100 "Dragonwick" '(255 255 255) '(6 6 206))"
but this time I get error, I dont know how.

Sorry for maybe being boring to you, but do you know how to save from terminal?
It should be:
gimp -n -b "(script-fu-basic1-logo "GIMPER" 100 "Dragonwick" '(255 255 255) '(6 6 206))" -b "(file-png-save-defaults run-mode image drawable filename raw-filename)" but I dont know what should I set for parameters "image" and "drawable" ?

Thanks.


Top
 Post subject: Re: Running script from batch
PostPosted: Sun Jun 15, 2008 7:35 pm  (#4) 
Offline
Retired Staff
User avatar

Joined: May 22, 2008
Posts: 6946
Location: Somewhere in GIMP
Ah! Now I understand what you want to do. I can't help you with it, but I think GnuTux can. He should be popping in here soon. Hang tight! :pengy

_________________
Image
World War IV will be fought with sticks and stones. - Albert Einstein


Last edited by mahvin on Sun Jun 12, 2011 8:53 pm, edited 1 time in total.

Top
 Post subject: Re: Running script from batch
PostPosted: Mon Jun 16, 2008 10:07 am  (#5) 
Offline
GimpChat Founder
User avatar

Joined: May 22, 2008
Posts: 5241
Location: Gimpville
crazybatch wrote:

If I run
gimp -n -b -
and after load enter
(script-fu-basic1-logo "GIMPER" 100 "Dragonwick" '(255 255 255) '(6 6 206))
I get what I need, but I need to run by one command
gimp -n -b "(script-fu-basic1-logo "GIMPER" 100 "Dragonwick" '(255 255 255) '(6 6 206))"
but this time I get error, I dont know how.

Thanks.


Hi crazybatch :wvy

Welcome aboard!

According to this example on gimp.org, you need to use single quotes as your delimiter. Looks like you are using double quotes.

Example from Gimp.org
gimp -i -b '(batch-unsharp-mask "*.png" 5.0 0.5 0)' -b '(gimp-quit 0)'


So your code would become..

gimp -n -b '(script-fu-basic1-logo "GIMPER" 100 "Dragonwick" '(255 255 255) '(6 6 206))'


I haven't worked much with Gimp batch commands but make sure you properly match your single and double quotes and that you properly delimit all items in your batch command.

_________________
“If you reach for the stars, you just might land on a decently sized hill.” - Stuart Hill


Top
 Post subject: Re: Running script from batch
PostPosted: Mon Jun 16, 2008 12:53 pm  (#6) 
Offline
New Member

Joined: Jun 15, 2008
Posts: 3
GnuTux wrote:
crazybatch wrote:

If I run
gimp -n -b -
and after load enter
(script-fu-basic1-logo "GIMPER" 100 "Dragonwick" '(255 255 255) '(6 6 206))
I get what I need, but I need to run by one command
gimp -n -b "(script-fu-basic1-logo "GIMPER" 100 "Dragonwick" '(255 255 255) '(6 6 206))"
but this time I get error, I dont know how.

Thanks.


Hi crazybatch :wvy

Welcome aboard!

According to this example on gimp.org, you need to use single quotes as your delimiter. Looks like you are using double quotes.

Example from Gimp.org
gimp -i -b '(batch-unsharp-mask "*.png" 5.0 0.5 0)' -b '(gimp-quit 0)'


So your code would become..

gimp -n -b '(script-fu-basic1-logo "GIMPER" 100 "Dragonwick" '(255 255 255) '(6 6 206))'


I haven't worked much with Gimp batch commands but make sure you properly match your single and double quotes and that you properly delimit all items in your batch command.


No luck... single quotes, double quotes it print error msg.

Do you know what should I use for image and drawable parameters in (file-png-save-defaults run-mode image drawable filename raw-filename)?


Top
Post new topic Reply to topic  [ 6 posts ] 

All times are UTC - 5 hours [ DST ]



* Login  



Powered by phpBB3 © phpBB Group