831 reputation
411
bio website absolutelytech.com
location Bangalore, India
age
visits member for 3 years, 3 months
seen 11 mins ago

Jun
3
comment Use find to execute series of commands
I've always used \{\} thinking it would cause a bash expansion. Why doesn't bash expand {} in this case?
Jun
3
answered Read/Write to a Serial Port Without Root?
Jun
3
answered Is there a vim shortcut for <name of current file>?
Jun
3
comment Installed TigerVNC, can't connect?
@Jason94: Try iptables -A INPUT -p tcp –dport 5900 -j ACCEPT in terminal. However changes will be lost unless you make it execute at startup. Hope that helps.
Jun
2
revised Installed TigerVNC, can't connect?
Elaborated answer
Jun
2
awarded  Scholar
Jun
2
accepted Precedence of stdin and stdout redirection in Bash
Jun
2
comment Precedence of stdin and stdout redirection in Bash
@fred: That's the only way it makes sense. I was thinking it in terms of pipes (fluid pipes) wherein stderr got connected to stdout and stdout to foo and the output was fed from one end. Not it makes sense. Thanks a lot :)
Jun
2
answered Installed TigerVNC, can't connect?
Jun
2
comment Precedence of stdin and stdout redirection in Bash
@fred: Thanks for your answer. I tried all the examples and they work as documented. But I don't get the logic behind it. If the order is from left to right ls 2>&1 >foo would mean: 1. Redirect any output from stderr to stdin 2. Redirect any output from stdin to foo. 3. Execute ls. So theoretically stderr->stdin->foo is the order we are mentioning in the command which seems perfectly legitimate to me. I understand it doesn't work, but I am not getting what's wrong with it.
Jun
2
awarded  Editor
Jun
2
revised Problem making a virtual host with apache
Typo in title
Jun
2
awarded  Supporter
Jun
2
suggested suggested edit on Problem making a virtual host with apache
Jun
2
comment Precedence of stdin and stdout redirection in Bash
I am not getting it. Since you said order is from left to right, shouldn't ls > foo 2>&1 mean redirect stdout to foo then redirect stderr to stdout. So this shouldn't work. Similarly second command should work. What am I missing here?
Jun
2
awarded  Student
Jun
2
asked Precedence of stdin and stdout redirection in Bash
Jun
2
awarded  Teacher
Jun
2
answered Apache won't start on Fedora 15