Professional Documents
Culture Documents
Unix Commands - Odt
Unix Commands - Odt
user=odmj2eeservice
password=pf2xaamf
-- Command to move specific format files from current folder to destination folder
(Ex./marklogic/NewCrediting_Process/IT/IT_50K/)
Must and should check the destination Path using below command
cd /marklogic/NewCrediting_Process/IT/IT_50K/
and enter pwd
then it will show thw location and copy the destination path and then enter the below
command.
find . -type f -name "*_2015011*.xml"| xargs -i mv "{}"
/marklogic/NewCrediting_Process/IT/IT_50K/
Note: Destination folder must exists in the server. else all files will be deleted.
Step 2:
move from UK NAS to US NAS:
robocopy "C:\tdcs\Prod" "\\nadayisicifs02.enterprisenet.org\emmprod2\ODM\Prod" "Italy06060.tar.gz"
/MOV /R:1
Step 3:
untar:
login 036 server
cd /CCS_Prod_US_AndroidLog/ODM/Prod/EventLog_IT0606
tar -xvf Italy06060.tar.gz
-- Command to delete temp files and logs from Java at time of restart
cd /marklogic/JBossRuntime; rm -rf data log;cd /home/soa/jboss-soa-p-5/jboss-
as/server/default; rm -rf data log tmp work; cd /home/soa/jboss-soa-p-5/jboss-as/bin;