
Archives for Unix
Hello,
In this post, I would like to keep in my "knowledge base" 2 examples of scripts : SHELLSCRIPT + SQL and SQL + BATCH.
Example 1 : SHELLSCRIPT + SQL : Export data to CSV file
Creation of a SHELLSCRIPT script ex1_launcher_script.sh which is the launcher of a SQL script ex1_processing_script.sql. This SH script takes 2 parameters: the output CSV file ...more»
Hi,
In order to avoid the problem epxlaind in the post http://www.javablog.fr/java-outofmemoryerror-and-memory-checker.html, there is an useful unix command free -tm:
The values are in MB, Mem is the actual RAM, Swap (specific to Unix) only serves to supplement the RAM (That is the ROM which serves RAM when needed).
myAccount@javablogServer:~> free -tm
...more»
Hi,
I continue with Unix commands concerning archiving ZIP, TAR...etc.
First, we list the content of current folder /opt/tomcat/webapps/host-manager:
Archive a folder in TAR.GZ
Check the content in TAR.GZ archive
Unarchive a TAR.GZ archive in a folder
Archive each element (subfolder, file) of root folder in TAR.GZ
In this example, we will create a TAR.GZ archive for each element (folder or file) contained in a root folder. ...more»
Hi,
In this article, I propose you some useful Unix commands relative to Tomcat.
Delete the Tomcat log without restart
It's possible to empty the Tomcat log wihout restart it:
Restart Tomcat
First, it is necessary to do a sudo in order to run programs with the security privileges of superuser:
...try to stop the server:
....but if this command doesn't done and returns an error : ...more»
