Reputation
625
Top tag
Next privilege 1,000 Rep.
See votes, expandable usercard
Badges
4 16
Newest
 Informed
Impact
~28k people reached

Jun
17
comment unexpected end of file error in script file
On a related note: if [ $result_nc != 0 ] will not work. You should simply if nc -z $Host $Port What you're doing is comparing the variable $result_nc ('nc -z $Host $Port; echo $?') with 0, which will never be true.
Jun
15
comment Can you configure per-network SSH settings?
Simply duplicate that config using a name like github.com@stoopid ?
Jun
11
awarded  Informed
Jun
10
awarded  Citizen Patrol
Jun
8
answered Find difference in file encoding
Jun
1
comment Doing a backup with mysqldump and drop it on another server (Bash)
Don't give execution access to a server that only needs read/write access to a certain destination. Downvote for security madness.
May
31
comment Error with a specific bash script
That said, you should add this line to the start of your file: set -x and post the output then. That's how you debug some bash.
May
31
comment Error with a specific bash script
ServerFault is not a script debugging service. Read on the language you are using.
May
18
awarded  Good Answer
May
4
comment Shell Script to connect to Database and execute query
Query="..." ... $query; Your problem is here...
May
2
awarded  Yearling
May
1
answered Uphold variable life in Bash loop
Apr
25
revised Linux - Print specific line from output
Using extended regex could be a good idea to answer the question.
Apr
25
suggested approved edit on Linux - Print specific line from output
Apr
21
comment Using CFEngine to copy a directory tree except certain files
I know I can use gitignore to ignore the swap files too. But, regardless, I've been looking for a way to ignore files for some days now.
Apr
21
comment Using CFEngine to copy a directory tree except certain files
That would be a last resort option. I'm also trying to find a way to ignore some files because I want to use git to push these files into the /srv/repos/ directories.
Apr
21
revised Using CFEngine to copy a directory tree except certain files
added 183 characters in body
Apr
21
revised Using CFEngine to copy a directory tree except certain files
More information
Apr
21
asked Using CFEngine to copy a directory tree except certain files
Apr
20
answered How to map DNS entries to ports using Nginx