Abraham Schneider wrote:
[posted to rush.general]
Hi there!
Just installed the new version of rush here, works fine. One question
about the submitscripts and this new layout format:
is there any way to deactiviate some of the GUI elements which I don't
need, without removing them completely from the script?
Would be nice to comment out things like the "image command" or "job
start command" line.
I tried do it with the normal comment #. But that didn't work. I only
got an error message while opening the script.
Any chance to do is or do I have to remove the whole functions from the
script?
Hmm, interesting question.
Yes, it looks like you can't insert '#' into the GUI layout
section of the perl script, ie:
---- snip
Ram: ______________ ?
Submit Hosts: __________________________________________________ ?
Job Start Command: ___________________________________________ ? Browse
Job Done Command: ___________________________________________ ? Browse
Job Dump Command: ___________________________________________ ? Browse
---- snip
That part of the script is not perl, but is text passed to the
"CreateInputForm()" function defined in the .common.pl script,
and that function currently does not honor '#'s in its input.
So yes, you have to delete the lines to prevent it from showing up.
However, you /could/ add this single line of code to the .common.pl
script to make it honor '#' comments in the GUI section.
Search for 'sub CreateInputForm' in the .common.pl, and then
find the following section, and add the single line 'ADD THIS LINE'
below:
---- snip
[..]
# PARSE EACH LINE OF THE TEXT LAYOUT
my $s;
foreach $s ( split('\n', $form, -1 ) )
{
if ( $s =~ /^#/ ) { next; } #### ADD THIS LINE ####
# HANDLE RAW-INPUT MODE
# This allows caller to insert raw input(1) commands
# into the screen definition.
#
[..]
---- snip
I believe that's all that's needed to enable '#'s in the GUI section.
--
Greg Ercolano, erco@(email surpressed)
Rush Render Queue, http://seriss.com/rush/
Tel: (Tel# suppressed)
Cel: (Tel# suppressed)
Fax: (Tel# suppressed)
|