solaris

How to use Event notification in Solaris 10 when a directory change

I read the following page: Robert Benson's article on ECF developers.sun.com/solaris/articles/event_completion.html I also read the Solaris man pages but they are not very clear of how to use event notifications for directories. For example, If I add a new file into a directory, I would like to get some notification of that event. I f...

fork system call cause segmentation fault

I have written a multithreaded program and the thread was implemented in such a way that as to fork a child process and through this child process several modules were loaded. During my testing at one time, i find process (running in solaris platform) aborts one time and it creates a segementation fault. On going through the dump file, ...

Vim hanging after parsing .vimrc (even a blank one) file on Solaris 10

Hello all, I am having a problem with vim 7.2 hanging (for about 10 seconds) after it parses the .vimrc file. I had a similar issue in the past with tcsh on linux, but it was resolved by setting TERM to xterm-color. The same does not resolve the issue here. Any idea what may be causing this? $ env USER=redacted LOGNAME=redacted HOME=...

migrating Solaris to RH: network latency issue, tcp window size & other tcp parameters

Hello I have a client/server app (Java) that I'm migrating from Solaris to RH Linux. since I started running it in RH, I noticed some issues related to latency. I managed to isolate the problem that looks like this: client sends 5 messages (32 bytes each) in a row (same application timestamp) to the server. server echos messages. clie...

c vs c++ on solaris 9 platform question

Hi, I have a program that I am sharing with a third party. I will be providing a bin executable to them. It is written in c++ but uses some c as well. they are suggesting that it needs to be c only. Do you guys think this will be a problem since I will be compiling and building it on a sparc station that will somewhat match their syste...

OCIError on 'require'; permissions issue?

I've just recently started learning/using Ruby at work. I've got a super-simple test script that just connects to our Oracle 10g database, runs a select, and 'puts' the results to the screen. This is on a Solaris 10 server. If I run the script as the 'apps' user (the system user that runs our automated scripts), the script runs fines....

How to write a shellscript that will programmatically kill a process?

I have been using the following way to kill a process manually ps -ef | grep process kill -9 process id of process start the process again But i think how to do it programmitically as in write in a shellscript i just have to run e.g. ./restartProcess.sh Thanks ...

Linux implementation of Solaris doors

I am porting some Solaris code to Linux. This code uses the Solaris-specific door functions. Is there a Linux equivalent? I found a couple of examples but they dont't appear to have been updated for many years. http://www.rampant.org/doors http://sourceforge.net/projects/ldoor Thanks for any help. NickB ...

32-bit Java on 64-bit OS: is there a limit to number of JVMs?

I have a Solaris sparc (64-bit) server, which has 16 GB of memory. There are a lot of small Java processes running on it, but today I got the "Could not reserve enough space for object heap" error when trying to launch a new one. I was surprised, since there was still more than 4GB free on the server. The new process was able to succe...

porting from solaris to linux(i.e sun command)

Hi, now i am working in porting (i.e solaris to linux)project..i am using one command i.e sun command in solaris ,but i am not able to find equivalent command in linux .if knows anyone please tell me following is the man page for sun commamd in solaris(i.e man sun) User Commands machid(1) NAME...

decompile third-party shared libraries in solaris

Is it possible to decompile third-party shared libraries built for solaris into C code? ...

PS command to get memory, user, process info on IBM AIX and SunOS Solaris

I am looking for best PS command to get as much info as possible, mainly memory info like SZ, RSS with userid, pid, complete command/process. I have two servers IBM AIX and SunOS solaris. I am OK to have two different commands for two servers. I have tried "ps v", "ps al", "ps aux" on AIX, but looking for command that gives more info...

random number generator dev/random

I read that the random number generator dev/random on Mac and Solaris includes 160 bits of entropy. What can I do, if I need more entropy, for example, 200 bits? Thanks in advance ...

TCP performance differences between RH Linux and Solaris in java ?

While comparing java TCP socket performance between RH Linux and Solaris, one of my test is done by using a java client sending strings and reading the replies from a java echo server. I measure the time spent to send and receive the data (i.e. the loop back round trip). The test is run 100,000 times (more occurrence are giving similar ...

porting from solaris to linux

Hi,now i am working in porting from solaris to linux..i want to find the equivalent command of priocntl(it is solaris command) in linux....pls tell me if any one knows reg ven ...

Is there a way to speed up C++ compilation times in Solaris Sun Studio 12?

Since I am compiling my C++ code on a very server box (32 or 64 cores in total), is there a way of tweaking compiler options to speed up the compilation times? E.g. to tell compiler to compile independent .cpp files using multiple threads. ...

Atomic load/store for OSs other than BSD?

Among the atomic operations provided by BSD (as given on the atomic(9) man page), there are atomic_load_acq_int() and atomic_store_rel_int(). In looking for the equivalent for other OSs (for example, by reading the atomic(3) man page for Mac OS X, the atomic_ops(3C) man page for Solaris, and the Interlocked*() functions for Windows), th...

get week of year from day of year

Given day of year, how can I get the week of year by using Bash? ...

Using Perl on Solaris, how do I import a C (.so) library?

Is there any function to import a C library (.so) file in the Solaris operating system? In Windows I can use Win32::API, how about Solaris? Thank you. ...

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 the total swap available, used, and free. Am a linux guy, top gives me everything in Lin...