Sponsored Content
Top Forums Shell Programming and Scripting getting space utilization from a location Post 302501950 by pkbond on Sunday 6th of March 2011 12:44:22 AM
Old 03-06-2011
thnx anchal Smilie

but now it is giving below error..
Code:
./log_test2.ksh[10]: ==: unknown test operator
./log_test2.ksh[10]: ==: unknown test operator
./log_test2.ksh[10]: ==: unknown test operator

Smilie


i am trying to match 2 strings
Code:
if [ "$list" == "server1" ] ; then

---------- Post updated at 10:45 AM ---------- Previous update was at 10:32 AM ----------

my bad... Smilie

now i put single equal to sign..
Code:
if [ "$list" = "server1" ] ; then

it is working now Smilie

---------- Post updated at 11:14 AM ---------- Previous update was at 10:45 AM ----------

now i am trying to remote login server1.
after login in that server i want go to path "cd /logs" and then get the output for "bdf ." command.
after running the script, it is not loggin in sever1.

**I have updated .rhosts file on both the servers.

i was trying to login through rlogin.

is "rlogin" good to work with in shell script, or should i go with "remsh" for same.

if i have to use remsh, can anyone tell me how can i get space utilization from 3 different location (or run multiple commands using remsh)

Last edited by Scott; 03-06-2011 at 06:40 AM.. Reason: Code tags
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Space Utilization

Hi All, I have executed the "df -h" command to identify the space utilization and I noticed that i have utilized more than 60% of the alloted resources. Is there any command to check what are the files occupying/eating the 60% of the resources (for my id)?? If i know the files and their location... (2 Replies)
Discussion started by: Meem
2 Replies

2. Shell Programming and Scripting

Check space utilization in recursive mode

Hi friends, I have the following query.. Suppose I have the parent directory as /home/suresh/Jobs and assume there are many child ub-directories created within this parent directory I would like to fire a command which will give me the space utilization within each of the child... (1 Reply)
Discussion started by: sureshg_sampat
1 Replies

3. AIX

Eliminating paging space and interpreting memory utilization

I just want to inquire on one of our DB Servers. Currently, we are running on 26GB of memory and 6 CPUs. Though our memory is 70-80 utilized, I can see some paging of around 8-10%. Is there any effective way we can lessen/eliminate paging? Here is our current VMO Settings: vmo: ... (1 Reply)
Discussion started by: depam
1 Replies

4. Shell Programming and Scripting

disk space utilization script

Hi, I wrote the following script for monitoring disk space and inform the concerned team accordingly. But script gives me below error syntax error at line 70 : `<' unmatched #!/bin/ksh . /home/scr/.profile . /home/scr/.infa_env # Get the list of Integration Services ... (6 Replies)
Discussion started by: svajhala
6 Replies

5. Shell Programming and Scripting

File created in a different location instead of desired location on using crontab

Hi, I am logging to a linux server through a user "user1" in /home directory. There is a script in a directory in 'root' for which all permissions are available including the directory. This script when executed creates a file in the directory. When the script is added to crontab, on... (1 Reply)
Discussion started by: archana.n
1 Replies

6. UNIX for Dummies Questions & Answers

Space utilization for group of files

Hi Is there an easy was to list a group of file (*.txt) and report how much disk space they are using in total? Cheers (2 Replies)
Discussion started by: Grueben
2 Replies

7. Shell Programming and Scripting

How to find a existing file location and directory location in Solaris box?

Hi This is my third past and very impressed with previous post replies Hoping the same for below query How to find a existing file location and directory location in solaris box (1 Reply)
Discussion started by: buzzme
1 Replies

8. Shell Programming and Scripting

Need simpler way to find all my disk space utilization using df -h

Hi All, I am using SSH Tectia terminal to get the disk space utilization of a particular folder /opt/logs in all the servers one by one using the command df -h and looking through the list of folders manually to get /opt/logs folder disk space used percentage . The problem here is , it... (2 Replies)
Discussion started by: aakhan2011
2 Replies

9. Red Hat

CPU Utilization and Memory Utilization of Services and Applications

Hi, i am new to linux/RHEL 6.0 and i have two questions. 1) How to get the CPU utilization and Memory Utilization of all Services running currently? 2) How to get the CPU utilization and Memory Utilization of all Applications running currently? Please help me to find the script. ... (2 Replies)
Discussion started by: nossam
2 Replies

10. Shell Programming and Scripting

Disk Space Utilization in HTML format working in one environment and not working on the other

Hi Team, I have written the shell script which returns the result of the disk space filesystems which has crossed the threshold limit in HTML Format. Below mentioned is the script which worked perfectly on QA system. df -h | awk -v host=`hostname` ' BEGIN { print "<table border="4"... (13 Replies)
Discussion started by: Harihsun
13 Replies
All times are GMT -4. The time now is 08:52 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy