Rt-remind error

Hi,

I’m trying to run rt-remind in my ticketing system and get the following
error.

perl ./rtremind.pm

Error
syntax error at ./rtremind.pm line 42, near “my”
Execution of ./rtremind.pm aborted due to compilation errors.

This part of the rt-remind script is where it’s having trouble:

my(%map) = (
‘Nobody’ => ‘YOU@YOURDOMAIN’,
‘root’ => ‘YOU@YOURDOMAIN’,
‘queue1,Nobody’ => ‘ANOTHER@YOURDOMAIN’,
);

Any help would be greatly appreciated.

Thanks,
Bill

Space after the my?

Candelario, Bill wrote:

No, no space after my.From: Drew Barnes [mailto:barnesaw@ucrwcu.rwc.uc.edu]
Sent: Wednesday, December 19, 2007 11:28 AM
To: Candelario, Bill
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Rt-remind error

Space after the my?

Candelario, Bill wrote:

Hi,

I’m trying to run rt-remind in my ticketing system and get the
following error.

perl ./rtremind.pm

Error
syntax error at ./rtremind.pm line 42, near “my”
Execution of ./rtremind.pm aborted due to compilation errors.

This part of the rt-remind script is where it’s having trouble:

my(%map) = (
‘Nobody’ => ‘YOU@YOURDOMAIN’ mailto:‘YOU@YOURDOMAIN’,
‘root’ => ‘YOU@YOURDOMAIN’ mailto:‘YOU@YOURDOMAIN’,
‘queue1,Nobody’ => ‘ANOTHER@YOURDOMAIN’
mailto:‘ANOTHER@YOURDOMAIN’,
);
Any help would be greatly appreciated.

Thanks,
Bill


The rt-users Archives

SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:

If you sign up for a new RT support contract before December 31, we’ll

take up to 20 percent off the price. This sale won’t last long, so get
in touch today.
Email us at sales@bestpractical.com or call us at +1 617 812 0745.

Community help: http://wiki.bestpractical.com Commercial support:
sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Hi Bill,

That line is syntactically correct perl (with perl 5.8.8):

huws@cli-237 ~ $ cat test.pl
my(%map) = (
‘Nobody’ => ‘YOU@YOURDOMAIN’,
‘root’ => ‘YOU@YOURDOMAIN’,
‘queue1,Nobody’ => ‘ANOTHER@YOURDOMAIN’,
);
huws@cli-237 ~ $
huws@cli-237 ~ $ perl -c test.pl
test.pl syntax OK

I would have a look at the lines preceding that and check them for
errors. Failing that run ‘perl -c rtremind.pm’ and see what the perl
compiler thinks is wrong.

Regards
HuwOn 19 Dec 2007, at Wednesday, 19 December 2007, 425PM, Candelario, Bill wrote:

Hi,

I’m trying to run rt-remind in my ticketing system and get the
following
error.

perl ./rtremind.pm

Error
syntax error at ./rtremind.pm line 42, near “my”
Execution of ./rtremind.pm aborted due to compilation errors.

This part of the rt-remind script is where it’s having trouble:

my(%map) = (
‘Nobody’ => ‘YOU@YOURDOMAIN’,
‘root’ => ‘YOU@YOURDOMAIN’,
‘queue1,Nobody’ => ‘ANOTHER@YOURDOMAIN’,
);

Any help would be greatly appreciated.

Thanks,
Bill


The rt-users Archives

SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:

If you sign up for a new RT support contract before December 31,
we’ll take
up to 20 percent off the price. This sale won’t last long, so get in
touch today.
Email us at sales@bestpractical.com or call us at +1 617 812 0745.

Community help: http://wiki.bestpractical.com
Commercial support: sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

s2s company email disclaimer : http://www.s2s.ltd.uk/datasheets/email_disclaimer.pdf
s2s company registration number : 3952958
s2s VAT registration number : GB763132055
Business premises : Ground Floor, Overline House, Crawley, West Sussex, RH10 1JA
Registered address : 29 High Street, Crawley, West Sussex, RH10 1BQ
Place of registration : England

Thanks, Huw.

The only line, besides the comments, that precedes this line is:

use lib qw (C:\Program Files\OurInternet\Request
Tracker\rt\lib\RT\Interface)

I ran ‘perl -c rtremind.pm’ and came up with the same error message.

Could it be that I have to define what this code is asking for? I.e.
where it says YOU@YOURDOMAIN, I have to put my email address there.

Thanks,
BillFrom: Huw Selley [mailto:huws@s2s.ltd.uk]
Sent: Wednesday, December 19, 2007 12:24 PM
To: Candelario, Bill
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Rt-remind error

Hi Bill,

That line is syntactically correct perl (with perl 5.8.8):

