Reputation
Top tag
Next privilege 200 Rep.
See reduced ads
Badges
12
Newest
 Commentator
Impact
~4k people reached

  • 0 posts edited
  • 0 helpful flags
  • 9 votes cast
May
26
comment Matching () with a Unix/Linux regex
You know that you can use find with an exec? find . -exec echo {} \;
May
25
awarded  Commentator
May
25
comment Matching () with a Unix/Linux regex
I have rename [ -h|-m|-V ] [ -v ] [ -n ] [ -f ] [ -e|-E *perlexpr*]*|*perlexpr* [ *files* ]. So we have two different versions.
May
25
comment Matching () with a Unix/Linux regex
It could also be that the regex handling on Cygwin is different than on Linux.
May
25
comment Matching () with a Unix/Linux regex
I used a Debian 8.0 with the LANG=en_US.UTF-8 environment. Maybe cygwin does some weird mangling with the input. I was able to solve this by putting the regex into quotes: rename -v 's/\(a\)/a/' \(b\).*.
May
25
comment Matching () with a Unix/Linux regex
Ah, I see my problem. I should have used rename 's/\(a\)/a/' instead of rename s/\(a\)/a/. What is happening here? Why did you introduce the find?
May
25
revised Matching () with a Unix/Linux regex
Reformulated the question.
May
25
asked Matching () with a Unix/Linux regex
Oct
3
awarded  Popular Question
Sep
24
awarded  Autobiographer
May
15
awarded  Self-Learner
Mar
27
awarded  Revival
Feb
7
awarded  Popular Question
Dec
12
comment Faking a Linux environment without chroot
@Cedric For the python problem. Pip install --user <pythonmodules> definitely helped ;)
Dec
12
comment Faking a Linux environment without chroot
@DarthAndroid: virtualenv is a bit problematic since ubuntu does some weird stuff to their python libraries... We managed to run some of the libraries but only in a fachechroot environment after taking care of the symlinks. For the time being we just request the python libraries on the target machine...
Dec
12
comment Faking a Linux environment without chroot
@allquixotic fakechroot seems to work but we had to take special care of the symlinks in the directories. I'm a bit unsure about the performance overhead though.
Dec
10
comment Faking a Linux environment without chroot
There's actually a package called fakechroot. Which allows for the creation of a "fake" chroot environment (exactly what we need actually). I'm however hesitant since both fakeroot and fakechroot can produce a significant performance overhead since all system calls are redirected..
Dec
10
comment Faking a Linux environment without chroot
Nick: it's easier to create a sandboxed environment because replacing gcc requires also the replacement of glibc (or a recompilation) which then also has very broad side effects.
Dec
10
comment Faking a Linux environment without chroot
What's the standard location for PYTHONHOME? Is it /usr/lib/python2.7?
Dec
10
asked Faking a Linux environment without chroot