Questions tagged [sunos]

SunOS is a version of the Unix operating system developed by Sun Microsystems for their workstation and server computer systems. The SunOS name is usually only used to refer to versions 1.0 to 4.1.4 of SunOS. These versions were based on BSD, while SunOS version 5.0 and later are based on UNIX System V Release 4, and are marketed under the brand name Solaris.

SunOS is a version of the Unix operating system developed by Sun Microsystems for their workstation and server computer systems. The SunOS name is usually only used to refer to versions 1.0 to 4.1.4 of SunOS. These versions were based on BSD, while SunOS version 5.0 and later are based on UNIX System V Release 4, and are marketed under the brand name Solaris.

183 questions
0
votes
2 answers

Difference between structures ttysize and winsize?

I have following code to get width and height of screen in Linux. #ifdef TIOCGSIZE struct ttysize ts; ioctl(STDIN_FILENO, TIOCGSIZE, &ts); cols = ts.ts_cols; lines = ts.ts_lines; #elif defined(TIOCGWINSZ) struct winsize ts; ioctl(STDIN_FILENO,…
gau1991
  • 129
  • 1
  • 5
0
votes
1 answer

Linux command not working when changing servers

I'am currently changing our system to use another server for getting file (files generated for tracking something, not important). This system is based on java, and the code for getting these files are using Linux commandos. The code for getting…
Jinxen
  • 83
  • 1
  • 8
0
votes
1 answer

How do I make a hash with the output of kstat -p using Perl?

I am working so some stuffs where I need to get some information using kstat -p. So I am thinking to create a hash variable with all output of kstat -p. Sample output from kstat -p cpu_stat:0:cpu_stat0:user 18804249 To access…
Space
  • 7,049
  • 6
  • 49
  • 68
0
votes
1 answer

Could not open include file error

I am trying to compile a C++ application on SUN server using the compiler Sun C++ 5.9 SunOS_sparc Patch 124863-01.However i am getting an compilation errror saying that the compiler could not include header file.However the header file exist on the…
jamel
  • 303
  • 2
  • 7
  • 16
0
votes
2 answers

How to convert netstat -in output on Sunos

On Sunos netstat -in gives me below output. Name Mtu Net/Dest Address Ipkts Ierrs Opkts Oerrs Collis Queue lo0 832 127.0.0.0 127.0.0.1 20026 0 20026 0 0 0 nxge0 100 192.168.0.0 192.168.0.31 40957 0 …
Space
  • 7,049
  • 6
  • 49
  • 68
0
votes
1 answer

scp recursively directories on SunOS

I have encountered a small issue with SCP(and also rsync). I need to copy certain files from server A(running SunOS 5.8) to server B(running SunOS 5.10). First, I get the list of files(several hundred) via ssh and find FILES=`ssh user@remote find…
Mike Nagy
  • 137
  • 1
  • 11
0
votes
2 answers

Run time error in C program in ubuntu. But executed in well SunOS

I executed the below C program which prints a the primes below the given N (N < 4294967295). It went fine when executed in SunOS, but I'm getting Segmentation fault (core dumped) when running in Ubuntu(compiled it with gcc compilter). Can anyone…
0
votes
0 answers

Websphere 7 application needs to be deployed more than once to work on SunOS

I have an ear file for my work, when installing the ear file on on WAS7 / SunOS it gets installed successfully and when trying to access the app i get a blank page, after reinstalling the app 2-3 times the application works. tested the same ear…
Max
  • 711
  • 1
  • 10
  • 27
0
votes
1 answer

How can I use Solaris::Kstat on Solaris 5.10?

I am looking to find the SunOS system details using Kstat. I have found Solaris::Kstat module in CPAN but this only supports Solaris 2.5.1, 2.6 & 2.7. The Sun developer's site mentions a Sun::Solaris::Kstat which I have not found in CPAN. Can anyone…
Space
  • 7,049
  • 6
  • 49
  • 68
0
votes
1 answer

using egrep for regular expression check on String

I have to validate a String against a regular expression for a date format YYYYMMddhhmmss. I have tested the below code: temp=echo $file_timestamp | egrep…
Sumit Sahu
  • 11
  • 2
0
votes
1 answer

Compiling LAPACK on Solaris

I'm following the suggestions on Does Python SciPy need BLAS? to install scipy locally to my home directory on SunOS (5.10 Generic_147440-12 sun4u sparc SUNW,Sun-Fire-V440). But although I have Python 2.7 working, numpy installed, and (I think) the…
xnx
  • 24,509
  • 11
  • 70
  • 109
0
votes
4 answers

C++ app on SunOS has a memory leak. How to find it?

i just landed on SunOS: $ uname -a SunOS sunfi95 5.9 Generic_122300-13 sun4u sparc SUNW,Sun-Fire-880 and have Sun studio: $ CC -V CC: Sun C++ 5.8 2005/10/13 How I can find memleaks in code? (dbx is not a option in this case). Valgrind does not…
teZeriusz
  • 81
  • 2
  • 8
0
votes
1 answer

find command with newer option does not work at milliseconds level

I have created 3 files in SunOS, 2 of which have creation time varying in milliseconds. The 3rd file varying by a second. find -newer does not seem to take milliseconds into consideration. bash-3.2$ touch -d 2012-11-20T12:59:00.1234…
Sandeep
  • 67
  • 1
  • 6
0
votes
4 answers

Java memory allocation performance (SunOS vs Windows)

I have a very simple unit test that just allocates a lot of Strings: public class AllocationSpeedTest extends TestCase { public void testAllocation() throws Exception { for (int i = 0; i < 1000; i++) { long startTime =…
Andrey Adamovich
  • 20,285
  • 14
  • 94
  • 132
0
votes
1 answer

How to install mysqli on SunOS

I'm doing a school project using Drupal; and the school give us a SunOS server to use. the detailed information after "uname -a" is: SunOS SERVER-NAME 5.10 Generic_141414-07 sun4v sparc SUNW,Sun-Fire-T200 I followed the command from lecturer…
songyy
  • 4,323
  • 6
  • 41
  • 63