huws@cli-237 ~ $ cat test.pl
my(%map) = (
‘Nobody’ => ‘YOU@YOURDOMAIN’,
‘root’ => ‘YOU@YOURDOMAIN’,
‘queue1,Nobody’ => ‘ANOTHER@YOURDOMAIN’, );
huws@cli-237 ~ $
huws@cli-237 ~ $ perl -c test.pl
test.pl syntax OK

I would have a look at the lines preceding that and check them for
errors. Failing that run ‘perl -c rtremind.pm’ and see what the perl
compiler thinks is wrong.

Regards
Huw

Is there a semicolon at the end of that line?

Candelario, Bill wrote:

There wasn’t but when I added it, I got this error message:

Can’t locate RT/Interface/CLI.pm in @INC (@INC contains: C:\Program
Files\OurInt
ernet\Request Tracker\rt\lib\rt /usr/local/packages/rt/lib
/usr/local/packages/r
t/local/lib Tracker\rt\lib\RT\Interface C:/Program
Files/OurInternet/Request Tra
cker/perl/lib C:/Program Files/OurInternet/Request Tracker/perl/site/lib
.) at .
/rt-remind.pm line 120.
BEGIN failed–compilation aborted at ./rt-remind.pm line 120.

To me, this meant that it couldn’t find the libraries.From: Drew Barnes [mailto:barnesaw@ucrwcu.rwc.uc.edu]
Sent: Wednesday, December 19, 2007 1:28 PM
To: Candelario, Bill
Cc: Huw Selley; rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Rt-remind error

Is there a semicolon at the end of that line?

Candelario, Bill wrote:

Thanks, Huw.

The only line, besides the comments, that precedes this line is:

use lib qw (C:\Program Files\OurInternet\Request
Tracker\rt\lib\RT\Interface)

I ran ‘perl -c rtremind.pm’ and came up with the same error message.

Could it be that I have to define what this code is asking for? I.e.
where it says YOU@YOURDOMAIN, I have to put my email address there.

Thanks,
Bill

-----Original Message-----
From: Huw Selley [mailto:huws@s2s.ltd.uk]
Sent: Wednesday, December 19, 2007 12:24 PM
To: Candelario, Bill
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Rt-remind error

Hi Bill,

That line is syntactically correct perl (with perl 5.8.8):

huws@cli-237 ~ $ cat test.pl
my(%map) = (
‘Nobody’ => ‘YOU@YOURDOMAIN’,
‘root’ => ‘YOU@YOURDOMAIN’,
‘queue1,Nobody’ => ‘ANOTHER@YOURDOMAIN’, );
huws@cli-237 ~ $
huws@cli-237 ~ $ perl -c test.pl
test.pl syntax OK

I would have a look at the lines preceding that and check them for
errors. Failing that run ‘perl -c rtremind.pm’ and see what the perl
compiler thinks is wrong.

Regards
Huw

Hi,

I’m trying to run rt-remind in my ticketing system and get the
following error.

perl ./rtremind.pm

Error
syntax error at ./rtremind.pm line 42, near “my”
Execution of ./rtremind.pm aborted due to compilation errors.

This part of the rt-remind script is where it’s having trouble:

my(%map) = (
‘Nobody’ => ‘YOU@YOURDOMAIN’,
‘root’ => ‘YOU@YOURDOMAIN’,
‘queue1,Nobody’ => ‘ANOTHER@YOURDOMAIN’, );

Any help would be greatly appreciated.

Thanks,
Bill


The rt-users Archives

SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:

If you sign up for a new RT support contract before December 31,
we’ll

take up to 20 percent off the price. This sale won’t last long, so
get

in touch today.
Email us at sales@bestpractical.com or call us at +1 617 812 0745.

Community help: http://wiki.bestpractical.com Commercial support:
sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

s2s company email disclaimer :
http://www.s2s.ltd.uk/datasheets/email_disclaimer.pdf
s2s company registration number : 3952958
s2s VAT registration number : GB763132055
Business premises : Ground Floor, Overline House,
Crawley,
West Sussex, RH10 1JA
Registered address : 29 High Street, Crawley, West
Sussex,
RH10 1BQ
Place of registration : England


The rt-users Archives

SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:

If you sign up for a new RT support contract before December 31, we’ll

take up to 20 percent off the price. This sale won’t last long, so get
in touch today.
Email us at sales@bestpractical.com or call us at +1 617 812 0745.

Community help: http://wiki.bestpractical.com Commercial support:
sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

The semicolon was the syntax problem then.

I find it interesting that the path you specify in the use statement
isn’t listed in @INC. At least not if it is case sensitive. Having
never used Perl on Windows, I assume it is but can’t say for sure. In
any event, it is mixing C:\Program Files in with /usr/local/packages.
Perhaps your path needs to be quoted there?

Candelario, Bill wrote:

I haven’t used Perl in Windows either but am learning as I go. This is
the tough part because I know on a Linux machine this would be a lot
easier.

