solaris

Sniffing/capturing all traffic between Apache and Weblogic on Solaris

We have an application where an embedded device talks to weblogic via Apache. Weblogic and Apache are on the same Solaris server, and we are using the weblogic module for Apache. The communication works over http It does not work over https, although the problem does not appear to be directly related to https (the SSL session is negoti...

How to install 64-bit Python on Solaris?

I am trying to install Python 2.6 on Solaris by building the source on Solaris machine. I installed one this way and it appears that it is 32-bit. I downloaded some source tar ball as Linux or Unix for this purpose. Everything works well but I need 64-bit Python. I looked up the Python download site and there is no separate installatio...

shell script to read and print a part of a string

Good day members, I have an input file which has rows of numerical digits ( close to 2000 rows ) I want to extract out " the second to the eight digit from the right" of every row of the numeric string into a separate file, with the result separated by a comma as shown. Example: input.txt 00000000000001303275310752 000000000000018273...

How can I check the internal attributes of shared objects?

When using HP-UX I can use the chatr utility to report on various internal attributes of a shared library. It will also allow me to modify the internal attributes of shared libraries that I have built. The chatr utility can report, and in some cases modify, such things as: the run-time binding behaviour, the embedded library path list...

Execute Oracle RAC cluster commands via Solaris RBAC?

Executing Oracle RAC cluster management commands such as $ORA_CRS_HOME/bin/crs_start requires root permissions. Using Solaris RBAC (Role-Based Access Control), one can give a non-root user permissions to execute those commands, but the commands still fail internally. Example: $pfexec /opt/11.1.0/crs/bin/crs_stop SomeArg CRS-0259: Owner...

Sun CC: where does symbol "PointZERO" come from? It's not in my source code...

This is a really weird problem. I'm compiling a C++ project on Solaris 10, with cc "Sun C 5.7 2005/01/07" and Bison 1.25 (if that matters). After finally getting the libs built, it still fails to link the executables, with following error message: Undefined first referenced symbol in fi...

git push failing

I created centralized git repositories on my department's sun solaris server using mkdir /var/git/myapp.git cd /var/git/myapp.git git --bare init last week i did this for 3 of our currently under development applications and pushed the master of these applications to the server git remote add origin ssh://myserver.com/var/git/myapp....

How to view call stack with dtrace

Question: How to view call stack, return value and arguments of the simply program below, with dtrace /** Trival code **/ #include <stdio.h> int foo (int *a, int *b) { *a = *b; *b = 4; return 0; } int main (void) { int a, b; a = 1; b = 2; foo (&a, &b); printf ("Value a: %d, Value b...

How do I configure proxy settings for Java in Solaris?

I would like to configure Java proxy settings on Solaris to use a proxy script. I have found instructions for making the settings on a Windows machine using the Java control panel, but am having trouble finding where/how to make the same setting changes on a Solaris Java install. I would like to use the proxy script, rather than manu...

Finding usage of resources (CPU and memory) by threads of a process in unix (solaris/linux)

I have a multi-threaded application(C++ and pthread library) and I will like to know how much resources(CPU and memory) each thread uses. Is there a way to find out these details on Solaris and Linux both or on either of them. ...

SocketTimeoutException on Solaris 9 not being thrown

I have a connection that should recieve a heartbeat every two minutes. However occasionally something happens and the network goes bad. For some reason Solaris believes that the connection is still alive, No IOException is raised locally, however one is raised remotely. I have set a timeout on the socket, and when debugged from a Windo...

capturing stderr and stdout from an already running process in solaris

I've got a process that is currently running (arserverd) that was started by user "remedy". I am able to log in as this user. I would like to capture stderr and stdout without restarting the process. Is this possible? ...

Initial Heap size alloted to a C++ program on UNIX

What is the initial heap size alloted typically to a C++ program running on UNIX based OS ? How is it decided by the g++ compiler if at all it has a role to play in this regard ? ...

When will fcntl in solaris return a value less then -1 for F_SETLKW

Fromt he Mannul of fcntl in solaris, Upon successful completion, value returned for F_SETLKW will be "Value other than -1". But Apache httpd 1.3.41 source code (http_main.c) check if the returned value is positive like: int ret; while ((ret = fcntl(lock_fd, F_SETLKW, &unlock_it)) < 0 && errno == EINTR) { /* nop */ } if (ret < 0) ...

Making a Perl script detect changes in a separate config module also in Perl.

G'day, We have a Perl script that is processing geolocation requests from the head-end servers in a major web site. The script is a broker providing additional business logic interpreting the data returned by a COTS product that provides data for a given IP address, e.g. country, connection type, routing type, carrier, etc. This Geo se...

Zend Framework and string covertation using iconv

Hello, everyone One site was moved to another server where is installed Solaris and other iconv settings. Now, when I validate anythink with "StringLength" function from Zend Framework my scripts fail with this error: Notice: iconv_strlen() [function.iconv-strlen]: Wrong charset, conversion from `UTF-8' to `UCS-4LE' is not allowed in /...

With modern OS schedulers, does it still make sense to manually lock processes to specific CPUs/cores?

I recently learned that sometimes people will lock specific processes or threads to specific processors or cores, and it's thought that this manual tuning will best distribute the load. This is a bit counter-intuitive to me -- I would think the OS scheduler would be able to make a better decision than a human about how to spread the load...

find and replace a string in a set of xml files using shell commands

Hello Members. I have 1000 files in a directory. I'm on a solaris machine I want to replace the string " /example/test/temp " t0 " /testing/in/progress/ in all the xml files in my directory. any pointers will be great. thanks, novice ...

What is the canonical way to make autoconf link in Solaris network libraries?

On Solaris, when you compile a program that uses sockets, you need to link it with -lnsl -lsocket. Many such programs were originally written for Linux (where no extra libraries are needed), and therefore do not check for these libraries in their configure scripts, even though that is a rather simple addition. Something like this (unte...

Cron Solaris 10

Hi. Is there an opportunity to write STDERR message to the /var/cron/log file when a job fails to execute? Or only the return codes can be written? ...