Reputation
1,612
Top tag
Next privilege 2,000 Rep.
Edit questions and answers
Badges
7 13
Newest
 Guru
Impact
~91k people reached

  • 0 posts edited
  • 1 helpful flag
  • 55 votes cast
May
10
awarded  Guru
Mar
23
reviewed Reviewed Debian — newest version of Eclipse
Mar
23
reviewed No Action Needed Displaying week's number in certain format using ncal or cal
Mar
9
reviewed No Action Needed ls command - define number of columns
Feb
24
reviewed No Action Needed Static IP addressing issue in Ubuntu on BeagleBoneBlack Rev C
Feb
23
comment Sending mail via cron doesn't work
Does the file /tmp/rsync_test.log exist? Is the sendmail binary located in $PATH?
Feb
12
comment Is it possible to remove vi?
In that case, make sure all user-writeable devices are mounted noexec.
Feb
11
comment Is it possible to remove vi?
Is it really the execution of vi you want to prevent? Or rather the ability to look at, or change, certain files? If it is the latter, it might be preferable to attack the problem in a more straightforward way (e.g. file permissions or mount parameters).
Jan
19
awarded  Yearling
Jan
7
comment Output Redirection
This is a bash 4 feature. For older versions of bash, use 2>&1 | instead.
Dec
9
comment Hard Linking Other Users' Files
The owner of the file is stored in the inode, not in the directory entries (hard links), so it is quite natural to count the file against user B's quota.
Nov
19
reviewed No Action Needed Why can't the tape device such as '/dev/st0' use commands like 'cp' to copy contents to it?
Nov
12
answered OR operator in bash scripting
Nov
12
reviewed No Action Needed OR operator in bash scripting
Nov
12
reviewed No Action Needed How to sort on two fields of numbers
Oct
17
comment How do I look up exit codes for applications?
In case this has not become clear from l0b0's answer: these exit codes are not "bash exit codes". They belong entirely to the exiting commands, and they will not change if these commands are called in a different way that does not involve bash.
Aug
26
comment How to attach terminal to detached process?
@rustyx: Untested, but this should work: create a file rather than a pipe, touch /tmp/thefile. Stdout is 1, so call close (1); also, use the correct permissions for writing: call open ("/tmp/thefile", 0400). The echo… is, of course, not needed.
Jul
16
comment Why do I have to escape a “dot” twice?
@Thushi: No. This has nothing to do with the fact that you are using a (or several) pipe characters, but applies even for grep \\. my_file. The commandline is interpreted by the shell, using the first \ to escape the second one, so one \ is passed literally to grep. The dot . is not special to the shell, so it is passed verbatim anyway. Grep then reads the (single) \ and uses it to escape the dot ..
Jul
15
comment Missing/broken dependancies on OpenSUSE, normal?
I wouldn't re-install. A pattern is merely a set of constraints (i.e. requirements and conflicts), so removing it does not change the system. Moreover, nothing should be broken right now (unless you selected a solution break xxx… when installing software at some point.
Jul
15
comment Missing/broken dependancies on OpenSUSE, normal?
Editing your questing to add requested information is fine. See below for my answer.