Reputation
279
Top tag
Next privilege 300 Rep.
Create new tags
Badges
1 9
Newest
 Critic
Impact
~8k people reached

Feb
4
comment How to rsync files between two remotes?
@roaima Do you mean that when rsync notices the files are both local it skips the delta algorithm? I didn't realize it did it automatically and I can't find anything in the manual. Can you provide a reference for that? I have always passed -W to turn it off manually.
Dec
3
comment How to rsync files between two remotes?
Mounting the filesystem locally wont save any bandwidth between the source and local machine. It will however save bandwidth between the local and destination (as it isn't mounted locally). Using rsync this way only makes sense if you are trying to save bandwidth on the destination.
Dec
3
comment How to rsync files between two remotes?
Note that if you are using rsync for the delta transfer features running it over SSHFS will nullify all of those. This is because rsync needs to read every file on both sides. This means that you will be transferring all of the files on both sides to your local computer before uploading the delta to the destination server.
Nov
11
comment How to add a newline to the end of a file?
Startup time does matter if you call python in a loop, that is why I said consider doing the loop in python. Then you only incur the startup cost once. For me, half the cost the startup is more than half of the time of the whole snipit, I would consider that substantial overhead. (Again, irrelevant if only doing a small number of files)
Nov
10
comment How to add a newline to the end of a file?
That's quite a bit faster than mine, but it adds up quick. I remember using python to do some math in a script once and it really bogged it down. Maybe they have improved it since then and I just have haunting memories.
Nov
9
comment How to add a newline to the end of a file?
I wouldn't use the python version in any sort of loop because of the slow python startup time. Of course you could do the loop in python if you wanted.
Nov
4
comment Get “Text Content” of Files
That link was helpful. antiword and catdoc are useful. I might end up writing a script that detects the format and calls the appropriate script.
Nov
4
comment How do I know on which IDE to edit a project's source code?
But I think I will keep my answer as it because I think that autotools generated configures are much more common now days.
Nov
4
comment How do I know on which IDE to edit a project's source code?
Really! I never knew that people wrote their own configure. You learn something every day :D
Nov
4
comment Get “Text Content” of Files
Yeah, I don't need high fidelity or anything. Think of getting a quick preview or to index it for searching.
Nov
3
comment Disallow File IO for a process except for FIFOs
What do you mean a process can break out of a chroot? Unless it is root it shouldn't be able to AFAIK. You might want to submit a bug report to whatever kernel you use.
Jan
29
comment Can conky float over maximized windows?
I believe you just have to find the right window manager hints.
Nov
30
comment Fork call and recursion
I think the misconception that the OP had was the fork started at the beginning of main again. This answer clearly illustrates that fork creates two processes at the same location. (If you were trying to create a fork bomb you need something like this while (1) fork();).
Nov
30
comment How to create a script, which runs another script in separate terminal window and does not wait?
Just a note, "The working directory does not affect your $PATH". This isn't always true. Some people have the current directory (export PATH=.:/usr/local/bin:...) in which case the effective PATH will differ based on the directory you are in.
Nov
6
comment What is the difference between .ini and .conf?
@Rob Kindof, but not really. It is like many programs will use an extension that defines the format (openbox's .xml config for example). There isn't really a solid convention. Personally I put the filetype as an extension if I use one (which I usually don't).
Nov
6
comment How Can Terminal Emulators Kill Their Children After Recieving a SIGKILL?
For info about sessions and session leaders: unix.stackexchange.com/questions/18166/….
Nov
6
comment How Can Terminal Emulators Kill Their Children After Recieving a SIGKILL?
@CharlesBoyd I understand that, but the point of the question is how does it "manipulate[] a job by sending signals" when it receives a SIGKILL. I see no way for it to use the killpg system call at that point.
Nov
6
comment How Can Terminal Emulators Kill Their Children After Recieving a SIGKILL?
I never said it did, I said that it dies but survives when it is in a script and that is killed.