Reputation
523
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
4 15
Impact
~18k people reached

Jun
22
comment Emails corrupt and a winmail.dat file attachment added for only one mail box
Procmail by itself does nothing of the sort, but if the mailbox has a .procmailrc, that could do pretty much anything, possibly without leaving any trace in the log.
Jun
11
comment Should websites live in /var/ or /usr/ according to recommended usage?
@ceejayoz If you have more than about two categories of "stuff" it's much simpler to tell them "we follow the FHS", even though that might require some additional details for some categories of "stuff".
May
26
comment Is a reboot required to refresh permissions after adding a user to a new group?
Actually, turns out that the real problem was that I was reusing an SSH master session. Disconnecting that by removing the ControlPath socket and logging in again resolved the problem.
May
26
answered Is a reboot required to refresh permissions after adding a user to a new group?
Apr
2
awarded  Popular Question
Mar
26
revised Can I get an array as an option argument in bash script
Clarify wording
Mar
26
suggested approved edit on Can I get an array as an option argument in bash script
Mar
12
answered Bash scripting: Using wildcard
Mar
12
answered bash variables: expanding the values of variables whose names match a pattern
Mar
12
answered linux-tomcat - add command to startup.sh
Mar
6
revised FROM: header is forged, SENDER: is legit , spam is delivered. how to detect?
Fix HTML entities in example
Mar
6
comment Bash evaluation baffling
Your cat | sed | awk abomination seems to only pick out the decimal part of the load average and using it as an integer. The diagnostics you show are not consistent with this. Are you sure this is the code you are actually running?
Mar
6
comment Load users environment variables in a cronjob
Added stuff from stackoverflow.com/a/15574078/874188 -- thanks @FedericoSierra.
Mar
6
revised Load users environment variables in a cronjob
Note from linked SO question
Mar
6
revised Load users environment variables in a cronjob
Probably better to just run Bash and be done with it
Mar
6
comment Load users environment variables in a cronjob
Oh, if the Bash start-up files contain Bash-only syntax, that won't work either -- you'll get export: command not found instead. Better really to put these in a Bash script and call that from Cron. Updated answer.
Mar
6
comment Load users environment variables in a cronjob
You forgot to fix the source: command not found error. Sorry about not mentioning it in my very initial answer.
Mar
6
comment Resolve packages not found and errors during configure,make,make install in a script
This has been resolved multiple times by multiple packaging systems already. The approach taken by both RPM and Debian is to create a build wrapper which reads the dependencies from a simple spec file. This needs to be maintained by hand for every package, but there are so many other things you need to tweak anyway that this is a minor nuisance.
Mar
6
comment Bash: Output of a command is written only to screen and not to another file while using tee, what could be the reason?
You are also using double redirection. print_log appends to $log and then you pipe to tee -a $log as well. The pipe will never receive any input so you could simply remove it; or for consistency, you could change the function so it just logs to stdout. The whole thing would be more elegant if you just added done | tee -a "$log" at the end of the loop, rather than redirect every command inside the loop. Then you can fix wget by just adding 2>&1 there.
Mar
6
answered Load users environment variables in a cronjob