7,895 reputation
42039
bio website None
location Netherlands
age 38
visits member for 4 years, 1 month
seen 1 hour ago

Just a guy with some linux experience.


Jun
22
comment Where do the files go if you mount a drive to a folder that already contains files?
They don't "go" anywhere. You just can't see them.
Jun
14
comment How do I run a program only once per day, while accounting for variable uptime and possible failure of program?
Yeah. Check my answer for a possible solution.
Jun
14
comment How do I run a program only once per day, while accounting for variable uptime and possible failure of program?
Wouldn't this also be vulnerable to TOCTTOU? Also, I admit that the OP isn't entirely clear whether he wants the program to try once per day until it succeeds, or to succeed once per day. If the latter, your answer's better.
Jun
14
revised How do I run a program only once per day, while accounting for variable uptime and possible failure of program?
added 3 characters in body
Jun
14
comment How do I run a program only once per day, while accounting for variable uptime and possible failure of program?
Ah, point taken -- but in this case, seeing as how we're not actually doing anything with the file except checking for its existence and creating it if it doesn't already exist there's an extreme limit to any possible shenanigans you could get up to with the exploit. I'll amended the answer to add -a to the touch command to limit it even further.
Jun
14
comment How do I run a program only once per day, while accounting for variable uptime and possible failure of program?
TOCTTOU being--? Sorry, not familiar with the acronym.
Jun
14
answered How do I run a program only once per day, while accounting for variable uptime and possible failure of program?
Jun
14
comment How do I run a program only once per day, while accounting for variable uptime and possible failure of program?
So basically, what you want is for the program to try something once a day until it succeeds?
Jun
14
comment Is Native Language Support (NLS) kernel support still necessary?
In the case of filenames, it almost certainly wouldn't be.
Jun
13
comment Where do the .deb files go when I select “download only” in Synaptic Package Manager?
Or apt-get autoclean if you want to retain the debs of packages currently installed on your system.
Jun
8
comment How to fix “login: no shell: No such file or directory” when I can not even login?
And this would be why you should ALWAYS set the root account's shell to something basic that never gets undeleted, like sh or bash.
Jun
8
comment How to know if /dev/sdX is a connected USB or HDD?
How about not being insulting when answering a question?
Jun
3
comment “Input/output error” when accessing a directory
fuseblk means it's using the fuser filesystem-in-userspace method which is what ntfs-3g uses. So you're good in that regard.
Jun
2
comment “Input/output error” when accessing a directory
Don't "guess". Check -- you can see how everything is mounted by typing the mount command and looking at the output.
Jun
2
answered “Input/output error” when accessing a directory
Jun
1
comment Is there ever a reason to use scp instead of rsync?
In that context, regular cp and rm would be considered "harmful" -- and if you define "harmful" as "can screw me over if I do something stupid", rsync isn't any less harmful.
May
31
comment Is there ever a reason to use scp instead of rsync?
Short answer: No. scp is never harmful.
May
30
answered Colorized `cat` for source and script files?
May
23
comment What's the standard for indentation in shell scripts?
Standards are great. We've got so many of them to choose from...
May
22
comment How to change permissions of multiple files found with find command?
Your command removes the executable bit from the directory, making it impossible to chdir to it and look at the files it contains. That's why the command doesn't seem to be working. Try find ./ -type f -exec chmod -x {} \; instead.