646 reputation
47
bio website nsg.cc
location Sweden
age 30
visits member for 3 years, 1 month
seen Feb 18 at 14:42

Oct
25
comment Bash overwrites the first line, PS1 bash prompt
True, I had forgotten this one. Thanks for the reminder.
Oct
4
comment GPU computing without X?
Take a look at Xvfb or something similar.
Oct
4
comment Bash overwrites the first line, PS1 bash prompt
I will not accept my own answer if someone else want to give a better and more informative answer who explains the situation in more detail.
Sep
19
comment How to make sure only one instance of a bash script runs?
Axel: Sure, sounds like a good idea. I Also recommend Bruce Ediger's mkdir based answer.
Sep
18
comment How to make sure only one instance of a bash script runs?
manatwork: nice idea, I will update my answer.
Sep
18
comment How to make sure only one instance of a bash script runs?
I have never used lsof for this purpose, I this it should work. Note that lsof is really slow in my system (1-2 sec) and most likely there is a lot of time for race conditions.
Sep
18
comment How to make sure only one instance of a bash script runs?
ops :) Yes, race conditions is a problem in my example, I usually write hourly or daily cron jobs and race conditions are rare.
Aug
13
comment Git auto-complete
What shell are you using? Bash?
Jul
12
comment Run a script automatically as I switch to a directory
manatwork: true, I will update my answer.
Jul
12
comment Run a script automatically as I switch to a directory
Yes, PROMT_COMMAND is bash-specific. The question contains the tags 'bash' so i assumed he was a bash user. The cd-function trick suggested by Arcege may be a better solution, note the possible security concern stated by jw013.
Feb
21
comment Per process firewall?
Maybe LXC (Linux Containers) will do the trick? lxc.sourceforge.net