Re: [reportmagic-help] Overriding config file settings from the command-line
On Tue, 3 May 2005, Jeremy Wadsack wrote: > Yes, Verbose. And it's reports_ not statistics_. My mistake. > (http://reportmagic.org/docs/repconf.html) Bingo. I commented out all the File_Out settings in the ini and generated the following command-line to run reportmagic from a script: /usr/share/reportmagic/rmagic.pl /usr/local/etc/apache/rmagic/site.ini -statistics_File_In=/home/site/logs/analog.dat -reports_File_Out=/home/site/html/stats/05-03-05/ -navigation_File_Out=/home/site/html/stats/05-03-05/nav.html This seems to do the trick - now we can use the date to generate the pathname for the output folder: Report Magic 2.21 Copyright (C) 1999-2003 Wadsack-Allen. All rights reserved. rmagic: Beginning report creation (Tue May 3 15:32:07 2005). rmagic: --> Settings file: /usr/local/etc/apache/rmagic/site.ini. rmagic: --> Input data file: /home/site/logs/analog.dat. rmagic: --> Output path: /home/site/html/stats/05-03-05/. rmagic: --> Output frameset file: /home/site/html/stats/05-03-05/index.html. rmagic: --> Output navigation file: /home/site/html/stats/05-03-05/nav.html. rmagic: Creating report file in /home/site/html/stats/05-03-05/GENERAL.html. rmagic: Creating report file in /home/site/html/stats/05-03-05/MONTHLY.html. rmagic: ... Creating graph file in /home/site/html/stats/05-03-05/MONTHLY_line.png. rmagic: Creating report file in /home/site/html/stats/05-03-05/DAILYSUM.html. rmagic: ... Creating graph file in /home/site/html/stats/05-03-05/DAILYSUM_bar.png. rmagic: Creating report file in /home/site/html/stats/05-03-05/HOURLYSUM.html. rmagic: ... Creating graph file in /home/site/html/stats/05-03-05/HOURLYSUM_bar.png. rmagic: Creating report file in /home/site/html/stats/05-03-05/DOMAIN.html. rmagic: Creating report file in /home/site/html/stats/05-03-05/ORGANISATION.html. rmagic: Creating report file in /home/site/html/stats/05-03-05/OSREP.html. rmagic: Creating report file in /home/site/html/stats/05-03-05/STATUS.html. rmagic: Creating report file in /home/site/html/stats/05-03-05/SIZE.html. rmagic: ... Creating graph file in /home/site/html/stats/05-03-05/SIZE_bar.png. rmagic: Creating report file in /home/site/html/stats/05-03-05/FILETYPE.html. rmagic: ... Creating graph file in /home/site/html/stats/05-03-05/FILETYPE_bar.png. rmagic: Creating report file in /home/site/html/stats/05-03-05/DIRECTORY.html. rmagic: ... Creating graph file in /home/site/html/stats/05-03-05/DIRECTORY_bar.png. rmagic: Creating report file in /home/site/html/stats/05-03-05/REQUEST.html. rmagic: Creating report file in /home/site/html/stats/05-03-05/QUICK.html. rmagic: Report creation complete (Tue May 3 15:32:08 2005). Awesome! Thanks a bunch! -- Aj. ___ This is the reportmagic-help mailing list To change your subscription or other preferences use this URL: http://reportmagic.org/cgi-bin/mailman/listinfo/reportmagic-help
Re: [reportmagic-help] Overriding config file settings from the command-line
A. Khattri wrote: On Tue, 3 May 2005, Jeremy Wadsack wrote: If you add [statistics] Vebose=NWE where is it writing files to? Ill assume you meant "Verbose" above. I added that and ran the script again: Report Magic 2.21 Copyright (C) 1999-2003 Wadsack-Allen. All rights reserved. rmagic: WARNING: The setting "[statistics] File_Out" is not recognized. It will be ignored. rmagic: Beginning report creation (Tue May 3 14:10:10 2005). rmagic: --> Settings file: /usr/local/etc/apache/rmagic/site.ini. rmagic: --> Input data file: /home/site/logs/analog.dat. rmagic: --> Output report file: report.html. rmagic: --> Output frameset file: ./index.html. rmagic: --> Output navigation file: ./nav.html. rmagic: ... Creating graph file in ./MONTHLY_line.png. rmagic: ... Creating graph file in ./DAILYSUM_bar.png. rmagic: ... Creating graph file in ./HOURLYSUM_bar.png. rmagic: ... Creating graph file in ./SIZE_bar.png. rmagic: ... Creating graph file in ./FILETYPE_bar.png. rmagic: ... Creating graph file in ./DIRECTORY_bar.png. rmagic: Report creation complete (Tue May 3 14:10:10 2005). So I guess it doesn't recognize File_Out ??? Yes, Verbose. And it's reports_ not statistics_. My mistake. (http://reportmagic.org/docs/repconf.html) -- Jeremy Wadsack Seven Simple Machines ___ This is the reportmagic-help mailing list To change your subscription or other preferences use this URL: http://reportmagic.org/cgi-bin/mailman/listinfo/reportmagic-help
Re: [reportmagic-help] Overriding config file settings from the command-line
On Tue, 3 May 2005, Jeremy Wadsack wrote: > If you add > > [statistics] > Vebose=NWE > > where is it writing files to? Ill assume you meant "Verbose" above. I added that and ran the script again: Report Magic 2.21 Copyright (C) 1999-2003 Wadsack-Allen. All rights reserved. rmagic: WARNING: The setting "[statistics] File_Out" is not recognized. It will be ignored. rmagic: Beginning report creation (Tue May 3 14:10:10 2005). rmagic: --> Settings file: /usr/local/etc/apache/rmagic/site.ini. rmagic: --> Input data file: /home/site/logs/analog.dat. rmagic: --> Output report file: report.html. rmagic: --> Output frameset file: ./index.html. rmagic: --> Output navigation file: ./nav.html. rmagic: ... Creating graph file in ./MONTHLY_line.png. rmagic: ... Creating graph file in ./DAILYSUM_bar.png. rmagic: ... Creating graph file in ./HOURLYSUM_bar.png. rmagic: ... Creating graph file in ./SIZE_bar.png. rmagic: ... Creating graph file in ./FILETYPE_bar.png. rmagic: ... Creating graph file in ./DIRECTORY_bar.png. rmagic: Report creation complete (Tue May 3 14:10:10 2005). So I guess it doesn't recognize File_Out ??? -- ___ This is the reportmagic-help mailing list To change your subscription or other preferences use this URL: http://reportmagic.org/cgi-bin/mailman/listinfo/reportmagic-help
Re: [reportmagic-help] Overriding config file settings from the command-line
If you add [statistics] Vebose=NWE where is it writing files to? -- Jeremy Wadsack Seven Simple Machines A. Khattri wrote: On Mon, 2 May 2005, Jeremy Wadsack wrote: The navigation_File_Out and statistics_Frame_File_Out are always written to the same folder that is defined in -statistics_File_Out. Try using this, I think it should work better: /usr/share/reportmagic/rmagic.pl \ /usr/local/etc/apache/rmagic/rmagic.ini \ -statistics_File_In=/home/site/logs/analog.dat \ -statistics_File_Out=/home/site/html/stats/04-26-05/ And then put this into your rmagic.ini: [statistics] Frame_File_Out=index.html [navigation] File_Out=nav.html Im not having much luck here. The command-line Im generating looks like this: /usr/share/reportmagic/rmagic.pl /usr/local/etc/apache/rmagic/conf.ini -statistics_File_In=/home/site/logs/analog.dat -statistics_File_Out=/home/site/html/stats/05-02-05/ And the config file Im using is: [statistics] #File_In = report.dat Frame_File_Out = index.html Frame_Border = 0 [reports] Active_Column = R Font = Verdana, Arial, Helvetica, sans-serif Title_BG_Color = #00 Title_Font_Color = #FF Title_Font = Comic Sans MS, Brush Script, Helvetica, sans-serif Data_Color_1 = #F0F0F0 Data_Color_2 = #FF Data_Total_Color = #FF Data_Header_Color = #FF Data_Font = Verdana, Arial, Helvetica, sans-serif #--- # Note how we use a filename here (rather than a directory) to # tell it to put all reports in a single file. # (MAC: To use this change to ':onefile:report.html') File_Out = report.html [navigation] Font = Verdana, Arial File_Out = nav.html [QUICK] Rows = m, d, h, c [website] Webmaster = [EMAIL PROTECTED] Base_URL = http://www.example.com Title = My Single File Web Site Report Thanks for your help, ___ This is the reportmagic-help mailing list To change your subscription or other preferences use this URL: http://reportmagic.org/cgi-bin/mailman/listinfo/reportmagic-help
Re: [reportmagic-help] Overriding config file settings from the command-line
On Mon, 2 May 2005, Jeremy Wadsack wrote: > The navigation_File_Out and statistics_Frame_File_Out are always written > to the same folder that is defined in -statistics_File_Out. Try using > this, I think it should work better: > > /usr/share/reportmagic/rmagic.pl \ > /usr/local/etc/apache/rmagic/rmagic.ini \ > -statistics_File_In=/home/site/logs/analog.dat \ > -statistics_File_Out=/home/site/html/stats/04-26-05/ > > And then put this into your rmagic.ini: > > [statistics] > Frame_File_Out=index.html > > [navigation] > File_Out=nav.html Im not having much luck here. The command-line Im generating looks like this: /usr/share/reportmagic/rmagic.pl /usr/local/etc/apache/rmagic/conf.ini -statistics_File_In=/home/site/logs/analog.dat -statistics_File_Out=/home/site/html/stats/05-02-05/ And the config file Im using is: [statistics] #File_In = report.dat Frame_File_Out = index.html Frame_Border = 0 [reports] Active_Column = R Font = Verdana, Arial, Helvetica, sans-serif Title_BG_Color = #00 Title_Font_Color = #FF Title_Font = Comic Sans MS, Brush Script, Helvetica, sans-serif Data_Color_1 = #F0F0F0 Data_Color_2 = #FF Data_Total_Color = #FF Data_Header_Color = #FF Data_Font = Verdana, Arial, Helvetica, sans-serif #--- # Note how we use a filename here (rather than a directory) to # tell it to put all reports in a single file. # (MAC: To use this change to ':onefile:report.html') File_Out = report.html [navigation] Font = Verdana, Arial File_Out = nav.html [QUICK] Rows = m, d, h, c [website] Webmaster = [EMAIL PROTECTED] Base_URL = http://www.example.com Title = My Single File Web Site Report Thanks for your help, -- ___ This is the reportmagic-help mailing list To change your subscription or other preferences use this URL: http://reportmagic.org/cgi-bin/mailman/listinfo/reportmagic-help
Re: [reportmagic-help] Overriding config file settings from the command-line
The navigation_File_Out and statistics_Frame_File_Out are always written to the same folder that is defined in -statistics_File_Out. Try using this, I think it should work better: /usr/share/reportmagic/rmagic.pl \ /usr/local/etc/apache/rmagic/rmagic.ini \ -statistics_File_In=/home/site/logs/analog.dat \ -statistics_File_Out=/home/site/html/stats/04-26-05/ And then put this into your rmagic.ini: [statistics] Frame_File_Out=index.html [navigation] File_Out=nav.html -- Jeremy Wadsack Seven Simple Machines A. Khattri wrote: This command doesn't appear to work - the output files always appear in the current directory regardless of the pathname supplied: /usr/share/reportmagic/rmagic.pl \ /usr/local/etc/apache/rmagic/rmagic.ini \ -statistics_File_In=/home/site/logs/analog.dat \ -statistics_Frame_File_Out=/home/site/html/stats/04-26-05/index.html \ -navigation_File_Out=/home/site/html/stats/04-26-05/nav.html I want to put the output files into a different folder using the date as the folder name, hence I need to do this from a script and specify output files from the command-line. ___ This is the reportmagic-help mailing list To change your subscription or other preferences use this URL: http://reportmagic.org/cgi-bin/mailman/listinfo/reportmagic-help