Share

BGPWatch

Tracker: Bugs

5 Error when running script (2.2.2) - ID: 1000412
Last Update: Settings changed ( jmichalicek )

From: acampbell@x-shells.us

When i go to launch the script, it errors out on me, and
gives me a bunch of crap.

---
[root@air879 bgpwatch-2.2]# ./bgpwatch
String found where operator expected at ./bgpwatch
line 160, near "my $write = $tmpdir . ""
(Might be a runaway multi-line "" string starting on line
154)
(Missing semicolon on previous line?)
Bareword found where operator expected at ./bgpwatch
line 160, near "my $write = $tmpdir . "bgp_"
(Do you need to predeclare my?)
String found where operator expected at ./bgpwatch
line 160, near "bgp_" . $name . ""
String found where operator expected at ./bgpwatch
line 161, near "open FILE, ""
(Might be a runaway multi-line "" string starting on line
160)
(Missing semicolon on previous line?)
String found where operator expected at ./bgpwatch
line 161, near "$write" or die ""
(Missing operator before " or die "?)
Bareword found where operator expected at ./bgpwatch
line 161, near "" or die "Cannot"
(Missing operator before Cannot?)
String found where operator expected at ./bgpwatch
line 162, near "print FILE ""
(Might be a runaway multi-line "" string starting on line
161)
(Missing semicolon on previous line?)
Scalar found where operator expected at ./bgpwatch
line 162, near "print FILE "$processes"
(Do you need to predeclare print?)
String found where operator expected at ./bgpwatch
line 176, near "my $read = $tmpdir . ""
(Might be a runaway multi-line "" string starting on line
162)
(Missing semicolon on previous line?)
Bareword found where operator expected at ./bgpwatch
line 176, near "my $read = $tmpdir . "bgp_"
(Do you need to predeclare my?)
String found where operator expected at ./bgpwatch
line 176, near "bgp_" . $key . ""
String found where operator expected at ./bgpwatch
line 178, near "open FILE, ""
(Might be a runaway multi-line "" string starting on line
176)
(Missing semicolon on previous line?)
Scalar found where operator expected at ./bgpwatch
line 178, near "open FILE, "$read"
(Do you need to predeclare open?)
String found where operator expected at ./bgpwatch
line 178, near "$read" or die ""
(Missing operator before " or die "?)
Bareword found where operator expected at ./bgpwatch
line 178, near "" or die "could"
(Missing operator before could?)
String found where operator expected at ./bgpwatch
line 182, near "if (($mode eq ""
(Might be a runaway multi-line "" string starting on line
178)
(Missing semicolon on previous line?)
Bareword found where operator expected at ./bgpwatch
line 182, near "if (($mode eq "full"
(Do you need to predeclare if?)
String found where operator expected at ./bgpwatch
line 182, near "full" || $mode eq ""
Bareword found where operator expected at ./bgpwatch
line 182, near "" || $mode eq "noreport"
(Missing operator before noreport?)
String found where operator expected at ./bgpwatch
line 185, near "kill 9, $pid or warn ""
(Might be a runaway multi-line "" string starting on line
182)
(Missing semicolon on previous line?)
Bareword found where operator expected at ./bgpwatch
line 185, near "kill 9, $pid or warn "could"
(Do you need to predeclare kill?)
Backslash found where operator expected at ./bgpwatch
line 185, near "$!\"
(Missing operator before \?)
String found where operator expected at ./bgpwatch
line 191, near "if ($mode eq ""
(Might be a runaway multi-line "" string starting on line
185)
(Missing semicolon on previous line?)
Bareword found where operator expected at ./bgpwatch
line 191, near "if ($mode eq "full"
(Do you need to predeclare if?)
String found where operator expected at ./bgpwatch
line 191, near "full" || $mode eq ""
Bareword found where operator expected at ./bgpwatch
line 191, near "" || $mode eq "report"
(Missing operator before report?)
String found where operator expected at ./bgpwatch
line 192, near "open FILE, ""
(Might be a runaway multi-line "" string starting on line
191)
(Missing semicolon on previous line?)
Scalar found where operator expected at ./bgpwatch
line 192, near "open FILE, "$read"
(Do you need to predeclare open?)
String found where operator expected at ./bgpwatch
line 195, near "unlink ""
(Might be a runaway multi-line "" string starting on line
192)
(Missing semicolon on previous line?)
Scalar found where operator expected at ./bgpwatch
line 195, near "unlink "$read"
(Do you need to predeclare unlink?)
String found where operator expected at ./bgpwatch
line 200, near "$subject = ""
(Might be a runaway multi-line "" string starting on line
195)
(Missing semicolon on previous line?)
Bareword found where operator expected at ./bgpwatch
line 200, near "$subject = "Subject"
(Missing operator before Subject?)
Backslash found where operator expected at ./bgpwatch
line 200, near "limit\"
String found where operator expected at ./bgpwatch
line 208, near "unlink glob ""
(Might be a runaway multi-line "" string starting on line
200)
(Missing semicolon on previous line?)
Scalar found where operator expected at ./bgpwatch
line 208, near "unlink glob "$tmpdir"
(Do you need to predeclare unlink?)
String found where operator expected at ./bgpwatch
line 208, near "db" or warn ""
Bareword found where operator expected at ./bgpwatch
line 208, near "" or warn "Couldn't"
(Missing operator before Couldn't?)
String found where operator expected at ./bgpwatch
line 215, near "$smtp->datasend(""
(Might be a runaway multi-line "" string starting on line
208)
(Missing semicolon on previous line?)
Bareword found where operator expected at ./bgpwatch
line 215, near "$smtp->datasend("TO"
(Missing operator before TO?)
Backslash found where operator expected at ./bgpwatch
line 215, near "$send_to\"
(Missing operator before \?)
String found where operator expected at ./bgpwatch
line 216, near "$smtp->datasend(""
(Might be a runaway multi-line "" string starting on line
215)
(Missing semicolon on previous line?)
Scalar found where operator expected at ./bgpwatch
line 216, near "$smtp->datasend("$subject"
(Missing operator before $subject?)
String found where operator expected at ./bgpwatch
line 217, near "$smtp->datasend(""
(Might be a runaway multi-line "" string starting on line
216)
(Missing semicolon on previous line?)
Backslash found where operator expected at ./bgpwatch
line 217, near "$smtp->datasend("\"
(Missing operator before \?)
String found where operator expected at ./bgpwatch
line 218, near "$smtp->datasend(""
(Might be a runaway multi-line "" string starting on line
217)
(Missing semicolon on previous line?)
Array found where operator expected at ./bgpwatch line
218, at end of line
(Missing operator before ?)
String found where operator expected at ./bgpwatch
line 218, at end of line
(Missing semicolon on previous line?)
syntax error at ./bgpwatch line 160, near "my $write =
$tmpdir . ""
Can't find string terminator '"' anywhere before EOF
at ./bgpwatch line 218.
[root@air879 bgpwatch-2.2]#
---

^^^ Example. Please help.


Nobody/Anonymous ( nobody ) - 2004-07-29 23:15

5

Closed

Fixed

Nobody/Anonymous

None

v2.2.2

Public


Comments ( 2 )




Date: 2005-05-18 23:35
Sender: nobody

Logged In: NO

Sorry it took so long, but I found it. Line 183 is the problem.

next FIRST if $procname =~ /\b$_\b/";

That line needs the " removed so that it is

next FIRST if $procname =~ /\b$_\b/;


Date: 2005-05-04 14:28
Sender: jmichalicekProject Admin

Logged In: YES
user_id=569494

Hm, it's been awhile since I've done any work on this or
logged in here to look at stuff. I'll try to remember to do some
testing and see what I can figure out.


Log in to comment.

Attached File

No Files Currently Attached

Changes ( 4 )

Field Old Value Date By
artifact_group_id None 2005-08-18 14:21 jmichalicek
status_id Open 2005-08-18 14:19 jmichalicek
close_date - 2005-08-18 14:19 jmichalicek
resolution_id None 2005-05-19 22:07 jmichalicek