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
21
votes
1 answer

P/Invoke in Mono

What's the current status of Mono's Platform Invoke implementation on Linux and on Solaris?
Dmitry Shechtman
  • 6,548
  • 5
  • 26
  • 25
21
votes
10 answers

Redirect output from sed 's/c/d/' myFile to myFile

I am using sed in a script to do a replace and I want to have the replaced file overwrite the file. Normally I think that you would use this: % sed -i 's/cat/dog/' manipulate sed: illegal option -- i However as you can see my sed does not have…
sixtyfootersdude
  • 25,859
  • 43
  • 145
  • 213
20
votes
8 answers

Solaris Core dump analysis

I use pstack to analyze core dump files in Solaris How else can I analyze the core dump from solaris? What commands can be used to do this? What other information will be available from the dump?
Abu
  • 303
  • 1
  • 4
  • 12
19
votes
9 answers

Installing GCC on Oracle Solaris 11

i recently got Oracle Solaris on my VM to test some code on it, i was unable to install gcc since i dont really know how, i googled alot but all info is about oracle compilers, i needed GCC, any idea where can i get GCC or how to install it? thanks
killercode
  • 1,666
  • 5
  • 29
  • 42
19
votes
4 answers

How to get top output in Solaris machine

Looking for a very simple thing to do in Solaris. I have a solaris box which has lot of zones ( so not only the host box, also the total available including zones ), i would want to see What is the total memory available, used and free. What is…
thegeek
  • 2,388
  • 2
  • 13
  • 10
19
votes
6 answers

JVM OutOfMemory error "death spiral" (not memory leak)

We have recently been migrating a number of applications from running under RedHat linux JDK1.6.0_03 to Solaris 10u8 JDK1.6.0_16 (much higher spec machines) and we have noticed what seems to be a rather pressing problem: under certain loads our…
oxbow_lakes
  • 133,303
  • 56
  • 317
  • 449
18
votes
3 answers

Docker base image with the Solaris operating system

Does anybody know from where I can get docker base image with Solaris OS in it? I tried finding it on Dockerhub but couldn't find one. Please provide me the detail 'dockerhost/namespace/imagename:tag'
UserASR
  • 2,015
  • 4
  • 24
  • 47
17
votes
1 answer

Identifying the preferred IPv6 source address for an adapter

If you have a IPv6 enabled host that has more than one global-scope address, how can you programmatically identify the preferred address for bind()? Example address list: eth0 Link encap:Ethernet HWaddr 00:14:5e:bd:6d:da inet…
Steve-o
  • 12,678
  • 2
  • 41
  • 60
17
votes
2 answers

Getting "Error occurred during initialization of VM"

I have a legacy shell script that is being called by the Autosys job scheduler. In the script they are calling a jar file res="`$JAVA_HOME/bin/java ....`" echo >$res< and I am getting the following error. Error occurred during initialization of VM…
NJMR
  • 1,886
  • 1
  • 27
  • 46
17
votes
1 answer

gcc: undefined reference to _mcount (gprof instrumentation)

When compiling my c++ sources with the -pg option to inject gprof profile instrumentation code the compile fails with the undefined reference to _mcount error. Without this option everything compiles (and runs) fine. What is wrong in my case?…
MRalwasser
  • 15,605
  • 15
  • 101
  • 147
17
votes
8 answers

How do you use newgrp in a script then stay in that group when the script exits

I am running a script on a solaris Box. specifically SunOS 5.7. I am not root. I am trying to execute a script similar to the following: newgrp thegroup << FOO source .login_stuff echo "hello world" FOO The Script runs. The…
Paul
  • 198
  • 1
  • 9
  • 22
16
votes
4 answers

Setuid bit on python script : Linux vs Solaris

I am running this small python script on both linux and Solaris as a not privileged user : #!/usr/bin/python import os print 'uid,euid =',os.getuid(),os.geteuid() Before running, the setuid bit is set on the script (not on python interpreter)…
Eric
  • 4,821
  • 6
  • 33
  • 60
16
votes
8 answers

Paramiko and exec_command - killing remote process?

I'm using Paramiko to tail -f a file on a remote server. Previously, we were running this via ssh -t, but that proved flaky, and the -t caused issues with our remote scheduling system. My question is how to kill tail when the script catches a…
victorhooi
  • 16,775
  • 22
  • 90
  • 113
16
votes
4 answers

cannot find -lmysqlclient

I'm trying to compile a C++ program and one of the classes uses . g++ is not able to find the libraries would be my guess. The command i use to compile is - g++ c1.cpp c2.cpp c3.cpp c4.cpp -o c4 -lm -lmysqlclient c3.cpp is the file that needs…
K_U
  • 15,832
  • 8
  • 26
  • 29
15
votes
5 answers

Can a socket be closed from another thread when a send / recv on the same socket is going on?

Can a socket be closed from another thread when a send / recv on the same socket is going on? Suppose one thread is in blocking recv call and another thread closes the same socket, will the thread in the recv call know this and come out safely? I…
Jay
  • 24,173
  • 25
  • 93
  • 141