can I run ksar from a script so without any user interaction? I run kSar.tar on linux, but want to use it to genereate daily graphics without any interaction.
Could you please provide a example of the commandline?
It is not working at my end:
LC_ALL=C; sar -A -f /var/log/sysstat/201508/sa11 > /home/lnunez/Escritorio/sar-all.log; /home/lnunez/Escritorio/kSar-5.1.0-beta4/jdk1.8.0_51/bin/java -jar /home/lnunez/Escritorio/kSar-5.1.0-beta4/kSar-5.1.0.jar -input /home/lnunez/Escritorio/sar-all.log -cpuFixedAxis -showCPUstacked -graph 'LinuxprocSar LinuxcswchSar LinuxintrSar LinuxswapSar LinuxioSar LinuxloadSar LinuxpageSar LinuxsockSar LinuxkbmemSar LinuxkbswpSar LinuxkbmiscSar LinuxpgpSar LinuxnfsSar LinuxnfsdSar' -outputPNG /home/lnunez/Escritorio/images/; ls -la /home/lnunez/Escritorio/images/
Even is not being closed the gui after executed the previous one command.
If you would like to refer to this comment somewhere else in this project, copy and paste the following link:
I run this nightly via a script.
$graph_list="LinuxprocSar LinuxcswchSar LinuxintrSar LinuxswapSar
LinuxioSar LinuxloadSar LinuxpageSar LinuxsockSar LinuxkbmemSar
LinuxkbswpSar Li
nuxkbmiscSar LinuxpgpSar LinuxnfsSar LinuxnfsdSar";
/usr/bin/java -jar /data/kSar/kSar-5.0.3.jar -input
/data/sar/autoyast/sar05.clean -cpuFixedAxis -showCPUstacked -graph
'LinuxprocSar LinuxcswchSar LinuxintrSar LinuxswapSar LinuxioSar
LinuxloadSar LinuxpageSar LinuxsockSar LinuxkbmemSar LinuxkbswpSar
LinuxkbmiscSar LinuxpgpSar LinuxnfsSar LinuxnfsdSar' -outputPNG
/data/apache2/htdocs/kSar_graphs/daily/autoyast/autoyast
It is not working at my end:
LC_ALL=C; sar -A -f /var/log/sysstat/201508/sa11 > /home/lnunez/Escritorio/sar-all.log; /home/lnunez/Escritorio/kSar-5.1.0-beta4/jdk1.8.0_51/bin/java -jar /home/lnunez/Escritorio/kSar-5.1.0-beta4/kSar-5.1.0.jar -input /home/lnunez/Escritorio/sar-all.log -cpuFixedAxis -showCPUstacked -graph 'LinuxprocSar LinuxcswchSar LinuxintrSar LinuxswapSar LinuxioSar LinuxloadSar LinuxpageSar LinuxsockSar LinuxkbmemSar LinuxkbswpSar LinuxkbmiscSar LinuxpgpSar LinuxnfsSar LinuxnfsdSar' -outputPNG /home/lnunez/Escritorio/images/; ls -la /home/lnunez/Escritorio/images/
Even is not being closed the gui after executed the previous one command.