Hello guys.
about two weeks ago i had a question about customizing output and thanks to you guys i could solve it.
now i have a similar question but this time its little complex.
this is my output:
as you can see i have many OC4Js in here and i want to show them like this:
for example if all of the home OC4Js were Alive then HomeValue equals to 1 in other wise Homevalue equals to 0.
i wrote this shell script but it didn't work. i know i should use if but i dont know how! ---------- Post updated at 07:59 AM ---------- Previous update was at 07:47 AM ----------
i forget something:
the OC4Js count is variable. i mean it completely depends to the server configuration.
Thank you.
Hi,
I am realatively new to UNIX (I started 1 week ago), and I need some help on an assignment.
I am trying to find the file that will allow me to modify my login. I did some research, and most of my sources tell me to modify the ~/.cshrc and ~/.login files. The problem is that I cannot find... (1 Reply)
Hi guys,
I have a simple question, I want to store the output of the following command:
As you can see it is running all the time, and we get a new line every 3sec.
I just want to store these new lines into a single variable, so I can use it into a script.
To clear the screen, and... (4 Replies)
Hi forum members,
I have customize command which is opening in one user and while I am try from my user it is not working and getting the message KSH not found.
This command is used to open encrypted file ,this command take arguments file name and option ie plz find the below command.
... (1 Reply)
I want to customize the "change password" through unix shell. when a user's password is expired and he/she logs into shell next time he/she will be asked to change his/her password. At this time when the user provides new password instead of unix doing the "password change" action I want to call my... (4 Replies)
Hi All,
Below is the shell script for which desired output is required:
Shell script:
#!/bin/bash
. /oracle/TEST/db/tech_st/11.1.0/TEST_<hostname>.env
sqlplus /nolog << EOF
connect / as sysdba
spool /home/oracle/db_output.log
@lockwait.sql
prompt Database Locks
... (1 Reply)
Hello guys.
i wan to write an script to Customize this output:
-------------------+--------------------+---------+---------
ias-component | process-type | pid | status
-------------------+--------------------+---------+---------
DSA | DSA | ... (10 Replies)
Hi Team -
I"m very new to Shell Scripting so I have a rather novice question. My forte is Windows Batch Scripting so I was just wondering what the Shell Script equivalent is to the DOS command %~n?
%~n is a DOS variable that dispayed the script name.
For instance (in DOS):
REM... (11 Replies)
Hi Guys,
I am very new to shell script and I need your help here to write a script. Actually, I have a script abc.sh which don't get terminated itself. So I need to design a script to run this script, save the output to a file, search for a given string in the output and if it exists send those... (11 Replies)
I'm trying to create a shell script that takes a awk script that I wrote and a filename as an argument. I was able to get that done but I'm having trouble figuring out how to keep the header of the output at the top but sort the rest of the rows alphabetically. This is what I have now but it is... (1 Reply)