solaris

solaris test driver crashes

In solaris I wrote a driver and it is crashing.. But my solaris kernel is also getting crashed because of it. The driver is getting loaded every time the system resets and kernel is dumping core and reboots.. How to stop the loading of the crashing driver whenever the system reboots? ...

How can I monitor memory usage in Perl on Solaris?

I want to monitor memory usage when running a program in perl, so that if the memory used by the current program is more than a threshold, I apply approach A, otherwise, apply approach B. Anyone has any idea? ...

Can't apply unified diff patch on Solaris

For example, if I have two files: file1: This is file 1 and file2: This is file 2 and create patch with the following command: diff -u file1 file2 > files.patch result is: --- file1 Fri Aug 13 17:53:28 2010 +++ file2 Fri Aug 13 17:53:38 2010 @@ -1,1 +1,1 @@ -This is file 1 +This is file 2 Then if I try to apply t...

How to log all commands run By system() System Call

Hi, I am trying to debug a C++ application which invokes many command line applications such as grep, etc through a the system() system call. I need to see all the commands the application is executing through the system() call. I tried to view these commands by enabling history and view the .history file. But these commands are not ex...

I want to benchmark solaris and linux with java

Can anyone point me out to a project out there that I can download and run it and it would load / stress test itself and then provide me with reports? I want the project to be as big as it can and to involve as many components in java as it can, also i need it free... or to some very good already made results over the web that I can alre...

Native events fired when a user logs in to Linux or Mac OS

I am developing a background service which needs to run on Windows, Linux, Mac OS and Solaris. The service is very simple and is to be used to track students logging in and out of university computers. I have almost finished the Windows implementation of the service. I have invested in a number of books around native application / serv...

Solaris /dev/poll support in Perl

Has anyone any experience using /dev/poll (the Solaris equivalent of the Linux epoll method) with Perl, either via a module or directly in their application? There's not much about this subject I can find through Google. ...

How to fix tomcat-native-1.1.16 compile issue on Solaris 10 sparc ?

I get following error: ld: fatal: relocations remain against allocatable but non-writable sections collect2: ld returned 1 exit status *** Error code 1 make: Fatal error: Command failed for target `libtcnative-1.la' Current working directory /yogeshk/tomcat-native-1.1.16-src/jni/native *** Error code 1 The following command caused the e...

How to port in.mpathd from Solaris to Linux?

How to use in.mpathd command in solaris(by using which options)?? ...

Enable History Logging In TCSH Shell

How can I enable logging of all the commands entered in the tcsh shell? I've tried: Setting the $history variable to 100. The $savehist to 99. Set the $histfile to $home/.history Typing commands into the shell doesn't save the commands in the history file. ...

Running JAVA on Windows Intel vs Solaris Sparc (T1000)

Hi I'm trying to test my JAVA app on Solaris Sparc and I'm getting some weird behavior. I'm not looking for flame wars. I just curious to know what is is happening or what is wrong... I'm running the same JAR on Intel and on the T1000 and while on the Windows machine I'm able to get 100% (Performance monitor) cpu utilisation on the Sola...

Why always 6 parameters are shown for functions in a callstack generated on Solaris?

Why do the functions displayed in a callstack generated in Solaris always contain 6 parameters? In most of the cases, the original function will not be having 6 parameters at all. Sometimes I also find, the parameter values displayed are not matching the order in function declaration. Any pointers or links for understanding these conc...

Building 64 bit Perl on Solaris 10: relocation error, value does not fit

I am trying to build 64 bit Perl on Solaris 10: $uname -a SunOS unknown 5.10 Generic_137138-09 i86pc i386 i86pc Current working directory is /local/perl-5.8.8 But it fails with: LD_LIBRARY_PATH=/local/perl-5.8.8:/home/sol64/berkeley-db-4.2.52/lib:/local/gcc-4.1.1-bin/lib/amd64 ./miniperl -Ilib configpm --heavy=lib/Config_hea...

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 would like to know if the behavior will differ between different OS / Platforms. If yes, h...

Migrating and upgrading Oracle form Solaris to Linux, including stored procedures

Hello, We are planning a migration of an Oracle installation from Solaris to Linux. At the same time we will upgrade to latest version of Oracle. There are a few hundred stored procedures that should be migrated as well. Present version is Oracle SE 9.2. We will still use Oracle SE, potentially with RAC. Is there anything that we mu...

ssh connection using RSA key keep asking password

I'm trying to set-up SSH connections without password to many servers, using RSA key. It works well for most of them but one is giving me some trouble. The most common issue I've found in the past is permissions problems on .ssh or authorized_keys on the remote host, but here they seem correct, like this: drwx------ ~/.ssh -rw-r--r-- ...

Java availableProcessors() in a Solaris Container

I'm using a Solaris Container with 2 cores (the physical machine has 32 with 8 threads, each one) to run a jvm (BEA Jrockit). The surprise is: Runtime.getRuntime().availableProcessors() returns 256 rather than 2 or, say 16. That is, the application (a sealed product) believe in 256 cores available, what may cause performance issues. A...

Solaris equivalent of -o option of grep on Linux

hi I run the following on sun Solaris (its run OK on Linux) but not on sun Solaris name="(WORD = (TCPIP = (PROTOCOL = TCP)(WORD = ALIAS_NAME)(PORT = 10234))" echo $name | grep -o "(WORD = (TCPIP = (PROTOCOL = TCP)(WORD = ALIAS_NAME)(PORT = 10234))" grep: illegal option -- o Usage: grep -hblcnsviw pattern file . . . my question which...

sed on sun solaris

hi I am try to do the following on sun solaris sed "/ADDRESS/a \ PROTOCOL" file > NEW_file but I get: sed: command garbled: /ADDRESS/a PROTOCOL why (on linux its work) , is it possible to support syntax that work on linux and on sun lidia ...

awk + fit syntax for SUN solaris & linux

hi all need help about the following when I run the following command on linux its run fine awk -v NAME=MACHINE '$1 == NAME' /etc/hosts but on SUN Solaris I get the following: awk -v NAME=MACHINE '$1 == NAME' /etc/hosts awk: syntax error near line 1 awk: bailing out near line 1 how to fit the following syntax in order to...