Discrepencies in different environments (GNU/Linux and SUNOS)


 
Thread Tools Search this Thread
Operating Systems Solaris Discrepencies in different environments (GNU/Linux and SUNOS)
# 1  
Old 12-04-2012
Discrepencies in different environments (GNU/Linux and SUNOS)

Hello,

I have a application that works on a server having SunOS environment. I have to implement it on a different server which has GNU/Linux. Now am facing issues with the shell scripts that are run in the process in the application. It is definitely because of the different flavours of Unix. For example,
1: nawk works in the SunOS but not in GNU/Linux - i had to convert all nawk operations to awk.

2: I also found that new-line char (\n) doesn't work in GNU/Linux and throws "Encountered symbol \ when expecting one of the following..." error. I had to make changes there too.

I want to know if somebody has come across such issue before and can you please put light on some more discrepencies that may occur in this situation. I have to prepare a report of problems faced because of the different environments. So please provide me with points where the different Unix setup might create problems.

Thank You.
# 2  
Old 12-04-2012
If you have an account allowing access to the private regions of The Open Group's website you can find a seven year old technical report that may help here: Conflicts between ISO/IEC 9945 (POSIX) and the Linux Standard Base.

Note that to get POSIX Standards and Single UNIX Specifications conformance on Solaris systems you need to have $PATH set with /usr/xpg4/bin and /usr/bin (in that order) before other directories that contains utilities defined by the standards. Doing this also allows you to use awk (rather than nawk) to get a version of awk that conforms to the standards on Solaris systems.
# 3  
Old 12-04-2012
Thanks Don,

I actually want to do it the other way around. I mean i want the GNU/Linux system to work as how the env in SUNOS is working. Can you provide me a similar suggestion for this.
# 4  
Old 12-04-2012
I don't know of anything that compares common Linux utilities behavior against the default behavior of Solaris system /usr/bin utilities (which meet UNIX System V Interface Definition 3rd Edition requirements with lots of non-conflicting 4.3BSD and 4.4BSD extensions).
# 5  
Old 12-04-2012
I don't see any other way but analysing your code, see what it does, user shell debug (set -x) and run the script.

Differences can be not only in shell, but also in awk (as you mentioned), sed etc.
Login or Register to Ask a Question

Previous Thread | Next Thread

7 More Discussions You Might Find Interesting

1. Cybersecurity

ID Management Security guideline for Linux, AIX, SunOS and HP UX

I'm searching for COMPREHENSIVE ID management security guideline to manage user administration in my current job. I couldn't find it online or the books that could help. What I need to know: User security directories and how to use it. How user should be managed. How the standard user... (0 Replies)
Discussion started by: blinkingdan
0 Replies

2. Shell Programming and Scripting

Memory Usage Monitor on Linux/SunOS Servers

ok, so i'm trying to write a shell script (not perl) that monitors memory usage on a server. but i'm confused as to what fields exactly determines that yes, memory is low on a particular server. it sounds simple enough, but it really isn't. what do I look for in the field below? ... (1 Reply)
Discussion started by: SkySmart
1 Replies

3. Fedora

FreeBSD or GNU/Linux?

Hi, i'm working on micro$oft windows based networking environment's. i want learn other os than micro$oft windows. i tested FreeBSD & Gnu/Linux (Fedora). both are similar. which of following is best choice for me? for networking? and which of them has future (for e.g not discontinued after 2... (3 Replies)
Discussion started by: skynet_boy
3 Replies

4. UNIX for Advanced & Expert Users

Remsh between Hp-ux and Linux or SunOS

Hi All, I`m trying to execute something remotely using Remsh. Up to now it worked on HP-UX machines ( editing the /etc/hosts. .rhosts and creating user to the remote machine using SAM) but i cannot configure it to work from HP-UX to Linux or SunOS. Can anybody help me with this? THanks (1 Reply)
Discussion started by: elthox
1 Replies

5. UNIX for Advanced & Expert Users

Migration of binary file from Sunos 5.8 to Sunos 5.9

I have compiled binary file using "cc" on SunOS 5.8 and the same binary file i have copied to SunOS 5.9 and it is giving me core dump error.I want to know whether migration of compiled code from lower version to higer version created this problem. how can i solve this problem.I am pasting the core... (1 Reply)
Discussion started by: Arvind Maurya
1 Replies

6. UNIX for Dummies Questions & Answers

GNU and Linux: Different or the same?

Sorry for sounding like an incredible n00b, but as I have been lurking and searching on the net, I have come across something that may be common sense to most, but to me is confusing. I constantly see the word GNU when I do searches for Linux, both on this web site and on search engines. I found... (18 Replies)
Discussion started by: Minnesota Red
18 Replies

7. HP-UX

df and bdf discrepencies

I've recently had some space problems on one of our old HP9000 machines. I archived/moved/compressed/trashed some stuff to free up some space on one rather large (and important) logical volume. As one would expect, when `df -b` is executed some space is shown as free: /opt ... (2 Replies)
Discussion started by: sam_pointer
2 Replies
Login or Register to Ask a Question