Re: [qmailtoaster] qmailog_viewer

2007-11-04 Thread PakOgah
Hi Jon, I get this error when running on my machine # ./qmailog_viewer ./qmailog_viewer: line 9: use: command not found ./qmailog_viewer: line 11: syntax error near unexpected token `(' ./qmailog_viewer: line 11: `my @logs = ();' line 9 and 11 are : use strict; my @logs = () Hi all. I

Re: [qmailtoaster] qmailog_viewer

2007-11-04 Thread Jon M. Ernster
Try running it with perl. # perl qmailog_viewer If that doesn't work, then rename the file to qmailog_viewer.pl and give it another try. Hope this helps, J. PakOgah wrote: Hi Jon, I get this error when running on my machine # ./qmailog_viewer ./qmailog_viewer: line 9: use: command not

Re: [qmailtoaster] qmailog_viewer

2007-11-04 Thread PakOgah
works like charm now I can see the logs directly using the menu without have to listing them manually with 'ls' anyway do I have put the script on every qmail log folders? can you combine it with qmlog ? so it can be execute it anywhere like this 'qmailog_viewer smtp' just a tought Try

Re: [qmailtoaster] qmailog_viewer

2007-11-04 Thread Jon M. Ernster
I copied the script into all the folders yeah. Is qmlog the shell script which has similar functionality? I'm sure I could make my script do the same with a little work. I'll work on another version of the script to do something like that. Thanks, J. PakOgah wrote: works like charm