solaris

Tab and return character sequences for solaris ?

Is tab character in "\t" or "\r\t" in Solaris ? And the new line character sequence \n or \r\n ? thanx ...

Is is possible to use DTrace to view the arguments passed to strncpy?

I know I could write an interposer to watch the arguments being passed to the strncpy library call, but it seems like this should be easy to do with DTrace. ...

Problem compiling gcc 4.4.0 on OpenSolaris 2009.6

I am attempting to compile gcc 4.4.0 on opensolaris 2009.6 Currently in the box (which is a AMD 64bit machine), I have the gcc 3.4.6 installed. I unpacked the gcc 4.4.0 tarball. I set the following env variables: export CXX=/usr/local/bin/g++ export CC=/usr/local/bin/gcc Then I ran "configure && make" and this is the error messag...

How do I get the TeamWare filemerge GUI to run on OpenSolaris?

How do I get the TeamWare filemerge GUI to run on OpenSolaris? % filemerge ld.so.1: filemerge: fatal: libtt.so.2: open failed: No such file or directory Killed TeamWare is no longer a supported source management system, but it's is still widely used in the OpenSolaris project, and within Sun Microsystems. ...

deploying ruby on rails applications on solaris 10

Is there anyone out there that is currently deploying rails applications on a solaris 10 box? If so can you give me a brief run down of what you had to do to get it up and going? I am a web developer and I am working in a closed environment where they are using sun solaris servers, all of which are for internal use only behind firewall....

How does _XPG4_2 and other defines work on Solaris?

On Solaris, in order to get the msg_control field in struct msghdr and have IPV6_TCLASS I seem to need to define _XPG4_2 and __EXTENSIONS__. It seems to work if I just define these to 1 before including anything: #if defined (__SVR4) && defined (__sun) # define _XPG4_2 1 # define __EXTENSIONS__ 1 #endif Should I do it this way? Do I...

Repeat Unix Command in Java

Is there a way to periodically run a Unix command (ps in my case) in Java? The loop I wrote: while( this.check ) { try { ProcessBuilder pb = new ProcessBuilder("ps"); Process proc; System.out.println(" * * Running `ps` * * "); byte[] buffer; String input; ...

BeanStalkd on Solaris doesnt return anything when called from the python library

i am using Solaris 10 OS(x86). i installed beanstalkd and it starts fine by using command "beanstalkd -d -l hostip -p 11300". i have Python 2.4.4 on my system i installed YAML and beanstalkc python libraries to connect beanstalkd with python my problem is when i try to write some code: import beanstalkc beanstalk = beanstalkc.Connectio...

How to set TCP_NODELAY on BSD socket on Solaris?

I am trying to turn off Nagle's algorithm for a BSD socket using: setsockopt(newSock, IPPROTO_TCP, TCP_NODELAY, (char*)&flag, sizeof flag); but the compiler claims TCP_NODELAY hasn't been seen before: error: `TCP_NODELAY' undeclared (first use this function) This is the full list of includes for the file this is in: #include <arpa...

SIGALRM while sleeping on Solaris 9

I'm running into a bit of a weird error while running Perl in a chroot environment on Solaris 9 (Sparc). We are using a custom Perl, but it's almost exactly Perl 5.8.7, and this version has been running for years on various platforms including Solaris 8-10. The following code is pretty straightforward: #!/usr/bin/perl use strict; use...

mq_unlink setting errno to EEXIST

I'm using message queues for inter-thread communication in a server. The server was functioning as expected on Thursday evening. When I picked the project back up on Monday, it was unable to create two of the six queues in use, citing that they were already open (O_EXCL is set). This should not have been the case, but nevertheless I a...

pthread_cond_timedwait linking error with clock_gettime on Solaris 10

Hello, I have a bit of code which used pthread_cond_wait which looks like this: struct timespec ts; clock_getttime(CLOCK_REALTIME, &timS); ts.tv_sec += delay; pthread_mutex_lock(&a_mutex); pthread_cond_timedwait(&thread_cond, &a_mutex,&timS); pthread_mutex_unlock(&a_mutex); But I get a linker error on compilation, undefine...

Simple Unix question - Configure

I'm using Solaris 10, ksh. Whenever I do a ./configure, I get the error "ksh: ./configure: not found" When I do a "where configure", nothing is found. How do I "install configure"? ...

How to deal with ECONNREFUSED for connect?

We have a process hanging, and the truss shows it also tries to connect but failed with error ECONNREFUSED. The man page says the following, but why it got rejected again and again? ECONNREFUSED The attempt to connect was force- fully rejected. The calling program shoul...

How to get the glyph size of a font?

Under Solaris 8, CDE, I want to write a script that displays two or more applications on a screen, with a 5% margin. The method depends on the -geometry argument, which we're ok with. This needs to be able to be resolution independent, and that's turning out to be a problem. Some of the applications (dtterm/xterm), measure the -geometry...

JDBC Connection to SQL Server 2000 reset randomly on Solaris server

Hey all, I have the following method being called in a Java EE web application. public static void submitToPending() { Db db; ResultSet rs; try { db = new Db("Database.properties"); rs = db.issueQuery(getDescriptorList()); while (rs.next()) { db.insertApplicationData(rs.get...

SSI Jboss not including html (context issues)

Hi I hope that someone out there could give a clue on where to here. Here's the problem. I have enabled SSI in some jboss under Solaris, I have the application web.xml configured as follows: <filter> <filter-name>ssi</filter-name> <filter-class> org.apache.catalina.ssi.SSIFilter </filter-class> <init-param> <param-name>conte...

Dynamic changes to thread stack size in Solaris 9 ?

Hello, I am looking for a configurable / tunable on Solaris 9 through which I can change the default thread stack size without recompiling the code to use "pthread_attr_setstacksize" For example on HPUX 11.11 / 11.23 the environment variable "PTHREAD_DEFAULT_STACK_SIZE" can be exported (available via HPUX patches PHCO_38307 / PHCO_3895...

Runtime.exec causes duplicate JVM to hang indefinitely until killed (Solaris 10)

All, We are running a J2EE application on WebLogic server 9.2 MP2 with a jrockit 64-bit JVM (27.3.1) on Solaris 10. We call use runtime.exec to call an executable called jfmerge to create PDF documents. We have found that in Solaris, when runtime.exec is called, a duplicate JVM is temporarily spawned to kick off the jfmerge process. ...

Create ZIP with AES encryption on Solaris

Hi, Is there a way to archive & encrypt a file using AES on Solaris and be able to unencrypt & unarchive it with winzip? Thnaks! Mark ...