Search Results

Search: Posts Made By: srilaxman
970
Posted By srilaxman
How to check sub scripts execution?
I have a shell script which is used to get the input and have another shell script (a sub script) at the end of this shell script which is used to upload the inputs in the Oracle database. I can...
4,437
Posted By srilaxman
Function to get the current script name
I have a function to get the executing scripts name.

Script_nm() {
Parent=$( ps -f -p $PPID -o and | tail -l | sed -e 's/ *[bak]\{1,\}sh *//' | awk '{print $1}' )
If [ $parent = '-bash' ] ; then...
5,245
Posted By srilaxman
Space delimited variables
I have a shell script where I am using space delimited variables.
Var=" ${var} data1 table1 "
Var=" ${var} data2 table2 "
Var=" ${var} data3 table3 "
Var=" ${var} data4 table4 "

I am using a...
866
Posted By srilaxman
So, mount <filesystem name> <mount name> is the...
So, mount <filesystem name> <mount name> is the command
Am I right?
866
Posted By srilaxman
Mount Linux filesystem not defined in etc/fstab
Hello, is there a way to mount a filesystem which is not defined in the etc/fstab ? Could someone share me any code or command
1,731
Posted By srilaxman
I am not sure about it HD="Date" ...
I am not sure about it

HD="Date"
DT="$(/bin/date "+%Y-%m-%d")"
ON="output/path/file.txt"
FN="App_log_$DT_server"
TMP="Execution Complete "
for num in $servernums
do HD="$HD server${num}"...
1,731
Posted By srilaxman
Hi, I need a help again I wanted to add one more...
Hi, I need a help again I wanted to add one more column as TOTAL and I want the sum of all the values in the row to the value of column

server10 server 11 server12 Total
57 124 ...
1,731
Posted By srilaxman
It works. Thanks again!
It works. Thanks again!
1,731
Posted By srilaxman
The cvs file will look like Date ...
The cvs file will look like
Date server10 server 11 server12 server13
Today date 57 124 234 67

So, whenever I run the script the second row...
1,731
Posted By srilaxman
Great ! Both the code worked. Thankyou so much....
Great ! Both the code worked. Thankyou so much. Can you also help me with the code to append the output the as a row to the excel everytime when this script gets executed ?
1,731
Posted By srilaxman
Hi, this is my code TimeStamp=$(/bin/date...
Hi, this is my code

TimeStamp=$(/bin/date "+%Y-%m-%d")

for num in $(seq 10 16) 19; do
echo -n "server${num}: "
grep -n 'Execution Complete ' App_log_${TimeStamp}_server${num}* | wc -l
Done >...
1,354
Posted By srilaxman
For loop output to excel file
Hi, I have a shell script which analyses the log folder for a specific string and throws me the output. I have used for loop since it does this in multiple servers. Now I want to save the output in a...
1,731
Posted By srilaxman
Shell script, For loop output to excel as columns
Hi, I have a shell script which analyses the log folder for a specific string and throws me the output. I have used for loop since it does this in multiple servers. Now I want to save the output in a...
Showing results 1 to 13 of 13

 

Featured Tech Videos

All times are GMT -4. The time now is 01:46 PM.
Unix & Linux Forums Content Copyright 1993-2020. All Rights Reserved.
Privacy Policy