solaris

Solaris: Programmatic interface to ifconfig?

I'm looking for a programmatic interface to the Solaris ifconfig(1M) command. Apparently Linux has the getifaddrs(3) command, but as far as I can tell this has not been ported to Solaris. Short of attempting to use the code at the link above, is there any way to determine ifconfig(1M)-type data (network interface presence, state, etc.)...

On solaris, is there a command to get the Ethernet Card MAC Address without being root

On Solaris, is there a command that I can run to get the MAC address of an ethernet card without running "/sbin/ifconfig -a" as root. Running /sbin/ifconfig -a as a non root user leaves out the MAC address - go figure! Thanks, Paul ...

How to make gcc on SUN calculate floating points the same way as in Linux

I have a project where I have to perform some mathematics calculations with double variables. The problem is that I get different results on SUN Solaris 9 and Linux. There are a lot of ways (explained here and other forums) how to make Linux work as Sun, but not the other way around. I cannot touch the Linux code, so it is only SUN I can...

Deadlock in c++ on solaris

please anybody suggest me how to check the deadlock on solaris with command pstack ? Regards ...

Installing software on Solaris

I'd like to install several unix utilities (incl. xmlstarlet, wget) on a solaris 10 machine which I don't have root access to (obviously, I have a user account). I'm not that experienced with solaris and am wondering if I can simply get hold of an uber binary for each utility I need and just place this in my home directory? Is this feasi...

Zend Framework - Deny access to folders other than public folder

All, I have the following Zend application structure: helloworld - application - configs - controllers - models - layouts - include - library - public - .htaccess - index.php - design - .htaccess Currently, if the user visits, http://localhost, my .htaccess files above make sure, the request is route...

Any book that covers internals of recent versions of Unix OS

This summer I'm getting into UNIX (mostly *BSD) development. I've graduate level knowledge about operating systems. I can also understand the code & read from here and there but the thing is I want to make most of my time. Reading books are best for this. From my search I found that these two books "Unix Internals: The New Frontiers"...

How do I increase the stack size for executables built with scons on Solaris?

Hi there, I am working with scons and am trying to compile a program that require bigger stack size but I dont know how to extend the stack size. This is on a solaris machine, and we use scons to compile our projects. Anyone know how to do this ? ...

Solaris linker verbosity options (ld -D tokens)

When linking with ld (SunOS 5.10, Sun Studio 12), what is the list of possible tokens that are accepted by ld -D? Neither man ld nor ld --help reveals the proper list. Namely, I need full information on the missing symbols (not just the demangled name of a C++ function). ...

How to test your code on a machine with big-endian architecture?

Both ideone.com and codepad.org have Little-Endian architechtures. I want to test my code on some machine with Big-Endian architechture (for example - Solaris - which I don't have). Is there some easy way that you know about? ...

Need info on "set endian" on solaris machine

Hi, Can any 1 please tell or show the difference in the behaviour of any program before and after I "set endian little" in gdb on solaris machine? I want to know the effect of changing it. Thanks! ...

solaris modular debugger - mdb - examples

Hi Im looking for user-friendly manual for solaris debugger - mdb, where i can find examples of examinig stack. I was googling for a while but all i could find was official manual and only few private pages with not so many informations. Thx in advance for any help ! ...

String Manipulation in Bash

Hello- I am a newbie in Bash and I am doing some string manipulation. I have the following file among other files in my directory: jdk-6u20-solaris-i586.sh I am doing the following to get jdk-6u20 in my script: myvar=`ls -la | awk '{print $9}' | egrep "i586" | cut -c1-8` echo $myvar but now I want to convert jdk-6u20 to jdk1.6.0_2...

Changing the contents of a file with sed in Solaris 10

Hello, I have a bash script that I want to change all occurrences of jdk1.5.0_14 with jdk1.6.0_20 in a file I have the following piece of code : #!/bin/bash myvar="jdk1.6.0_20" sed "s/jdk1.*/$myvar/g" answer_file.1 > answer_file.2 However I have the following information in answer_file.1 (pasting the relevant part): JDKSelection.d...

apache server is confusing with HTTPService responses

Hi, This is a very weird problem. I have an apache server on solaris with php. I wrote two php scripts that return values. Sometimes, when I run the php scripts urls on the same time, the apache server returns the result of one php script to the other php page. I tried to minimize the problem by write two php script: 1. hello.php - prin...

Minimizing Java Thread Context Switching Overhead

I have a Java application running on Sun 1.6 32-bit VM/Solaris 10 (x86)/Nahelem 8-core(2 threads per core). A specific usecase in the application is to respond to some external message. In my performance test environment, when I prepare and send the response in the same thread that receives the external input, I get about 50 us advanta...

Is my Perl script grabbing environment variables from "someplace else"?

On a Solaris box in a "mysterious production system" I'm running a Perl script that references an environment variable. No big deal. The contents of that variable from the shell both pre- and post-execution are what I expect. However, when reported by the script, it appears as though it's running in some other sub-shell which is clobb...

How to set a default value in an IF snippet?

Hello, I have the following snippet in a bash script written in Solaris 10: printf "port(389)=" read PORT if [[ $PORT == "" ]]; then PORT=389 fi What I am trying to get that if the user hits the enter key, the Port should be set to 389. The snippet above does not seem to be working. Any suggestions? ...

Coolstack MySQL Crash Unable to Restart

Environment: Solaris 10 This mysql server has been up and running for 6 months now. Today all of a sudden it crashed. When typing 'mysql' as user it gives the error MYSQL" Error 2002 (HY000): Can't Connect to Local MySQL server though socket '/tmp/mysql.sock' The server try to open mysql, it stays open for 9-10 seconds and restarts...

Where i can get Binary for Apache http server 2.2.15 for solaris

I need to install apache http server 2.2.15 in solaris 9 .But in apache site ,only source is available for solaris. Please help me to find binary distribution for solaris 9? If i have to compile the source to binary for solaris,tell me how to compile the source for solaris 9? ...