632 reputation
1317
bio website bit.ly/GFscreener11
location stackoverflow.com@askmarcos.com
age
visits member for 3 years
seen yesterday

Pioneers are the ones with arrows in their backs.

Investment Portfolio Software, Trade Automation

Designer of infinite compression algorithms, and other research projects


May
9
comment change environment of a running process
xpra sounds useful. Normally I reroute to non-user displays hosted by Xvfb or Xephyr, but today I forgot and ran from cli rather than cron/at to troubleshoot output, so it's been annoying me at :0
May
9
accepted change environment of a running process
May
9
comment change environment of a running process
Yes I realize it's somewhat of a hack, risky and not guaranteed for reasons you mentioned. (Part of the reason I visit this group is for such non-conventional needs I can't seem to find ordinarily.) In this case setting DISPLAY to junk or empty merely resolves an annoyance and delay(unnecessary frequent screenshots over network,fine if they fail). Since child copies parent, I need only mod the parent env. Many new child &subchild processes are getting spawned and exit quickly in my batch job; those matter. I figured a debugger could do this, thanks--I could wrap that into a shell function.
May
9
asked change environment of a running process
May
9
asked fetchmail to log complete messages AND pass to mda
May
1
comment Get “date” to understand a timestamp phrase of a different language
Very good demonstration of bash techniques. Besides that I mostly use Ruby for programs if not awk for one-liners, both have strptime or similar--where you still have to specify the field format manually.
May
1
accepted Get “date” to understand a timestamp phrase of a different language
May
1
asked Get “date” to understand a timestamp phrase of a different language
Apr
20
awarded  Quorum
Mar
24
comment sort at jobs chronologically
Actually, a shorter version may be doable with bash readline instead of awk
Mar
24
answered sort at jobs chronologically
Mar
23
accepted sort at jobs chronologically
Mar
23
comment sort at jobs chronologically
I'm okay with reformatting the 2nd field as 2012-03-23_13-11-01 which is sorting-friendly, which I think date can do. With the --date=STRING param and +\%Y-\%m-\%d_\%H-\%M-\%S
Mar
23
comment sort at jobs chronologically
On one host with 200+ jobs the output seems to be sorted by id mainly--not always timestamp in the 2nd half. Anyway, the date command has special timestamp-parsing powers that could make this simpler when fed the right fields eg. with cut.
Mar
23
asked sort at jobs chronologically
Mar
14
awarded  Self-Learner
Mar
14
comment Tell fs to free space from deleted files NOW
Good point. Even though I'm one of those who live and die by the command line, and rarely use graphical file manager. Haven't yet noticed that expunged folder as a hiding place though--an Empty Trash click had always been final and returned my disk space when needed.
Mar
14
comment Tell fs to free space from deleted files NOW
I agree; an mkfs these days should reserve eg. 5% or 300MB, whichever is less. Just re-tuned some of my servers to 2% and freed GBs back!
Mar
14
comment Is there an easy way to replace duplicate files with hardlinks?
I think I will update my cp alias to always include the --reflink=auto parameter now
Mar
14
comment Tell fs to free space from deleted files NOW
sync never helped. As for logs, it's an Ubuntu system so it's pretty buggy, so yeah they're typically noisy. apport has be deploying often because every nightly apt-get update crashes, though /var/crash has only 77MB. Also noticed atd has flooded /var/log/syslog with repeating lines like atd[8892]: File a0015c0152ab76 is in wrong format - aborting probably since the few files in /var/spool/cron/atspool were all 0 sized, making the problem circular of course