I'm porting an imprecise garbage collector from Windows to MacOS X. In it, it has to scan the stack to identify potential pointers into the heap, and then use those as GC roots. To do this, I need the stack's base as well as it's length. In Windows, this code uses an algorithm similar to what's described here:
http://stackoverflow.com/...
I have an osx executable that runs succesfully. When I run
nm mono | grep UNIX
on it, I get these results:
U _accept$UNIX2003
U _bind$UNIX2003
U _closedir$UNIX2003
U _connect$UNIX2003
U _fwrite$UNIX2003
U _getpeername$UNIX2003
U _getsockname$UNIX2003
U _listen$UNIX2003
U _mmap$UNIX2003
...
I would like to limit the amount of physical memory a process can use without limiting the amount of virtual memory it can use. I am doing this in an effort to measure the behavior of various algorithms under memory pressure, and I need to test their performance with many different amounts of physical memory available - so I either need...
Hi,
I have an application that statically links with version X of a library, libfoo, from thirdparty vendor, VENDOR1. It also links with a dynamic (shared) library, libbar, from a different thirdparty vendor, VENDOR2, that statically links version Y of libfoo from VENDOR1.
So libbar.so contains version Y of libfoo.a and my executable co...
This function take hugh amount of time to calculate the status of a process, beacuse every time it has to ssh into the machine and find the status of a process.
I only have four machines and around 50+ process to monitor and the details are mentioned into configDaemonDetails.txt
like:
abc@sn123|Daemon_1|processname_1
abc@sn123|Daemon_...
I've written a wrapper program for mailx using perl that allows me to easily add attachments and do some other nifty things that were a little frustrating to accomplish with mailx.
In the first few lines I have:
use strict;
use warnings;
use Getopt::Long;
my ( $to, $from, $subject, $attachments, $body, $file ) = (undef) x 7;
GetOptio...
I'm after a grep-type tool to search for purely literal strings. I'm looking for the occurrence of a line of a log file, as part of a line in a seperate log file. The search text can contain all sorts of regex special characters, e.g., []().*^$-\.
Is there a Unix search utility which would not use regex, but just search for literal oc...
I have this scenario. OS is UNIX. There are a bunch of files on Server A. The need is to FTP these files(they are in XML format) to server B, parse them and store the values retrieved from specific tags to a DB. Current implementation of the parser in perl is such that the files are processed sequentially. Can a multi-threading concept i...
how do i tar a directory of files and folder without including one folder
...
We are on HPUX and my code is in C++.
We am getting "BUS_ADRALN - Invalid address alignment" in my executable on a function call.
What does this error means?
Same function is working many times then suddenly its giving core dump.
in GDB when i try to print the object values it says not in context.
Any clue where to check?
Thanks in Adv...
I have some code that seems to not handle it well when a TCP connection is closed via the RST flag instead of a normal handshake for closing the connection. The "connection reset by peer" situation. I'd like to write a TCP server that always closes via RST so that I can reproduce the bug and write some unit tests for this. So...
How do ...
Is there a quick, one-line way to convert a unix timestamp to a date from the unix command line?
I've searched through the other posts, and most seem to be a way to convert in the context of a particular language, or to convert datestrings into unixtime. I'm looking for a way to do the reverse at the command line.
'Date' might work, e...
I have PHP on running on an AS400. Can Git be also be installed on an AS400? I'd like to use it to maintain version control.
...
I am trying to run "tar -ztf /users/home/test.tar.gz | head -1" in Java, which worked when I tried to run it in unix command line directly.
The result of this command will list one line of the file/folder inside of the test.tar.gz.
for example: proj/test/test_dir
But I when I run it in java. it will give this error:
Running command: tar...
How do i remove non ascii characters from a file?
...
Hi,
This is a very basic concept, but something I have never been able to articulate that well. and I would like to try to spell it and see where I go wrong.
If I have to, how would I define a "newline character". say if I create a new file in unix(or windows), then does the file store the "end of line" information by inserting a speci...
Can ELF file contain more than one symbol table?
Is it standardized somehow?
...
Hi there. I'm using swfdump to be able to get the ID number of an audio file. Here is what I'm using:
swfdump -D /Users/home/folder/file.swf | grep -i mp3
That is outputting:
[00e] 28999 DEFINESOUND defines id 0006 (MP3 22Khz 16Bit mono)
What I need is the id #..in this case it is 0006. i want that number in a variable. Anyone kno...
I have a shell script that runs very cpu intensive programs. FFMPEG,ffmpeg2theora,etc. and I want to be able to run them but not choke the server. Is there something I can do to make sure the running programs are running as fast as possible but not hurting the server?
Like a priority system...if something else comes along that needs it ...
I'm writing a shell script. A variable will have a url that will look at the the beginning few characters and
make sure there is something before the //...so a http, https,rtmp,rtmps,rtmpe,etc....
if nothing is in front of the // then tell user there is nothing...else if that value = whatever do whatever
How would I be able to do th...