According to some of the threads I’ve been reading, they said to include
the path in the beginning when using windows. Not sure if this is the
correct way.

When I execute ‘perl -V’ I can see the default libraries for perl. How
do I modify the default libraries? Maybe this is where the editing has
to take place.From: Drew Barnes [mailto:barnesaw@ucrwcu.rwc.uc.edu]
Sent: Wednesday, December 19, 2007 1:45 PM
To: Candelario, Bill
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Rt-remind error

The semicolon was the syntax problem then.

I find it interesting that the path you specify in the use statement
isn’t listed in @INC. At least not if it is case sensitive. Having
never used Perl on Windows, I assume it is but can’t say for sure. In
any event, it is mixing C:\Program Files in with /usr/local/packages.
Perhaps your path needs to be quoted there?

Candelario, Bill wrote:

There wasn’t but when I added it, I got this error message:

Can’t locate RT/Interface/CLI.pm in @INC (@INC contains: C:\Program
Files\OurInt ernet\Request Tracker\rt\lib\rt
/usr/local/packages/rt/lib /usr/local/packages/r t/local/lib
Tracker\rt\lib\RT\Interface C:/Program Files/OurInternet/Request Tra
cker/perl/lib C:/Program Files/OurInternet/Request
Tracker/perl/site/lib
.) at .
/rt-remind.pm line 120.
BEGIN failed–compilation aborted at ./rt-remind.pm line 120.

To me, this meant that it couldn’t find the libraries.

-----Original Message-----
From: Drew Barnes [mailto:barnesaw@ucrwcu.rwc.uc.edu]
Sent: Wednesday, December 19, 2007 1:28 PM
To: Candelario, Bill
Cc: Huw Selley; rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Rt-remind error

Is there a semicolon at the end of that line?

Candelario, Bill wrote:

Thanks, Huw.

The only line, besides the comments, that precedes this line is:

use lib qw (C:\Program Files\OurInternet\Request
Tracker\rt\lib\RT\Interface)

I ran ‘perl -c rtremind.pm’ and came up with the same error message.

Could it be that I have to define what this code is asking for? I.e.
where it says YOU@YOURDOMAIN, I have to put my email address there.

Thanks,
Bill

-----Original Message-----
From: Huw Selley [mailto:huws@s2s.ltd.uk]
Sent: Wednesday, December 19, 2007 12:24 PM
To: Candelario, Bill
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Rt-remind error

Hi Bill,

That line is syntactically correct perl (with perl 5.8.8):

huws@cli-237 ~ $ cat test.pl
my(%map) = (
‘Nobody’ => ‘YOU@YOURDOMAIN’,
‘root’ => ‘YOU@YOURDOMAIN’,
‘queue1,Nobody’ => ‘ANOTHER@YOURDOMAIN’, );
huws@cli-237 ~ $
huws@cli-237 ~ $ perl -c test.pl
test.pl syntax OK

I would have a look at the lines preceding that and check them for
errors. Failing that run ‘perl -c rtremind.pm’ and see what the perl
compiler thinks is wrong.

Regards
Huw

Hi,

I’m trying to run rt-remind in my ticketing system and get the
following error.

perl ./rtremind.pm

Error
syntax error at ./rtremind.pm line 42, near “my”
Execution of ./rtremind.pm aborted due to compilation errors.

This part of the rt-remind script is where it’s having trouble:

my(%map) = (
‘Nobody’ => ‘YOU@YOURDOMAIN’,
‘root’ => ‘YOU@YOURDOMAIN’,
‘queue1,Nobody’ => ‘ANOTHER@YOURDOMAIN’, );

Any help would be greatly appreciated.

Thanks,
Bill


The rt-users Archives

SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:

If you sign up for a new RT support contract before December 31,
we’ll

take up to 20 percent off the price. This sale won’t last long, so
get

in touch today.
Email us at sales@bestpractical.com or call us at +1 617 812

Community help: http://wiki.bestpractical.com Commercial support:
sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

s2s company email disclaimer :
http://www.s2s.ltd.uk/datasheets/email_disclaimer.pdf
s2s company registration number : 3952958
s2s VAT registration number : GB763132055
Business premises : Ground Floor, Overline House,

Crawley,

West Sussex, RH10 1JA
Registered address : 29 High Street, Crawley, West

Sussex,

RH10 1BQ
Place of registration : England


The rt-users Archives

SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:

If you sign up for a new RT support contract before December 31,
we’ll

take up to 20 percent off the price. This sale won’t last long, so
get

in touch today.

Email us at sales@bestpractical.com or call us at +1 617 812

Community help: http://wiki.bestpractical.com Commercial support:
sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

Thanks Drew,

I got it figured out. I had to define all the libraries in the
beginning of the script. Now I have a question on global parameters.
Where do I define them in the script. For example, where would I plug
in the email addresses of the technicians, our email server, etc.

