2,154 reputation
414
bio website
location The Netherlands
age
visits member for 1 year, 6 months
seen yesterday

“The greatest enemy of knowledge is not ignorance, it is the illusion of knowledge.”

"Daniel J. Boorstin


Aug
11
comment store the command output in an array and print one by one
@StéphaneChazelas array+=.. is indeed useless in this case since the stdin is not user input but it's a file. And yes delimiter is set to indicate NULs or \0 ending of the arguments passed to the array otherwise unexpected result can occur.
Aug
11
revised Use ssh without trying ssh-keys
removed 'works' at the end of the answer contained within code blocks
Aug
11
suggested approved edit on Use ssh without trying ssh-keys
Aug
11
revised store the command output in an array and print one by one
added array.
Aug
11
comment Use ssh without trying ssh-keys
@rub77. The answer has already been given. You can add your solution and mark it as answer. Glad you solved it.
Aug
11
answered store the command output in an array and print one by one
Aug
11
comment Use ssh without trying ssh-keys
Seems you need: serverfault.com/questions/130346/…
Aug
11
comment merging all files into one file?
I'm not sure why you are using paste. You'd want cat *{1..n}.txt >> combined.txt
Aug
8
comment How to get a response from any URL?
What is %s\n you put there? on your comment? Project-Purpose? You should be more specific of what you are trying to accomplish.
Aug
8
comment How to get a response from any URL?
@Akash See the updated answer. Don't put an extension to your script. Also run it just by ./checkURL. Hope it helps
Aug
8
revised How to get a response from any URL?
added 81 characters in body
Aug
7
answered Getting expr: syntax error on index
Aug
7
comment Getting expr: syntax error on index
You can change the first line to. of=$(ps fax | awk '/php-fmp: master process/{print $1}'). However, if you have pgrep` you better use pgrep. Also Explain in details what you want.
Aug
7
comment Ctrl+Alt+Backspace to kill X server can't be disabled
Michael, I understand. There is probably a bug, but you can ask that on a mailing list.
Aug
7
comment Ctrl+Alt+Backspace to kill X server can't be disabled
Michael, See the official documentation from Centos. centos.org/docs/5/html/Deployment_Guide-en-US/…
Aug
7
answered moving a process to fg and bg
Aug
7
comment How to get a response from any URL?
nmap again is a non default package in many *nix systems. curl is more common shipped with the base system. You'd still need to install nmap to achieve something which can be achieved with standard *nix tools.
Aug
7
comment How to get a response from any URL?
ping sends an ICMP message and definitely doesn't use port 80 or 443. Also some servers block ping requests which still makes the attempt unreliable.
Aug
7
answered How to get a response from any URL?
Aug
6
comment Access remote server after running ifdown eth0
So simple and yet effective!