Search Results

Search: Posts Made By: AB10
18,266
Posted By AB10
Thanks for the reply guys!
Thanks for the reply guys!
18,266
Posted By AB10
Command to check the CPU usage for particular user
Hi All,

Can anybody knows, how to check the CPU usage in percentage for a particular process along with its user and PID?

Thanks in advance!!
17,368
Posted By AB10
It is my project need that I should run the...
It is my project need that I should run the script in tcsh only.

So I need the tcsh compliant code only.
17,368
Posted By AB10
I am trying your code: until [ "$(echo...
I am trying your code:

until [ "$(echo "$DIR/"*)" = "$DIR/*" ]
do
sleep 2
done

But it says Illegal variable Name

I am using tcsh.
17,368
Posted By AB10
it is not working in bash. im using tcsh....
it is not working in bash.

im using tcsh. Can you please suggest the right syntax?
17,368
Posted By AB10
Im trying this, FILE="" DIR="./tmp" ...
Im trying this,

FILE=""
DIR="./tmp"

while true
if [ "$(ls -A $DIR)" ]; then
sleep (10)
else exit(0);
done
17,368
Posted By AB10
Thank you for the reply, But at some time the...
Thank you for the reply,
But at some time the directory is going to have some folders in it, and after some time it is going to be empty.
I want to wait till this directory gets empty.

ls -a |...
17,368
Posted By AB10
Waiting till the directory becomes empty
Hi Guys,

I am writing a shell script to check whether the directory is empty or not.
If it is empty then proceed but if it not then wait till it becomes empty.

Is there any way for this?
...
36,360
Posted By AB10
Waiting for the background process to finish
Hi,

I have on shell script which internally calls more than one scripts which run in background.
These scripts cannot be modified to run in foreground.

eg. myscript.sh -> bulk_launcher.sh ->...
9,145
Posted By AB10
Thanks it also worked in tcsh!!
Thanks it also worked in tcsh!!
9,145
Posted By AB10
Assigning expression value to tcsh variables
Hi All,

I have a tcsh script as:

#!/usr/bin/csh -x

set packsName=$(awk -F'[=.]' '/^execute.*=true/{print $2}' ExecutePacks.config)

for var in $packsName
do
echo "printed $var"
done
...
1,284
Posted By AB10
thank you so much!!
thank you so much!!
1,284
Posted By AB10
Thank u so much for the quick help!! But now...
Thank u so much for the quick help!!
But now going more deeply,
If I have config file like,

install.AlcatelSDH=false
install.alcatel_5620SAM=false
install.ciscoIOS=true
install.foundry=false...
1,284
Posted By AB10
Need help regarding awk
Hi All,

I have one configuration file called 'TestingPacks.config' as follows:

install.SDH=false
install.620SAM=false
install.IOS=true
install.foundry=false
install.LEOS=true

As you...
1,970
Posted By AB10
remsh problem with single quote (')
Hi All,

Im executing the shell script remotely.
here is one statement from that:

remsh $rHost -l $rUser "java -jar $TARGET/toolkit/apps/bin/toolkit-stm.jar network -m -d1...
2,763
Posted By AB10
Thank u all for the help! I tried the above...
Thank u all for the help!

I tried the above command without -C option and it worked!

But i dnt know how it succeeded?
2,763
Posted By AB10
remsh: jar -C option does not work
Hi All,

Im trying to extract a file called 'DYEDistinctAppServer.topology' from a jar at specific location data/product/template-topologies, using remsh.

command is:

remsh $rHost -l...
3
3,570
Posted By AB10
Remsh
Hi All,

Im using remsh to execute shell script on remote server. And this script gets called from another AIX server.

My code is:
remsh $rHost -l $rUser -n "export...
1,596
Posted By AB10
Entering into C shell remotely
Hi All,

I want to enter into C shell from Ksh remotely.

I have written code like,

remsh $rHost -l $rUser -n "source $RM_HOME/run_time/.set_env.csh;
jar -xvf $package.$extension"

...
3,626
Posted By AB10
remsh options
Hi All,

I want to know all the options that are used for command remsh.
And also the prerequisites like entries in .rhosts file.

Can anybody share the link or document?

thanks.
5,088
Posted By AB10
Thanks, -a option worked. Can you please...
Thanks, -a option worked.

Can you please tell me the difference between -o and -a option?
5,088
Posted By AB10
What I want is, in all the values for $var, I...
What I want is, in all the values for $var, I dont want the statements to be executed for ABC and XYZ.

I tried your solution, but it still prints for ABC and XYZ.
I dont want it to be printed.. :(
5,088
Posted By AB10
Variable comparison in 'if' with a string.
Hi All,

I want to compare the variable value with string in a shell script.
my code is:
for var in $packsName
do
if [ $var -ne 'ABC' || $var -ne 'XYZ' ]
then
echo $var
fi
done
...
3,606
Posted By AB10
Thanks a lot!! It worked both ways.
Thanks a lot!!

It worked both ways.
3,606
Posted By AB10
Need tokens in shell script
Hi All,

Im writing a shell script in which I want to get the folder names in one folder to be used in for loop.

I have used:
packsName=$(cd ~/packs/Acquisitions; ls -l| awk '{print $9}')...
Showing results 1 to 25 of 25

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