Reputation
6,203
Top tag
Next privilege 10,000 Rep.
Access moderator tools
Badges
1 8 33
Newest
 Revival
Impact
~171k people reached

May
17
comment Shell Scripting - return to previous loop until process is completed then die/done
Also, what you're looking for is while instead of if on the first line. The man page for bash should tell you how it works.
May
17
comment Shell Scripting - return to previous loop until process is completed then die/done
I fixed the indentation. You also missed two closing parentheses, after the last two wc -l, which I added. You should use an editor which auto-indents and highlights parenthesis mismatches, that's how I found those two errors.
May
13
comment Newgrp: “Group does not exist”, but I have created the group
You wrote "I believe if one adds a new group that one has to re-initialize the system". I have never seen a unix system where this was the case, and I've many times added a group and used it directly, in more than one flavour of unix. Which is why I asked the poster about information about their particular system - once that is given, I may be able to find the answer. But I'm not going to try to re-create the issue on multiple systems on the chance of stumbling over whatever it is they're using.
May
13
comment Newgrp: “Group does not exist”, but I have created the group
It might help if you could give a clue as to which unix you're using.
May
13
comment Newgrp: “Group does not exist”, but I have created the group
No, a reboot is not required.
Apr
24
comment need help merging two Unix files
@mdx You're welcome!
Apr
3
comment How to set apache Document root on ntfs partition?
Does the file /media/data/Projects/www/html/test.php exist with the right permissions?
Apr
1
comment How to set apache Document root on ntfs partition?
What can you find in apache's error log when the error occurs?
Apr
1
comment How to set apache Document root on ntfs partition?
Yes, that's what I meant. Thanks for the info.
Apr
1
comment How to set apache Document root on ntfs partition?
Can you execute other programs if you try running them directly?
Mar
18
comment Is there any dynamically produced .log file showing up the memory usage on FreeBSD?
I'm voting to move this to Unix/Linux. There are some people over there who are scarily smart and competent when it comes to various unix behaviours.
Feb
15
comment Pressed the big red cross in Winscp by accident
I don't know winscp well enough to answer the questions, but I strongly advise you to not shut down the system. You can't recreate deleted files with fsck, and you may not get the system back up in a usable state if you shut it down now.
Feb
1
comment Find all numbers not in a range
What have you tried so far?
Jan
31
comment “Disk space full” - Linux Mint as Dual Boot on UEFI Windows
I usually put /var on a separate partition to avoid that. You might also want to figure out exactly what it is that is creating all those logs, otherwise the problem will recur.
Jan
25
comment How can I run a script as sudo and for it to not ask me for a password?
I changed the sudoers line, try again.
Jan
25
comment How can I run a script as sudo and for it to not ask me for a password?
One answer coming up, in a few minutes...
Jan
25
comment How can I run a script as sudo and for it to not ask me for a password?
What is the exact line that you added to your sudo rules?
Jan
22
comment php-fpm error unable to bind listening socket for address '127.0.0.1:9003': Permission denied (13)
Do you have SELinux enabled? You can check this by running getenforce.
Jan
15
comment Using the cURL command, how does one fetch stock data which comes back *without* commas and spaces?
@ChrisDormani The excerpt in the E.G.part is not quite the same; the last argument to the URI is different. In your original code it says snl1c6j2s6f6, but in @peterph's example, it says sl1c6sj2ss6sf6.
Jan
12
comment Can ssh (agent) work with two separate identities?
Are you using the same ssh username for the two keys?