Questions tagged [solaris]

Solaris is a commercial Unix operating system sold by Oracle, previously (before 2010) from Sun Microsystems. It can run on SPARC or x86 hardware.

Solaris is a Unix operating system originally developed by Sun Microsystems as a successor to SunOS. Oracle Solaris, as it is now known, has been owned by Oracle Corporation since Oracle's acquisition of Sun in January 2010. OpenSolaris (the open-source version of Solaris) was abandoned at that point.

Solaris is known for its scalability, especially on SPARC systems (), and for originating many innovative features such as DTrace, ZFS and Time Slider. Solaris supports SPARC-based and x86-based workstations and servers from Sun and other vendors.

Resources

2780 questions
8
votes
7 answers

grep match with string1 OR string2

I want to grep 2 patterns in a file on Solaris UNIX. That is grep 'pattern1 OR pattern2' filename. The following command does NOT work: grep 'pattern1\|pattern2' filename What is wrong with this command? NOTE: I am on Solaris
user742004
  • 141
  • 1
  • 2
  • 4
8
votes
3 answers

How to detect that arrow key is pressed using C under Linux or Solaris?

What is the best way to detect in a C program that arrow key is pressed under Linux or Solaris? As I know there is no standard C function that can do it. I don't want to use int86 function. I need to do it in a portable way. Edit: I am asking about…
Bahaa Zaid
  • 1,449
  • 2
  • 16
  • 22
8
votes
6 answers

How to discover the machine type?

I would like to discover the machine architecture type of a big number of machines. I have the hostname of each machine. The machines have Debian 4 linux, SunOS 9, SunOS 10 or Apple Darwin. All are unix-like, but with minor differences. I would like…
Giovanni Funchal
  • 8,934
  • 13
  • 61
  • 110
8
votes
3 answers

Meaning of SIZE and RSS values in prstat output

Can somebody give some clear explanation of the meaning of the SIZE and RSS values we get from prstat in Solaris? I wrote a testing C++ application that allocates memory with new[], fills it and frees it with delete[]. As I understood, the SIZE…
abigagli
  • 2,769
  • 4
  • 29
  • 32
8
votes
2 answers

How to install R on Solaris on a VirtualBox virtual machine?

This Q&A is a response to this comment. The answer to the question in the comment is not trivial, is too big for a comment, and not suitable as an answer to the question in that thread (answering my own question is officially encouraged). If you…
Ben
  • 41,615
  • 18
  • 132
  • 227
8
votes
1 answer

How to build Qt 5.2 on Solaris 10?

The Qt page does not list pre-compiled Qt 5 packages for Solaris. Searching around, it does not seem to be included in the popular package repository OpenCSW, either. Some google hits suggest that building Qt 5 under Solaris involves some work under…
maxschlepzig
  • 35,645
  • 14
  • 145
  • 182
8
votes
12 answers

getting a previous date in bash/unix

I am looking to get previous date in unix / shell script . I am using the following code date -d ’1 day ago’ +’%Y/%m/%d’ But I am getting the following error. date: illegal option -- d As far as I've read on the inetrnet , it basically means I am…
misguided
  • 3,699
  • 21
  • 54
  • 96
8
votes
2 answers

grep regex to perl or awk

I have been using Linux env and recently migrated to solaris. Unfortunately one of my bash scripts requires the use of grep with the P switch [ pcre support ] .As Solaris doesnt support the pcre option for grep , I am obliged to find another…
Gil
  • 1,518
  • 4
  • 16
  • 32
7
votes
3 answers

What are possible reason for socket error EINPROGRESS in solaris?

What are possible reason for socket error EINPROGRESS in Solaris? How we can check the root cause? tcp api is : connect
Syedsma
  • 1,183
  • 5
  • 17
  • 22
7
votes
2 answers

How can a Solaris process read its own symbol table?

I have a Solaris process, which is a C++ application that is loaded by ld with a few .so libraries. This application has a function that gets a return address in the calling function and then tries to determine the name of the said calling…
evolvah
  • 625
  • 4
  • 15
7
votes
2 answers

Java Solaris NIO OP_CONNECT problem

I have a Java client that connects to a C++ server using TCP Sockets using Java NIO. This works under Linux, AIX and HP/UX but under Solaris the OP_CONNECT event never fires. Further details: Selector.select() is returning 0, and the 'selected…
trojanfoe
  • 120,358
  • 21
  • 212
  • 242
7
votes
3 answers

Solaris GDB: Howto pause execution?

I am using GDB to debug a closed source program on Solaris 10 x86. I attach gdb to the program and continue execution, however when I want to pause execution later to examine some memory I cant. When I press CTRL-C it only prints ^C instead of…
Jack
7
votes
6 answers

C libraries are distributed along with compilers or directly by the OS?

As per my understanding, C libraries must be distributed along with compilers. For example, GCC must be distributing it's own C library and Forte must be distributing it's own C library. Is my understanding correct? But, can a user library compiled…
Jay
  • 24,173
  • 25
  • 93
  • 141
7
votes
9 answers

Map sd?/sdd? names to Solaris disk names?

Some commands in Solaris (such as iostat) report disk related information using disk names such as sd0 or sdd2. Is there a consistent way to map these names back to the standard /dev/dsk/c?t?d?s? disk names in Solaris? Edit: As Amit points out,…
Erlend Leganger
  • 395
  • 1
  • 2
  • 8
7
votes
0 answers

ARC metadata is evicting too early on Solaris ZFS

I have a Solaris 11.2 server running ZFS with the following configuration; 6x 4TB HDDs in raidz2 (approx 14TB usable) 16GB RAM (ECC) E5-2670 (16 cores) No ARC or L2ARC No zfs settings tweaks Both read and write performance are blazing fast…
SleepyCal
  • 5,739
  • 5
  • 33
  • 47