Search Results

Search: Posts Made By: krevathi1912
Forum: Solaris 12-03-2007
25,887
Posted By krevathi1912
Thanks for your valuable reply. I solved the...
Thanks for your valuable reply.
I solved the problem.
The problem is

/sbin/ifconfig bge0:${s4} ${s1}.${s2}.${s3}.${s4} up

this line is executed as /sbin/ifconfig bge0:$1 192 168 100 1 up ...
Forum: Solaris 11-27-2007
25,887
Posted By krevathi1912
Below is the output of the virtual IPs created...
Below is the output of the virtual IPs created manually and through script



bge0:1: flags=1000843<UP,BROADCAST,RUNNING,MULTICAST,IPv4> mtu 1500 index 2
inet 192.168.100.1 netmask ffffff00...
Forum: Solaris 11-26-2007
25,887
Posted By krevathi1912
The output is bash-3.00$ ls -l `which sh` ...
The output is

bash-3.00$ ls -l `which sh`
lrwxrwxrwx 1 root root 13 Aug 4 2006 /bin/sh -> ../../sbin/sh
Forum: Solaris 11-26-2007
25,887
Posted By krevathi1912
Thanks for ur reply......... I have solved it...
Thanks for ur reply.........
I have solved it using "while" loop anyway "for" loop is not working for me
I m using Solaris-10
Below is my code

#!/bin/sh
echo "Enter the start IP"
IFS="."...
Forum: Solaris 11-26-2007
25,887
Posted By krevathi1912
Ya I have tried it. The same problem persisted ...
Ya I have tried it. The same problem persisted

Code is below

#!/bin/sh
echo "Enter the start IP"
IFS="."
read s1 s2 s3 s4
echo "Enter the End IP"
IFS="."
read e1 e2 e3 e4
TOTAL=`expr $e4...
Forum: Solaris 11-26-2007
25,887
Posted By krevathi1912
/bin/sh Below is entire script echo...
/bin/sh

Below is entire script

echo "Enter the start IP"
IFS="."
read s1 s2 s3 s4
echo "Enter the End IP"
IFS="."
read e1 e2 e3 e4
TOTAL=`expr $e4 - $s4`
echo "Total is $TOTAL"
if [ $e4...
Forum: Solaris 11-26-2007
25,887
Posted By krevathi1912
Problem in for loop of shell scripting in solaris
Hi below is my script

for((i=0;i<=$TOTAL;i++))
do
echo "IP's created are $s1.$s2.$s3.$s4"
s4=`expr $s4 + 1`
done


where s1,2,3,4 are input...
Forum: Solaris 11-26-2007
123,291
Posted By krevathi1912
Thanks for ur valuable reply......... ...
Thanks for ur valuable reply.........

TOTAL=`expr $e4 - $s4`
The above works fine..............
The error i did is i din leave space between the variables(i.e TOTAL=`expr $e4-$s4`)

Thanks...
Forum: Solaris 11-26-2007
25,191
Posted By krevathi1912
That's correct. It works fine.............. ...
That's correct.
It works fine..............

Thanks
Revathi
Forum: Solaris 11-26-2007
123,291
Posted By krevathi1912
You suggestion does not work. Below is my...
You suggestion does not work.
Below is my script

#!/bin/bash
echo "Enter the start IP"
IFS="."
read s1 s2 s3 s4
echo "Enter the End IP"
IFS="."
read e1 e2 e3 e4
TOTAL=$(($e4 - $s4))
echo...
Forum: Solaris 11-26-2007
123,291
Posted By krevathi1912
You suggestion does not work. Below is my...
You suggestion does not work.
Below is my script

#!/bin/bash
echo "Enter the start IP"
IFS="."
read s1 s2 s3 s4
echo "Enter the End IP"
IFS="."
read e1 e2 e3 e4
TOTAL=$(($e4 - $s4))
echo...
Forum: Solaris 11-26-2007
123,291
Posted By krevathi1912
Below is my script #!/bin/bash echo "Enter...
Below is my script

#!/bin/bash
echo "Enter the start IP"
IFS="."
read s1 s2 s3 s4
echo "Enter the End IP"
IFS="."
read e1 e2 e3 e4
TOTAL=$(($e4 - $s4))
echo "Total is $TOTAL"


Any idea
Forum: Solaris 11-24-2007
25,191
Posted By krevathi1912
How to check the file existence using shell scripting in Solaris-10
Hi,

I have a script which will check the fiel existence, the lines are as below

if !(test -d ./data) then
mkdir data
fi

In the first line error occurs as below

generatelicense.sh:...
Forum: Solaris 11-24-2007
123,291
Posted By krevathi1912
How to perform addition of two numbers in shell scripting in Solaris-10
Hi,

I have a sh script which contains the following line

TOTAL=$((e4-s4)) -> Where e4 and s4 are input got from the user.

At the time of execution of this line the following error...
Forum: Solaris 11-24-2007
3,707
Posted By krevathi1912
Where this DISPLAY set will be available. How...
Where this DISPLAY set will be available.
How to remove the it............
Can u explain me bit brief. Please.....................
Forum: Solaris 11-24-2007
3,707
Posted By krevathi1912
"DISPLAY" set means........................Sorry...
"DISPLAY" set means........................Sorry I dont know. I m new to Solaris

The message box is a java driven UI...............
Forum: Solaris 11-24-2007
3,707
Posted By krevathi1912
How to supress a UI popup at the time of Service start up in solaris-10
Hi,
I have written a service script(service.sh) for my application which will add my application(BTINM) as service and start the service. Internally inside the script i will call the sh script which...
Showing results 1 to 17 of 17

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