2h
awarded Yearling
3h
comment Find and copy all images preserving the folder structure
It will also work perfect with sudo command. Your initial version can have problems with it. Thanks to @joseph-larson for the note.
4h
answered Find and copy all images preserving the folder structure
6h
revised using IF to see a directory exists if not do something
added -n option
6h
answered using IF to see a directory exists if not do something
1d
revised PostgreSQL export result as CSV from remote server
more details
1d
answered PostgreSQL export result as CSV from remote server
Feb
25
comment Executing a remote command over an SSH tunnel
Currently you do not log stderr. Could you please add please add 2>&1: sudo /home/pi/bin/relay1On.sh > /tmp/Bout.log 2>&1' I didn't notice that it was several days ago.
Feb
25
awarded Citizen Patrol
Feb
25
comment Linux: How can I get a different exit code from the find command if no files matching the pattern I used are found?
Duplicate of find command + enable Exit status to be diff then 0 when not match
Feb
25
comment Bash assign variable using another variable
The eval command is extremely powerful and extremely easy to abuse. Examples of bad use of eval
Feb
25
comment Bash assign variable using another variable
I was going to suggest eval or declare, but this solution works better.
Feb
25
comment substring extraction in bash
-eq is an integer comparison. It means equal to. It works only for numbers, so it is a simple way to check if something is a number. tldp. [ ! EXPR ] True if EXPR is false. Bash-Beginners-Guide
Feb
25
answered backgrounding a process with & (ampersand) does not work in bash
Feb
25
comment bash sqlplus command not found
As you see there are no files in lib directory. Problem could be with this step mv *dylib* /Applications/oracle/product/instantclient_64/11.2.0.4.0/lib/. Try to check if there are files before moving: ls instantclient_11_2/dylib*. Locate instantclient_11_2 at first. Btw, what is the output for ls $ORACLE_HOME?
Feb
24
comment bash sqlplus command not found
Are you sure you added export DYLD_LIBRARY_PATH=$ORACLE_HOME/lib to the ~/.bash_profile? You can try to set it in the current shell. What is an output for ls $ORACLE_HOME/lib and echo $ORACLE_HOME?
Feb
24
revised bash sqlplus command not found
added explanation about setting PATH variable
Feb
24
comment bash sqlplus command not found
Then problem could be with your $PATH variable. According to the comment below you have some additional quotes. Open a console and execute export PATH=/Applications/oracle/product/instantclient_64/11.2.0.4.0/bin:/Applications/­or‌​acle/product/instantclient_64/11.2.0.4.0/bin:/usr/local/bin:/usr/bin:/bin:/us­r/s‌​bin:/sbin Then execute sqlplus or rlwrap sqlplus in the same console.
Feb
24
answered substring extraction in bash
Feb
24
awarded Yearling
1 2 3 4 5