Running on Solaris 10, I am having problems when I hit a LOG.debug statement using an Apache Log4j logger. The basic scenario is demonstrated in the following code block:
public class MyClass {
private static final Logger LOG = Logger.getLogger(MyClass.class.getName());
private LinkedHashMap<String, String> myMap =
new ...
I have a situation where I need to pick up files from a directory and process them as quickly as they appear. The process feeding files into this directory is writing them at a pretty rapid rate (up to a thousand a minute at peak times) and I need to pull them out and process them as they arrive.
One problem I've had is knowing that my ...
Just witting a simple shell script and little confused:
Here is my script:
% for f in $FILES; do echo "Processing $f file.."; done
The Command:
ls -la | grep bash
produces:
% ls -a | grep bash
.bash_from_cshrc
.bash_history
.bash_profile
.bashrc
When
FILES=".bash*"
I get the same results (different formatting) as ls -a. ...
Good Evening,
I am pretty new to Unix so maybe this mini project is too ambitious. Hoping someone could point in in the right direction.
Working in a cubicle and I can't see how light it is outside. In general I use a yellow terminal in the morning (sunny) and a black/green past 3:00 (night).
What I would like to do (partly just...
Any idea about cp: cycle detected: Error on Solaries. I am getting this while I am copying data from one directory to the another directory.
...
I am working on a script to create files basically replica of some tables and ftp those files to the remote machine.there is one more requirement to delete the 3days old files on the remote machine before dumping these files.
I need help in writing the ksh for deleting 3 days old files on a remote machine using ftp
...
I have Collabnet Subversion 1.6.9, Trac 0.11.6, Python 2.6.1 from Sun's Webstack, Sunfreeware.com's swig 1.3.36 running on Solaris 10 5/09 SPARC.
I have these error code when open Trac page.
Serving on 0.0.0.0:8000 view at http://127.0.0.1:8000/
/opt/webstack/python/lib/python2.6/site-packages/libsvn/fs.py:7: RuntimeWarning: Python C A...
Using this function:
perl -e 'use Time::Local; print timelocal("00","00","00","01","01","2000"),"\n";'
It will return an epochtime - but only in GMT - if i want the result in GMT+1 (which is the systems localtime(TZ)), what do i need to change?
Thanks in advance,
Anders
...
Calling resource.getrusage() from Python returns a 0 value for resident set size on Solaris and Linux systems. On Linux you can pull the RSS From /proc//status instead. Does anybody have a good way to pull RSS on Solaris, either similar or not to the Linux workaround?
...
I recently came across this crazy script bug on one of my Solaris machines. I found that cut on Solaris skips lines from the files that it processes (or at least very large ones - 800 MB in my case).
> cut -f 1 test.tsv | wc -l
457030
> gcut -f 1 test.tsv | wc -l
840571
> cut -f 1 test.tsv > temp_cut_1.txt
> gcut -f 1 test.tsv > tem...
In solaris how to detect broken socket in send() call? i dont want to use signal.
i tried SO_NOSIGPIPE and MSG_NOSIGNAL but both are not available in Solaris and my program is getting killed with "broken pipe" error.
Is there any way to detect broken pipe?
Thanks!
...
I have dynamic linked binary for SPARC/Solaris and want to start in on SPARC linux. Is it possible?
I have sources of the program, but when I compile it with modern GNU Fortran it does not work and do an infinite loop.
Program is computation mathematics and I can't solve such loop easy.
...
Hello
I have a file, compiled by SUNWspro (Sun pro complier) for SPARC/Solaris. How can I detect version of compiler used to build this binary?
...
I am trying to install SIPp on solaris sparc 5.10. when I am firing a "make"
command, it is giving me an error.
lake42.rice.iit.edu]/> make
make: Fatal error in reader: Makefile, line 22: Unexpected end of line seen
I am stuck at this point and not getting any help in web. Can you please help me
out so that I can move ahead in installin...
I have used python2.6 + MySQL on Windows and there are binaries available.
I wanted to get the whole thing working on Solaris
Hence got the Mysql-Python package from here
I had to get the setuptools installed which is done.
Exploded the MySQL-python-1.2.3c1
When I this
/jython2.5.1/jython setup.py build
Error -
`File "/opt/somepat...
Another socket problem.
In my client code, I am sending some packet and expectign some response from the server side:
send()
recv() <-- it is blocking
Immediately after send(), the server crashes and rebooted itself. In the meantime the recv() is waiting. But even after the server is up, the receive call is hanging. I have ad...
On Solaris 10, I'm using JDK 1.5.0_22 and when I run any of the JDK executables (javac, native2ascii, javadoc, etc) in the JDK/bin directory that require tools.jar to run, I get this error (run with and without arguments):
Exception in thread "main" java.lang.NoClassDefFoundError: com/sun/tools/javac/Main
JRE executables in the bin dir...
Is there a command which can tell me whats in the Solaris run queue?
I can get a count using vmstat, but I need to know what processes/threads are in there.
...
I'm running a Perl script (both with 5.8.4) on two different machines (one Solaris 5.10, the other OpenSolaris 5.11). The output of the two scripts differs in the following way:
Solaris 5.10
$ perl myscript.pl
is' £ ä º <ä ¼ sa ... ³ ä º žÃ ... ¬ å ¸ ç ¬ ¬ ä º ¤ § œâ is œâ ¡ä ¸ ‡ å ... æœ ¬ æœ ¬ å ¸ È, ¡ä »½ çš" å ... ¬ ...
We've installed mercurial 1.4.1 and python 2.6.2 on a solaris 8 box. Now some hg commands work as expected, others fail.
I was able to initialize a repository (hg init) and add a file (hg add) but the committing (hg commit) leads to an error message:
abort: could not import module found!
I need a hint where to look - I'm not a python...