[rt-users] New rt2 install- customization questions

Smylers smylers at gbdirect.co.uk
Mon Aug 19 16:03:33 EDT 2002


billp wrote:

> [Smylers wrote:]
>
> >
> >   <% qx[/usr/local/bin/network-status-html] %>
>
> That actually inserts only the first line of the output of my script,

Does this help?

  <% scalar qx[/usr/local/bin/network-status-html] %>

The qx// operator returns each line of its output as separate list
elements in list context but concatenates them into a single string in
scalar context.  For example, try each of these at a Unix command-line:

  % perl -wle 'print((`w`)[0])'
  % perl -wle 'print((scalar `w`)[0])'

> >   OnCreate NotifyAdminCcs with Template Creation
> >   OnCreate Ccs with Template Creation
>
> This only seems to work if I put specific Ccs or AdminCcs in the
> ticket.

It also works if you assign CCs and admin CCs for the queue.  At least,
it definitely does here.

Smylers
-- 
GBdirect
http://www.gbdirect.co.uk/





More information about the rt-users mailing list