Etiquetas » Shell Scripts

Colour your terminal!

Define a series of variables as shortcuts for color escape codes, there are plenty of examples on internet.

colblk=’\033[0;30m’ # Black – Regular
colred=’\033[0;31m’ # Red… 181 palabras más

SHELL SCRIPTS

check-the-exit-code in shell script

script

======

echo “ORACLE DBA”
error_code=$?
if [ $error_code -ne 0 ]; then
echo “error encountered during execution of code”
fi
echo “exit stauts $error_code” 10 palabras más

SHELL SCRIPTS

Shell Script to Continuously Monitor CPU Usage and Memory Usage of a Process and write output to CSV file

Hi all, recently I had to do some performance tests at work at AdroitLogic and I wanted to monitor CPU usage and memory usage of a process continuously and get that output to a file so that I can use them to analyze more later with graphs and stuff. 354 palabras más

Cpu

How to Share OEM Named Credentials

Named Credentials

Named credentials (NC) are an excellent way to support the work performed by OEM users/administrators without requiring them to actually know key passwords. Named credentials also provide a single location to update when the passwords change. 1.506 palabras más

OEM 12c

Asterisk / VoIP Engineer

Designation              :  Asterisk / VoIP Engineer
Job Location            :  
Jaipur & Ahmedabad, Gujarat.

No. of opening         :  2

Salary                       :  Upto  40k

Experience               :  2+ Years… 157 palabras más

Placement

[Shell] delete outdated files

오래된 파일 삭제하는 쉘 스크립트입니다.

#!/bin/sh

# var declar
DAYS=30
TARGET_PATH=/target

# function declar
function delete_outdated_file {
        find $TARGET_PATH -mtime +$DAYS -type f -exec rm {} \;

}

# function call
delete_outdated_file
Bash

OMS Configuration Backup

The Job system in OEM provides a flexible and reliable means of scheduling custom activities. This can be particularly handy for managing OEM itself.

Backing up the configuration of your management server is essential for recovery and the Job system is great tool for scheduling it. 240 palabras más

OEM 12c