Странице

Ознаке

уторак, 28. октобар 2014.

Use RSYNC to copy files

Check number of files in source folder
tree /source/folder | wc -l
Copy files from source to target folder
rsync -Pavzh --log-file=/tmp/copylog.log /source/folder /target/folder &
Display copy log
tail -f /tmp/copylog.log
Check number of files in target folder
tree /target/folder | wc -l
If the copy process being interrupted, repeat step 2 and the copying process will continue from the last state before interruption.

List symbolic links in current directory

ls -1 | xargs -l readlink
ls -la | grep ^l
find /was61 -type l

R12 Enable/Disable Maintanance Mode script

Enable-Disable maintanance mode
sqlplus apps/apps @$AD_TOP/patch/115/sql/adsetmmd.sql enable
sqlplus apps/apps @$AD_TOP/patch/115/sql/adsetmmd.sql disable