1,903 reputation
29
bio website
location The Netherlands
age
visits member for 1 year, 3 months
seen 18 hours ago

Currently working as system administrator at Bizztravel B.V.. I've earned a bachelor degree in Computer Sciences. Since computing in general is my passion, I try to keep up with the latest development in this field. I'm active on irc.freenode.org and try to contribute to the open source community as much as I can.


1d
comment Error installing VLC on Fedora 20
The rpmfusion-free-updates repository provides the vlc-core package. So e.g yum --disablerepo=rpmfusion-free-rawhide --enablerepo=rpmfusion-free-updates install vlc-core will work. Do you have the repository in your /etc/yum.repos.d/ path?
1d
comment Error installing VLC on Fedora 20
you are trying to install vlc-core from the rawhide repo. The vlc-core from the rawhide requires a newer libstd++ version which you don't have on your system. So I think you can use yum --disablerepo=rpmfusion-free-rawhide install vlc-core and see if that changes anything
2d
comment grep on a variable
You need to use herestring ...<<<"$line" . The command grep is expecting a file instead
2d
comment Start a background process from a script and manage it when the script ends
get the process id of the process running in the background using bgproc="$!" and then command "$bgproc" to take the appropriate action. See also stackoverflow.com/questions/1908610/…
2d
comment How to get all IPtables rules
@goldilocks In more complicated firewalls which include PREROUTING and POSTROUTING built-in chains, iptables -L is not able to give you any detail about these chains. However iptables-save -c will give you all rules availiable including e.g counters and so on.
2d
comment How to get all IPtables rules
@Yanipan Those are the only rules you have then. Mind you, the policy of your INPUT chain is set to ACCEPT. By default everything is accepted no matter what. You can set your CHAIN policy to DROP and allow only traffic you want to allow.
2d
comment How to get all IPtables rules
@Yanipan can you update your question and show us what you are getting when you run the command?
Oct
22
comment How to save in a variable the convert from decimal to binary without use an echo
Add a >/dev/null at the end. num1=10; echo "obase=2;$num1" | bc | tee -a register.txt >/dev/null
Oct
21
comment How to find the process with maximum file descriptors?
Well you can fix your command by e.g: for i in $(ps aux | awk 'NR>1{print $2}') ; do lsof -p "$i" | wc -l ; done and work from here.
Oct
21
comment Howto adapt this bash construct to a sh valid construct
Your shebang is wrong. #!/bin/sh What is BRIDGES, $RSTP etc? This is not the whole script. Also add set -x just beneath #!/bin/sh
Oct
16
comment how to use http proxy in terminal
Fedora 16 is EOL(End of Life). So time to upgrade!
Oct
16
comment What is the easiest way to count the amount of letters in a string entered
You don't need to use expr since this will fork another process thus occupy more resources. It is as simple as echo "${#str}"
Oct
15
comment No prompt after logging in
@ryekayo Because this has nothing to do with PATH modification. See .dotfiles mywiki.wooledge.org/DotFiles
Oct
15
comment No prompt after logging in
This indicates a PS1 problem.
Oct
15
comment Append a file, output to screen and redirect from stderr all at once, without tee
Have you looked for man tee
Oct
15
comment shortest way to replace characters in a variable
Thanks for providing execution times.
Oct
15
comment shortest way to replace characters in a variable
I think you can keep using tr. BASH's PE is good but tr is much faster in this case. e.g. echo "$OUTPUT" | tr -dc '[[:alpha:]]' since you want to have alphanumerics only
Oct
14
comment Copy strings with only 1 word on the line
awk '!/^[ \t]/{print}' file
Oct
13
comment Copy strings with only 1 word on the line
You can use awk for sure: awk 'NF == 1{print}' file > someotherfile
Oct
11
comment When does the empty string denote the current directory?
find has the -printf parameter to manipulate how results are shown. find . -name '*.h' -printf '%P\n' will remove the ./ prefix. See what find . -name '*.h' -print does.