Bourn script on solaris 9


 
Thread Tools Search this Thread
Top Forums Shell Programming and Scripting Bourn script on solaris 9
# 1  
Old 01-24-2010
MySQL Bourn script on solaris 9

Hello Everyone

I need a bourn script that allow the users to enter any network address from (172.21.2.1 - 172.21.2.24) .
more explanation :
the script should add entries (ip address&hostname) to the hosts file , so i can ping to another computer using the hostname .
the host file will be like this after execution the script :
172.21.2.1 sh1
172.21.2.2 sh2
............... ....
172.21.2.24 sh24

Note : I must use the loop process to creat this list .

I hope everyone help me

thank you all

Last edited by Scott; 01-24-2010 at 11:42 AM.. Reason: Removed formatting
# 2  
Old 01-24-2010
This sounds an awful lot like homework, since it's only a loop and an echo.
# 3  
Old 01-24-2010
I know it is easy for you, but I don't know how to do it
can you help me please
# 4  
Old 01-24-2010
Do not post classroom or homework problems in the main forums. Homework and coursework questions can only be posted in this forum under special homework rules.

Please review the rules, which you agreed to when you registered, if you have not already done so.

More-than-likely, posting homework in the main forums has resulting in a forum infraction. If you did not post homework, please explain the company you work for and the nature of the problem you are working on.

If you did post homework in the main forums, please review the guidelines for posting homework and repost.

Thank You.

The UNIX and Linux Forums.
Login or Register to Ask a Question

Previous Thread | Next Thread

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

Same script for Solaris,Linux,AX

Hi , I have a script which is running in Solaris. But my requirement got changed...this script has to run in all OS like Linux,AIX. I tried it but most of the command is not found in all these OS. Is there any way so that i can just modify some part and run it in all OS. (3 Replies)
Discussion started by: millan
3 Replies

2. Solaris

Script on Solaris spawning 2 processes for one shell script execution

Hi, I am having a shell script on Solaris 10 which has a while loop as shown below. #!/usr/bin/ksh # while do sleep 60 done Name of the shell script is coldcentric.sh. I executed script /DATAWAREHOUSE/LOAD/Scripts/coldcentric.sh from a command task in Informatica worklow as... (3 Replies)
Discussion started by: chekusi
3 Replies

3. Solaris

Need to execute the script with script name wihtout using ./scriptname in Solaris 10

Hi, I am using solaris 10.Is there any way to execute the script with the scriptname wihtoug using ./scriptname?Also does it varies from shell to shell.I have scripts in bash,ksh,sh shells. Example:script.sh is the script name.I need to execute the script like this script.sh instead... (4 Replies)
Discussion started by: muraliinfy04
4 Replies

4. Solaris

Need help on a Script in Solaris

Ok here's the situation, i need to create a script in terminal that checks that the default umask is set to 025. If it is indeed set to 025, the script should echo "Exception: No" If it is not set to 025, the script should echo "Exception: Yes" How do i go about doing it? I'm new to this and... (1 Reply)
Discussion started by: marcus5
1 Replies

5. Solaris

Please tune my script for Solaris

I have very big log file around 2-3 GB in that it contians 24 hours log data. My work is extract only 5-5 data and count the patterns from them. I worte a script in linux and we're using that. sed -n "/2009 05:/,/2009 17:/p" trace.log | grep -f patterns.txt > temp.log while read string ;do... (5 Replies)
Discussion started by: senthil.ak
5 Replies

6. Shell Programming and Scripting

simple script in solaris

i am using SunOS ReportServer 5.8 Generic_108528-29 sun4u sparc SUNW,Sun-Blade-2500 and i just wrote a simple script like below: #!/sbin/sh df -k exit 0 when i run it i get response as below check.sh: not found please what am i doing wrong (7 Replies)
Discussion started by: tomjones
7 Replies

7. Shell Programming and Scripting

Solaris request script

Hi, In the request script I need to read user input and store to variable to use it later in postinstall script. e.g. LOGDIR=/app/log echo "Please type the Log Directory : (current value: $LOGDIR)" read LOGDIR When asked, if the user enters a value the parameter is ok and I... (2 Replies)
Discussion started by: potro
2 Replies

8. Shell Programming and Scripting

Plz Help To convert xml file to text file using bourn shell scripts

If someone out there could help me out with this problem. I would really appreciate it. I am trying to convert xml into text file(fixed length) using Unix Borne shell scripts. My xml file: <root> <header_rec recordtype="00"> <record_id>00</record_id> <country_code>AK></country_code>... (0 Replies)
Discussion started by: ram2s2001
0 Replies

9. Shell Programming and Scripting

scheduling script to run another script on Solaris

Hi everyone, I am trying to automate one process on Solaris OS. This is what happens at the moment. Every night at 19:30 and every hour after that we run a script that checks the status of databases. That script runs and prints if db's are OK at the end it states how many were down. I am... (3 Replies)
Discussion started by: andrei
3 Replies

10. Shell Programming and Scripting

How can I schedule a script on Solaris?

How can I schedule a script on Solaris? (3 Replies)
Discussion started by: krikets
3 Replies
Login or Register to Ask a Question