I have a script which has commands that are located in different paths on my Linux o/s than on Solaris. For example, to make uname work, I need to do it this way in Solaris:
But in Linux it is:
I have this issue with at least 5 commands. I have never needed to port scripts between the different operating systems, and am sure I could do something with the path statements to fix this. I don't want to create a separate script for Linux and one for Solaris. Gurus, any ideas how to make the script run on both o/s?
I have ported a c program to solaris.
When I run , it gives me segmentation fault error at line :-
memcpy ((char *)a_string ,(char *)0, MAX_READ ) ;
originally this was in reliant unix as :-
memcpy ( a_string , 0 , MAX_READ ) ;
Can somebody help me about this ? (1 Reply)
Hi all,
i wanted to port some HP-UX code to linux. can anybody point to some documents or resources that would help me in doing the porting..
thanks in advance
Arun Prakash (0 Replies)
Hi i have a C program that i need to port from solaris to BSD
The flags i pass on CC in solaris are -lsocket -lnsl
I use sockets and threads anyone know flags for BSD (1 Reply)
Hi, I'm trying to get this script to work on an AIX 5.3 box, I couldn't get pgrep for AIX, I also realize that ps works differently on the IBM boxes. Could anybody just give me the specifics of a work around for my problem, I'll adjust the whole script:
#!/bin/bash
# applabs.com
#to do:
#... (3 Replies)
Hi,
I am porting one shell script from Linux to AIX. I had .ksh file and i have changed it to .sh file for aix. on linux this script is running fine but on aix it gives me "unexpected end of file" error.
Could any one suggest me what to do to port this script error free?
Thanks in... (6 Replies)
helo,
i m porting HP-UX socket application to Linux SSL-socket application.
I have use htonl() in HP-UX.
so when i use it in Linux, data transf is not done and application become soem time crashed.
now when i remove htonl() in linux, then i got data but it will not proper order or some data may... (1 Reply)
Hi all,
Has anyone experience with proting a Linux driver (C-code) to Solaris 10?
I have a Sunix SATA card with a inicio1622 chipset, but no driver available. From the website of inicio I downloaded the drivercode for Linux 2.4.
Having done some investigation I found a Solaris driver... (4 Replies)
I don't expect any quick answers, but if people have links to resources I can investigate I'd be extremely appreciative. Here is what we have today:
The "application" is a multi-process train control system that uses the Unix desktop, currently CDE, several motif-based applications and sound,... (8 Replies)
Discussion started by: paz9
8 Replies
LEARN ABOUT OSX
uname
UNAME(1) BSD General Commands Manual UNAME(1)NAME
uname -- Print operating system name
SYNOPSIS
uname [-amnprsv]
DESCRIPTION
The uname utility writes symbols representing one or more system characteristics to the standard output.
The following options are available:
-a Behave as though all of the options -mnrsv were specified.
-m print the machine hardware name.
-n print the nodename (the nodename may be a name that the system is known by to a communications network).
-p print the machine processor architecture name.
-r print the operating system release.
-s print the operating system name.
-v print the operating system version.
If no options are specified, uname prints the operating system name as if the -s option had been specified.
SEE ALSO hostname(1), machine(1), sw_vers(1), uname(3)STANDARDS
The uname utility conforms to IEEE Std 1003.2-1992 (``POSIX.2''). The -p option is an extension to the standard.
BSD November 9, 1998 BSD