1,158 reputation
513
bio website juliano.info
location Sao Paulo, Brazil
age 32
visits member for 4 years, 1 month
seen Aug 1 at 10:37
Computer Science Bachelor, Software Engineer, Open Source enthusiast and Network Systems Administrator.

Jan
19
comment How do idiomatic Unix programs detect what prefix they are installed under?
Better than argv[0] is to do a readlink() to /proc/self/exe, when this file is available. If that fails, then you check argv[0] and $PATH.
Jan
19
comment How do I periodically run a command with very short intervall and get the return?
@Marcel the simple way is to call daemon(3) from C or other language with library access (not from a shell script). This is the hard way.
Jan
19
answered testing services/open ports with telnet?
Jan
19
comment How do I periodically run a command with very short intervall and get the return?
@Marcel, disown removes the last job from the shell job table, making it sort of a daemon, like you asked. It is not a real daemon because it is still attached to terminal and is in the same process group, but it will keep running after you close the shell.
Jan
19
answered How do I periodically run a command with very short intervall and get the return?
Jan
19
revised How to rename a file into a random GUID?
added 465 characters in body; deleted 4 characters in body
Jan
19
comment How to rename a file into a random GUID?
ls output is not meant to be parsed. ls is meant to produce user-readable output, and it may substitute characters in filenames.
Jan
19
answered How to rename a file into a random GUID?
Jan
19
comment How to rename a file into a random GUID?
UUIDs are not completely random. Random UUIDs are version 4 UUIDs, and have only 122 random bits, not 128. The fixed bits define the version (4) and variant of the UUID. You should use either uuidgen or /proc/sys/kernel/random/uuid to generate UUIDs.
Dec
7
answered Is there a way to store Firefox passwords in a local encrypted database in Linux?
Nov
16
answered ls command: what does the first line mean?
Nov
16
comment What is the difference between X and XFree?
X11 is not synonym of X. X11 is the current version of the protocol used in the X Window System and in existence since 1987. The other versions, from X1 to X10, existed during some period of the past, from the creation of X until the release of X11.
Nov
16
revised What is the difference between X and XFree?
deleted 1 characters in body
Nov
16
answered What is the difference between X and XFree?
Nov
15
comment Why does xargs cause apt-get to abort?
The standard input of xargs is connected to the pipe from cat, but the process started by xargs has its standard input coming from /dev/null. This is the behavior of xargs. Simple demonstration: echo "" | xargs ls -l /dev/self/fd
Nov
12
revised Is there a good combination of command-line and graphical file browser?
added 14 characters in body
Nov
12
comment Is there a good combination of command-line and graphical file browser?
To clarify: what Dolphin lacks is: (1) not take the focus from the terminal widget when changeUrl() is called, and (2) an environment variable that tells which window the terminal is attached, so that the script above can send the message to the correct window.
Nov
12
comment Is there a good combination of command-line and graphical file browser?
The Dolphin service can be seen in the terminal from the $KONSOLE_DBUS_SERVICE env variable. It is a real problem if you have two windows open of the same instance of Dolphin. I really don't know how to distinguish between them. There is a $KONSOLE_DBUS_SESSION, but it links only to the konsole session, not the dolphin window. Anyways, you should suggest this feature to Dolphin developers, half of it is implemented above.
Nov
12
awarded  Editor
Nov
12
revised Is there a good combination of command-line and graphical file browser?
expanded, add terminal->gui interaction; added 5 characters in body