|
|
Unix scripts
|
|
|
|
Fresh-Faced Recruit
Join Date: Dec 2007
Status:
Offline
|
|
In Unix Server, I want to add a script to add a default Gateway. I used following:
route add default IP Address
however when the Unix is switched off and re-started, I have to repeat this. How do I write a script so that it automatically adds the route during boot up.
regards
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Sep 2005
Status:
Offline
|
|
What actual operating system are you using? I ask because every *nix I've encountered has some sort of mechanism for adding the default gateway on boot, but it differs between OSes.
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Dec 2007
Status:
Offline
|
|
I will find the version of the Unix operating system and let you know
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Sep 2003
Location: San Diego
Status:
Offline
|
|
The easiest way to get the version of the OS you are using is to type the command 'uname -a' (no quotes) and then paste the output here. The output for OS X Leopard is:
Darwin Daniel-Smiths-Computer.local 9.1.0 Darwin Kernel Version 9.1.0: Wed Oct 31 17:48:21 PDT 2007; root:xnu-1228.0.2~1/RELEASE_PPC Power Macintosh
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Dec 2007
Status:
Offline
|
|
The operating system is SCO Open Server (TM Releaase 5)
Regards
|
|
|
|
|
|
|
|
|
Fresh-Faced Recruit
Join Date: Dec 2007
Status:
Offline
|
|
When I types what you suggested, following comes up:
SCO-SV scosysv 3.2 5.0.5 i386
regards
|
|
|
|
|
|
|
|
|
Forum Regular
Join Date: Sep 2003
Location: San Diego
Status:
Offline
|
|
Well, having never used SCO unix before, I'm not sure if this solution will work or not, but a quick googling lead me to this link
|
|
|
|
|
|
|
|
|
Clinically Insane
Join Date: Mar 2001
Location: yes
Status:
Offline
|
|
You want to think about replacing this server with a different Unix OS, I believe SCO has gone bankrupt.
|
|
|
|
|
|
|
|
|
Mac Elite
Join Date: Sep 2005
Status:
Offline
|
|
|
|
|
|
|
|
|
|
|
Junior Member
Join Date: Mar 2003
Status:
Offline
|
|
Create a S99router file on the /etc/rc2.d directory
Inside this file put:
route add default <ip_address>
Save the file
and chmod 755 to it.
I worked on The Santa Cruz Operation for 10 years as technical support manager for Latinamerica
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
Forum Rules
|
|
|
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts
|
HTML code is Off
|
|
|
|
|
|
|
|
|
|
|
|