1,586 reputation
311
bio website
location
age
visits member for 2 years, 9 months
seen 2 days ago

Oct
21
comment Where are my sshd logs?
This doesn't seem to work, but journalctl _COMM=sshd does.
Sep
26
comment Maintain screen session when executing shell script on boot
Yes, I believe it will be running as root. The only possibility I can think of is that run.sh terminates, ending the screen session. If the server detaches from the starting terminal and goes into the background, then run.sh will terminate, even though the server keeps running.
Sep
25
comment Maintain screen session when executing shell script on boot
Does ps -A show that screen is still running? Also, are you running screen -ls as the same user that screen originally starts as?
May
22
comment Which driver is handling my touchpad?
Do an lsmod and see which of those drivers is loaded. You might also want to read your /var/log/Xorg.0.log.
Apr
30
comment Does tar actually compress files, or just group them together?
Just read the BSD tar manpage, and it turns out I was mistaken, BSD tar uses separate zZjJ for compression just like GNU tar. However, it does automatically detect compression when decompressing though, whereas GNU tar expects zZjJ then also.
Apr
30
comment Does tar actually compress files, or just group them together?
BSD tar provides an argument for compression as well, though it only accepts z and determines the compression method based on the extension, whereas GNU tar has separate zZjJ arguments for the different compression methods.
Apr
3
comment What speed should zsh connect to tmux at?
I'm pretty sure these old baud settings persist just for backwards compatibility reasons, and don't actually control anything anymore. I'm quite certain zsh doesn't care.
Mar
31
comment Having an independent console to kill rogue process?
This doesn't answer your question, by I suspect Flash is only able to cripple your system like it does because it eats enough memory to cause your system to start swapping. If you can get away with it, turn off the swap and let the Out-of-Memory killer do its job while your system is still responsive. Barring that, buy an SSD if you haven't already.
Dec
11
comment Grep multiple pattern negative match
I did some more testing, and found that if there is an empty line in the patterns file it will match every line, causing no lines to be returned with -v. This isn't a problem with -F however, and -F might speed up grep for your task - might be worth trying for you.
Dec
11
comment Grep multiple pattern negative match
When I tried this on my system, grep -v -f had the desired behavior, only returning lines that matched none of the patterns. This was with (GNU grep) 2.14.56-1e3d. What grep are you using?
Dec
8
comment sshfs and Emacs: file changed on the disk
This doesn't answer your question, but I suggest you use Emacs's TRAMP mode instead of sshfs. It's more flexible, and is likely to be faster after setting up the initial connection.
Dec
8
comment How do you compare two folders and copy the difference to a third folder?
@Bernhard Ah, my bad. I guess I misunderstood the original question.
Dec
8
comment Create SSL certificate - Silent
Your "normal way to create the certificate" doesn't prompt for any data. Are you not wanting it to output anything? Then use 2> /dev/null.
Dec
8
comment How do you compare two folders and copy the difference to a third folder?
possible duplicate of How do I save changed files?
Dec
8
comment Why is Ruby using 100% CPU in startup?
Is this a EC2 micro instance? Amazon severely constrains the CPU time those instances can use.
Nov
27
comment Set executable heap
I don't think the old architectures would behave that way, the underlying hardware has no way of knowing what memory pages are mmap'ed executable files and which are meant for heap space, unless it is told. Architectures that don't support something like the no-execute flag on pages will always have executable heap, for others, the kernel is the only limitation.
Nov
27
comment get age of given file
@terdon Both. That Q&A you link is correct, current filesystems have been tracking the creation time for a while now. In FreeBSD, you can actually get at this from stat, in Linux the syscall has not been reworked so you have to resort to hacking with debugfs.
Nov
4
comment How do I stop sed from adding extra newline characters
I don't know how to make your AIX sed behave, but head -c -1 can bite off the final newline.
Nov
2
comment Open 2 instances of the same program
You can set the DISPLAY environment variable instead of using -display, all X11 programs should support this.
Nov
2
comment Open 2 instances of the same program
This is a deficit in these programs themselves, when they discover they are already running they don't bother checking if they are being asked to open on a new display. If you use VNC instead of X11 forwarding you can connect to your home computer and interact with the programs there. VNC is also more performant for many applications. Running Pycharm locally and getting at your files through sshfs would probably work even better.