Thanks,
BillFrom: Drew Barnes [mailto:barnesaw@ucrwcu.rwc.uc.edu]
Sent: Wednesday, December 19, 2007 1:45 PM
To: Candelario, Bill
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Rt-remind error

The semicolon was the syntax problem then.

I find it interesting that the path you specify in the use statement
isn’t listed in @INC. At least not if it is case sensitive. Having
never used Perl on Windows, I assume it is but can’t say for sure. In
any event, it is mixing C:\Program Files in with /usr/local/packages.
Perhaps your path needs to be quoted there?

Candelario, Bill wrote:

There wasn’t but when I added it, I got this error message:

Can’t locate RT/Interface/CLI.pm in @INC (@INC contains: C:\Program
Files\OurInt ernet\Request Tracker\rt\lib\rt
/usr/local/packages/rt/lib /usr/local/packages/r t/local/lib
Tracker\rt\lib\RT\Interface C:/Program Files/OurInternet/Request Tra
cker/perl/lib C:/Program Files/OurInternet/Request
Tracker/perl/site/lib
.) at .
/rt-remind.pm line 120.
BEGIN failed–compilation aborted at ./rt-remind.pm line 120.

To me, this meant that it couldn’t find the libraries.

-----Original Message-----
From: Drew Barnes [mailto:barnesaw@ucrwcu.rwc.uc.edu]
Sent: Wednesday, December 19, 2007 1:28 PM
To: Candelario, Bill
Cc: Huw Selley; rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Rt-remind error

Is there a semicolon at the end of that line?

Candelario, Bill wrote:

Thanks, Huw.

The only line, besides the comments, that precedes this line is:

use lib qw (C:\Program Files\OurInternet\Request
Tracker\rt\lib\RT\Interface)

I ran ‘perl -c rtremind.pm’ and came up with the same error message.

Could it be that I have to define what this code is asking for? I.e.
where it says YOU@YOURDOMAIN, I have to put my email address there.

Thanks,
Bill

-----Original Message-----
From: Huw Selley [mailto:huws@s2s.ltd.uk]
Sent: Wednesday, December 19, 2007 12:24 PM
To: Candelario, Bill
Cc: rt-users@lists.bestpractical.com
Subject: Re: [rt-users] Rt-remind error

Hi Bill,

That line is syntactically correct perl (with perl 5.8.8):

huws@cli-237 ~ $ cat test.pl
my(%map) = (
‘Nobody’ => ‘YOU@YOURDOMAIN’,
‘root’ => ‘YOU@YOURDOMAIN’,
‘queue1,Nobody’ => ‘ANOTHER@YOURDOMAIN’, );
huws@cli-237 ~ $
huws@cli-237 ~ $ perl -c test.pl
test.pl syntax OK

I would have a look at the lines preceding that and check them for
errors. Failing that run ‘perl -c rtremind.pm’ and see what the perl
compiler thinks is wrong.

Regards
Huw

Hi,

I’m trying to run rt-remind in my ticketing system and get the
following error.

perl ./rtremind.pm

Error
syntax error at ./rtremind.pm line 42, near “my”
Execution of ./rtremind.pm aborted due to compilation errors.

This part of the rt-remind script is where it’s having trouble:

my(%map) = (
‘Nobody’ => ‘YOU@YOURDOMAIN’,
‘root’ => ‘YOU@YOURDOMAIN’,
‘queue1,Nobody’ => ‘ANOTHER@YOURDOMAIN’, );

Any help would be greatly appreciated.

Thanks,
Bill


The rt-users Archives

SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:

If you sign up for a new RT support contract before December 31,
we’ll

take up to 20 percent off the price. This sale won’t last long, so
get

in touch today.
Email us at sales@bestpractical.com or call us at +1 617 812

Community help: http://wiki.bestpractical.com Commercial support:
sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com

s2s company email disclaimer :
http://www.s2s.ltd.uk/datasheets/email_disclaimer.pdf
s2s company registration number : 3952958
s2s VAT registration number : GB763132055
Business premises : Ground Floor, Overline House,

Crawley,

West Sussex, RH10 1JA
Registered address : 29 High Street, Crawley, West

Sussex,

RH10 1BQ
Place of registration : England


The rt-users Archives

SAVE THOUSANDS OF DOLLARS ON RT SUPPORT:

If you sign up for a new RT support contract before December 31,
we’ll

take up to 20 percent off the price. This sale won’t last long, so
get

in touch today.

Email us at sales@bestpractical.com or call us at +1 617 812

Community help: http://wiki.bestpractical.com Commercial support:
sales@bestpractical.com

Discover RT’s hidden secrets with RT Essentials from O’Reilly Media.
Buy a copy at http://rtbook.bestpractical.com