Live Chat & Podcast at 1:00PM Eastern on Sunday!
There's no such thing as a stupid question, but they're the easiest to answer.
JoinTour
Login
Search
Linux and Unix
Tag Cloud
access acer asus bios bsod computer crash desktop dns driver drivers error ethernet excel freeze gaming graphics hard drive hardware hdmi internet laptop malware memory monitor motherboard network printer problem ram registry repair router slow software sound trojan ubuntu 11.10 uninstall usb video virus vista wifi windows windows 7 windows 7 32 bit windows 7 64 bit windows xp wireless
Search
Search for:
Tech Support Guy Forums > Operating Systems > Linux and Unix >
Urgent changes in script when using different Unix flavour

Reply  
Thread Tools
rahul_r_k's Avatar
Junior Member with 3 posts.
 
Join Date: Aug 2007
30-Aug-2007, 02:39 PM #1
Urgent changes in script when using different Unix flavour
Hi
We have some shell scripts running perfectly on Solaris box ….
Recently we got a new server ( AIX ) and we are supposed to move few applications using these scripts on it.
Just wanted your opinion on whether we can run those scripts without any changes on AIX box or it will require some alterations ?
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
30-Aug-2007, 04:26 PM #2
Hi rahul_r_k,

That depends. What is the default shell the scripts run under in Solaris: /bin/sh?

What exactly do the shell scripts do? Does the AIX file system have the exact same directory structure and components as on the Solaris system that get affected by the scripts?

-- Tom
rahul_r_k's Avatar
Junior Member with 3 posts.
 
Join Date: Aug 2007
30-Aug-2007, 04:36 PM #3
Urgent changes in script when using different Unix flavour
First of all thanks a lot for the prompt response
In solaris the default shell being used is /usr/bin/ksh

Localhost>echo $SHELL
/usr/bin/ksh


Is there any utility or way of finding out , the entire skeloton of dependencies , on other directories and servers of any set of shell scripts ?
like say i have 5 shell scripts accessing 3 different databases , 5 locations and multiple servers , how do i figureout the list of dependencies without manually exploring eacha nd every shell script .
lotuseclat79's Avatar
Distinguished Member with 21,345 posts.
 
Join Date: Sep 2003
Location: -71.45091, 42.27841
30-Aug-2007, 05:56 PM #4
Hi rahul_r_k,

I don't know, but If I were you, I would proceed very cautiously, and explore them manually to try and find out the dependencies. When push comes to shove and the rubber hits the road, there is only one way to do it: either find a tool that can help, ask for advice from someone who has done it before or blaze a trail by doing it the hard way yourself, and following up by writing some scripts that make sense for the next person to step into your shoes.

-- Tom
__________________
The independence created by philosophical insight is - in my opinion - the mark of distinction
between a mere artisan or specialist and a real seeker after truth. - Einstein 1944
Imagination is more important than knowledge. - Einstein
Reply

THIS THREAD HAS EXPIRED.
Are you having the same problem? We have volunteers ready to answer your question, but first you'll have to join for free. Need help getting started? Check out our Welcome Guide.

Search Tech Support Guy

Find the solution to your
computer problem!




Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 
WELCOME TO TECH SUPPORT GUY! Are you looking for the solution to your computer problem? Join our site today to ask your question -- for free! Our site is run completely by volunteers who want to help you solve your computer problems. See our Welcome Guide to get started.
Thread Tools



Facebook Facebook Twitter Twitter TechGuy.tv TechGuy.tv Mobile TSG Mobile
You Are Using:
Server ID
Advertisements do not imply our endorsement of that product or service.
All times are GMT -4. The time now is 10:43 PM.
Copyright © 1996 - 2011 TechGuy, Inc. All rights reserved.

Powered by Cermak Technologies, Inc.