Command line args for file
Status: Beta
Brought to you by:
royrusso
Hi,
I find jcola useful but would like command line args.
The args should be a file path.
so I can do the following:
>java -jar d:\stuff\jcola_01_beta.jar c:\logs\myLog.log
and have it open tailing the log passed in as an
argument.
One reason that this would be useful is the ability to
script it and possibly have it added to Windows "Send
To" menu.
JColaMain modified for command line file name arg
Logged In: YES
user_id=634811
Here is the JColaFrame
JColaFrame modified for command line file name arg
Batch file to run with arg.
Logged In: YES
user_id=634811
modify the bat to point to your jar and create a shortcut to the
bat file in your send to folder in windows.
Enjoy
Logged In: YES
user_id=634811
Hi,
Just a tip on expanding the idea.
to allow selecting and tailing multiple files at once change the
src to loop through the args accepting multiple args all as
files and the passing on a File[] from the main. If there was
only 1 arg test to see if it is a directory. If it is loop through all
files in the dir and pass the File[] of all files to the GUI.
the bat would have to be modified as follows:
start javaw -jar "C:\Program Files\jcola\jcola_011_beta.jar" %*
Due to the fact that my log file is growing at up to 1/2 MB a
second I had to move to a native tail solution. Swing can't
keep up and was slowing down my system. But
implementing this suggestion should be trivial