Shell Script to Install Ansible AWX in RHEL 7 and CENTOS 7

Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked…

Read More

Shell Bash Scripting Interview Questions and Answer – Part 3

Rajesh KumarI’m Rajesh Kumar, a DevOps, SRE, DevSecOps, Cloud, and Platform Engineering expert passionate about sharing practical knowledge, real-world experiences, and industry best practices. I have worked…

Read More

Starting multiple instances of jboss from shell script

tpatil created the topic: Starting multiple instances of jboss from shell script For starting the multiple instances of jboss I have created the following 2 scripts. Please…

Read More

Could not find or load main class net.sourceforge.cobertura.instrument

scmuser replied the topic: Could not find or load main class net.sourceforge.cobertura.instrument Still could not resolve the issues as below; [code language=”css”] C:\Users\rkumar11>cd C:\cobertura [/code] [code language=”css”]…

Read More

%~dp0 VS %cd%

%~dp0 is the folder that contains the running batch file, while %cd% is the current working directory of the command prompt. They are the same only when…

Read More

Send mail using batch script thorugh SMTP

scmuser created the topic: Send mail using batch script thorugh SMTP Hello, hi i wnt to create batch file that will automtcally send my email through outlok…

Read More

Call batch script from vbscript

rajeshkumar created the topic: call batch script from vbscript Call batch script from vbscript dim shell set shell=createobject(“wscript.shell”) shell.run “INSTALL.bat” set shell=nothing Regards, Rajesh Kumar Twitt me…

Read More

Check the exit code of the last command in batch file?

rajeshkumar created the topic: check the exit code of the last command in batch file? Test for a return code greater than or equal to 1: if…

Read More

Create a txt file using batch file in a specific folder

rajeshkumar created the topic: Create a txt file using batch file in a specific folder @echo off echo.>”d:\testing\dblank.txt” This creates a file containing a blank line (CR…

Read More

Debut Video Capture Batch Script Automation

rajeshkumar created the topic: Debut Video Capture Batch Script Automation Debut Video Capture Batch Script Automation Start Script Set WshShell = CreateObject(“WScript.Shell”) WshShell.Run chr(34) & “C:\Tools\start.bat” &…

Read More

My Shell Script Usage Collection

sgadmin created the topic: My Shell Script Usage Collection Count Total number of files in Directory and Subdirectory > find . -type f | wc –l Count…

Read More

How to read a .properties file through script

rajeshkumar created the topic: How to read a .properties file through script The easy way to do it is to note that a Java properties file has…

Read More

Shell script to run x times

rajeshkumar created the topic: shell script to run x times Problem: First i need to cd to this directory $SWDIR/util Second i need to run the following…

Read More

Whats the difference between running a shell scrip

scmuser created the topic: Whats the difference between running a shell scrip Whats the difference between running a shell script as ./script.sh and sh script.sh have a…

Read More

Shell script merge two list and remove duplicates

rajeshkumar created the topic: shell script merge two list and remove duplicates You want all the records from list_A supplemented by all the records from list_B for…

Read More

Shell script for recursive delete required.

rajeshkumar created the topic: Shell script for recursive delete required. #!/bin/bash if [ $# -ne 1 -o ! -d “$1” ] then echo “Usage $0 dirname” exit…

Read More

Shell Script to delete a folder that is more then

scmuser created the topic: Shell Script to delete a folder that is more then Shell Script to delete a folder that is more then 1 week old…

Read More

Shell Script Run in Background

rajeshkumar created the topic: shell script run in background I wanted to run a particular shell program in a background and it should not be dependent on…

Read More

Command to start SMTP

scmuser created the topic: command to start SMTP Hi… To start SMTP service use the below command #/etc/init.d/sendmail start To stop the SMTP service use the below…

Read More

Copy only modified or added files using tar

scmuser created the topic: copy only modified or added files using tar Hi, i want to make a tar with only files which got added to modified…

Read More

/bin/tar: Removing leading `/’ from member names

scmuser created the topic: /bin/tar: Removing leading `/’ from member names Hi, When i run following script i get a error somthing like /bin/tar: Removing leading `/’…

Read More

Shell Bash Scripting: Assignment & Excercise – 18

scmuser created the topic: how to restore the dump file using shell scripting I have created a script file to dump the application files using the following…

Read More

Shell Script to Find All New Files Added

scmuser created the topic: shell script to find all new files added Hi, i am looking for a shell script to find all new files added or…

Read More

Shell Script Program 1

scmuser created the topic: shell script program 1 Device a script that takes a filename as argument ( which must exist in the current directory) and locates…

Read More

How to gunzip and untar all at once!

rajeshkumar created the topic: How to gunzip and untar all at once! How to gunzip and untar all at once! gunzip myfile.tar.gz tar -xvf myfile.tar INTO ONE…

Read More

Shell script program 2

scmuser created the topic: Shell script program 2 Use a script to take two numbers as arguments and output their sum using (i) bc (ii) expr. include…

Read More

$# and $* Questions

scmuser created the topic: $# and $* questions If a script is run as foo -l -t bar [1-3], what are the values of $# and $*?…

Read More

Exit status of command

scmuser created the topic: Exit status of command What are the exit status of a command? what is its normal value and where is the value stored?…

Read More

tty terminals related script??

scmuser created the topic: tty terminals related script?? Develop script logic that allows only romeo and henry to execute a program, and only from the terminals tty05…

Read More

Df and Du issues with script

scmuser created the topic: df and du issues with script A script named test containing the df and du commands displays nothing when executed. Why does that…

Read More