Beefy Boxes and Bandwidth Generously Provided by pair Networks
more useful options
 
PerlMonks  

Re^2: adding wtmp script into logwatch

by hedkandi (Initiate)
on Nov 30, 2011 at 09:09 UTC ( #940799=note: print w/ replies, xml ) Need Help??


in reply to Re: adding wtmp script into logwatch
in thread adding wtmp script into logwatch

Hi netwallah I am using bash shell as root user on a suse linux i replaced perl -we with perl but it still gave me error:

String found where operator expected at /usr/share/logwatch/scripts/s +ervices/my-report line 1, at end of line (Do you need to predeclare perl?) Warning: Use of "log" without parentheses is ambiguous at /usr/share/ +logwatch/scripts/services/my-report line 1. syntax error at /usr/share/logwatch/scripts/services/my-report line 1 +, next token ??? Search pattern not terminated at /usr/share/logwatch/scripts/services +/my-report line 1.
About the terminating " " which one did u meant? is it this one?
;$recs = "";


Comment on Re^2: adding wtmp script into logwatch
Select or Download Code
Re^3: adding wtmp script into logwatch
by NetWallah (Abbot) on Dec 01, 2011 at 00:45 UTC
    What I meant was : Get rid of the "perl -we" entirely.

    This includes the single quotes after "perl -we", and the matching one at the end of the program.

    The reason for this is that , for some reason, for this script, your system is invoking the perl interpreter automatically, instead of the expected bash (or other) shell. And 'perl' does not like a program content to start with 'perl -we'.

                "XML is like violence: if it doesn't solve your problem, use more."

Log In?
Username:
Password:

What's my password?
Create A New User
Node Status?
node history
Node Type: note [id://940799]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others studying the Monastery: (11)
As of 2014-07-30 19:21 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    My favorite superfluous repetitious redundant duplicative phrase is:









    Results (240 votes), past polls