Search Results

Search: Posts Made By: yoavbe
3,323
Posted By yoavbe
Shell script to monitor process with high CPU
Hi,

Linux redhat 5.5

I need to write a kshell script that shows all the process that consume 100% CPU (or more. strange but there are time that top shows higger value that 100) and they are...
4,883
Posted By yoavbe
Hi, Thank you for your feedback. The...
Hi,

Thank you for your feedback.
The problem is happened only when i put the code into a function.


#!/usr/bin/ksh
export ORACLE_HOME=/software/oracle/DB10gR2
export...
4,883
Posted By yoavbe
Unmatched <<
Hi,
I am running sinple ksh script .
From some reason it failed on the following error:
./ogg_status.sh[14]: syntax error at line 16 : `<<' unmatched

Please advise.
#!/usr/bin/ksh
export...
1,584
Posted By yoavbe
ksh script failed while using -x
Hi,
I have a Kshell script that is failed if i am using the -x option.

$ cat ListOfFiles.lst
\+DATA_DM01/pudwh/datafile/dw_billing_tts_1 ...
Forum: Red Hat 07-27-2012
1,051
Posted By yoavbe
root user is being looked for 5 minute
Hi,
Each time i am looging as a root user to my server (linux redhat 5.8) and type a wrong root password , the root account is being lock for 5 minute .
1) How i can change this behivor ?
2) In...
796
Posted By yoavbe
Perl script question
Hi,
I have a unix machine that hosts 5 oracle databases.
Each database has its own "ORACLE_HOME" with is actualy an oracle software .
Each software is installed in its own directory.
For example...
1,936
Posted By yoavbe
How to add s permission on a file
Hi,

Currently i have the following permissions on the file:

[bin]# ls -la extjob
-rwxr-x--- 1 root oinstall 1243193 Apr 2 2011 extjob

I need to have the following permission:
-rwsr-x---...
1,231
Posted By yoavbe
Hi, Thanks you for your advice , its seems that...
Hi,
Thanks you for your advice , its seems that it almost solve my problem.
Yet , i am getting some unwanted results.

For example if the test2.xml file is :

<embedded-ldap>
...
1,231
Posted By yoavbe
Using awk
Hi ,
I have an XML file , that i need to parse.
Its looks like :

....
<app-deployment>
<name>peoplesoft</name>
<target>PIA,PIA1,PIA2</target>
....

I need to search the file , and return...
1,418
Posted By yoavbe
complex Awk Question
Hi,
I have a file look likes this :

--->start hir
Trace file: pudwh_ora_9998.trc
Sort options: fchela exeela
***************************************************************count = number...
2,566
Posted By yoavbe
AWK question
Hi,
I have a file look likes this :

--->start hir
Trace file: pudwh_ora_9998.trc
Sort options: fchela exeela
***************************************************************count = number...
1,332
Posted By yoavbe
Search value in text file
Hi,
I have the follwoing text file :
db1;unrecoverable;0;20110728162548
db1;unrefreshed;1,NO_MV_VIEWS;20110728162548
xe1;Database;1;20110728162548
xe1;autoextensible;0;20110511112053...
6,067
Posted By yoavbe
Day difference between 2 dates
Hello!
I need to calculate number of days between two dates.
The first date is in format of string.
The second one is in format of date (current date):

#!/usr/bin/ksh
export...
Forum: Red Hat 07-24-2011
1
3,573
Posted By yoavbe
zombie
Hi,
Linux redhat 5.5

top shows that i have 20 zombie process :

Tasks: 357 total, 1 running, 336 sleeping, 0 stopped, 20 zombie
Cpu(s): 0.2%us, 0.3%sy, 0.0%ni, 99.5%id, 0.0%wa, ...
1,705
Posted By yoavbe
soft link issue
Hi ,

When installing oracle software a set of directories are created under
the home directories.
Since the home directory is usually not big , i would like to create a soft link
from the...
3,200
Posted By yoavbe
Kill sessions
Hi ,

I am connecting to the linux redhat machine as user : APPS

I would like to know how i can kill -9 , all APPS sessions beside me .

Please advice

Thanks
2,123
Posted By yoavbe
Understanding Groups
Hi

cat /etc/group :
....
oinstall:x:401:
dba:x:400:oracle
...

cat /etc/passwd|grep oracle
oracle:x:130:401::/home/oracle:/bin/ksh

1. Is that mean that :
ORACLE user has OINSTALL as it...
895
Posted By yoavbe
Find and list script
Hello All,
ksh script.

Please consider the following case .

[/bz/arch]$ ls -l
-rw-r----- 1 100 400 405143552 Mar 21 2010 bz_1_0000063547_561428818.arc
-rw-r----- 1 100 400 404148224 Feb...
4,080
Posted By yoavbe
How to fetch a specific line from file
Hi,
I have text file in the following strucher .
The files contain hondreds of lines.

value1;value2;value3;value4

I would like to get back the line with lowest date (values4 field).
In this...
3,626
Posted By yoavbe
Understanding group and passwd
Hi,

I am checking who belong to the dba group ,
and found that oracle and autosys users are part of this group
cat /etc/group | grep dba
dba::400:oracle,autosys

I thought to found user...
1,748
Posted By yoavbe
Counting
Hi,
The following output shows how many pmon process are started by users named : oracle or yoavb
[/home/yoavb]$ ps -ef |grep pmon |grep -v grep |grep -v ipmon
oracle 11268 1 0 Sep 2 ? ...
2,367
Posted By yoavbe
sudo on directory
Hello,

I have a directory with 45 kshell scripts .
I would like to grant sudo to specific account on this DIRECTORY and not on each and every files. Is it possible ?
(note: I have the same...
1,664
Posted By yoavbe
Audit connect
Hi,
I would like to audit a connection of a specific account to HPUX and LINUX redhat O.S

I need audit the IP address of the client machine , and the date&time the connection to the server has...
Forum: Cybersecurity 10-08-2010
1,521
Posted By yoavbe
Private account for administration users
Hello,
My DBAs are connecting to the unix servers with ORACLE account.
I would like to create for each one of them a private user .
Only after connecting in ther private user allow them to su...
1,492
Posted By yoavbe
Problem using ssh inside script
Hi,
When runnin the following script it complte successfully with out any problem

#!/bin/sh
SERV="crm1"
for s in $SERV
do
export WebLogicSessions=`ssh psoft@$s "cd /software/psoft/scripts ;...
Showing results 1 to 25 of 70

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