I use graphviz to get the svg back
dot -Tsvg -o graph.dot file
How to set the Graphviz output svg to "rect" node not "polygon"
and the translate is set to (0,0) not (4 256)
thanks a lot
<g id="graph1" class="graph" transform="scale(1 1) rotate(0) translate(4 256)">
<polygon fill="white" stroke="white" points="-4,5 -4,-256 265,-256 ...
I have program which monitors a directory (/test) and notify me.
I want to improve this to monitor another directory (say /opt).
And also how to monitor it's subdirectories , current i'll get notified if any changes made to files under /test . but i'm not getting any inotifcation if changes made sub-directory of /test, that is touch /te...
Hi
My machine is installed with Sendmail, but when I try to send email via java mail. I tested on my localhost the script is working well. But when sent from the machine, it shows errors in the log:
[127.0.0.1] did not issue MAIL/EXPN/VRFY/ETRN during connection to MTA
Can anyone advise how can I resolve this issue?
Thank you very mu...
Can I control a running Google Chrome instance from the command line? I'm hoping there's something like a -remote flag that will allow me to send in some javascript or somesuch. In particular, I would like to reload the topmost document on the foremost window.
...
cat hosts.txt | while read h; do telnet $h; done
When I run this, it telnets to first host which denies the connection but then exists instead of looping over the other hosts in the file.
Why is it exiting the loop after the first host and how can I fix it?
Thanks.
...
I have a bug where a char pointer is turning out NULL. I've been all over gdb with the program, watching read/write at the memory address, and stepping through the instructions, but so far the bug stumps me. I've ran valgrind and the only thing coming up is the read at the crash (strcmp). What else can I do to track this down?
...
I'm trying to catch an output of bash patch command on a standard output, but I receive a "patch -o- some/file patch: can't output patches to standard output" warning. Tell me please, how I can make it properly? Maybe I'm stupid and the solution is really simple?
...
Hi All, i have written the following code to copy a string "hello world" to another char array using fork and pipes instead of using standard library functions or standard i/o streams. The program is compiling successfully but i am not getting any output. Even, the printf's output are not being shown.
# include <string.h>
# include <uni...
Using Linux, I want to compare two SQLite databases that have the same schema.
There will be just a few differences.
Is there a tool that would output these differences?
Preferably output them to the command line, so that I can grep/sed them.
SQLite uses SQL, so a general SQL tool might also do.
...
Hello I've recently discovered an interesting thing.
I've made my own Speedmeter using Flash CS4 and ActionScript 3.0. The Download side is based on downloading 2 Mp3 noise files. Using the built-in method getBytesLoaded() and a simple math it's easy to calculate actual connection speed. Actual speed is evaluated every second.
It works...
We're developing a kind of gadget with usb connection but would not to force our users to install any driver and program in their computers, so... ¿it's possible to develop a java applet that work in linux and windows and have usb access?
(We're java developers but nerver before worked with applets)
...
So, the idea is to have a script that tries to run a command, and if the command fails it shows up any warnings/errors. My try:
$ cat try.sh
#! /bin/sh
tempfile=`tempfile 2>/dev/null` || tempfile=/tmp/temp$$
trap 'rm -f $tempfile >/dev/null 2>&1' 0
trap 'exit 2' 1 2 3 15
echo "$@"
if ! "$@" >$tempfile 2>&1; then
cat $tempfile;
fa...
I have an application server (jetty 6 on a linux box) hosting 15 individuals applications (individual war's). Every 3 or 4 days I get an alert from nagios regarding the number of open TCP connections. Upon inspection, I see that the vast majority of these connections are to the MySQL server.
netstat -ntu | grep TIME_WAIT
Shows 10,000+...
i want to compile a custom linux kernel for myself. because i dont know every option of kernel therefore i am looking for a good default config for start.
...
I want to find the exact time where a media file is currently paused at (or playing) in a running Totem instance using D-Bus. To be precise, what I want is available from the Totem python console (if the plugin exists and is enabled) by the following command:
>>> print totem_object.props.current_time
732616
which I understand is milli...
It seem Mono ignores dllmaps in the local configuration file.
I want to port my .NET application on Linux (ubuntu) which calls native libraries so I have dllmaps to make my code work. The mono docs says you have to make a something.exe.config for something.exe and put application specific configs in it. it parses the file (because it co...
Hi,
I have a list such as:
10,Car Tyres
8,Car Tyres
4,Wheels
18,Crowbars
5,Jacks
5,Jacks
8,Jacks
The first number is quantity, second is item name. I need to get this list so that it only shows each item once and it adds together the quantity if the item appears more than once. The output of this working correctly would be:
18,Car ...
I apologize in advance for the long-winded question but I wanted to make sure I didn't leave out any key points that may alter your response.
I am responsible for maintaining system software written in 'C' of which we have a few common '.a' libraries. We have what I would call an "Execution Manager" who's main job is to fork and and ex...
The C language convention counts array indices from 0. Why do inode numbers start from 1 and not 0?
If inode 0 is reserved is for some special use, then what is the significance of inode 0?
...
I have a log file in .csv format in linux. I need to view the log file as when it is updated. Is there any linux cmd to do it?
...