Commit 979244a1 by sn

...

1 parent 38192597
......@@ -7,4 +7,3 @@ __BASEPATH_EX=$__THIS_DIR
# __PATH_to_mcBash=$__BASEPATH_EX'include/Lib/Tools/mcBash/'
__PATH_to_mcBash=$__BASEPATH_EX
__PATH_to_Temp=$__PATH_to_mcBash'Temp'
__PATH_to_Log=$__PATH_to_mcBash'/log'
\ No newline at end of file
......@@ -6,4 +6,3 @@ __BASEPATH_EX='/home/dev/mcBash/'
# __PATH_to_mcBash=$__BASEPATH_EX'include/Lib/Tools/mcBash/'
__PATH_to_mcBash=$__BASEPATH_EX
__PATH_to_Temp=$__PATH_to_mcBash'Temp'
__PATH_to_Log=$__PATH_to_mcBash'/log'
\ No newline at end of file
......@@ -7,4 +7,4 @@ __BASEPATH_EX=$__THIS_DIR'../'
# __PATH_to_mcBash=$__BASEPATH_EX'include/Lib/Tools/mcBash/'
__PATH_to_mcBash=$__BASEPATH_EX
__PATH_to_Temp=$__PATH_to_mcBash'Temp'
__PATH_to_Log=$__PATH_to_mcBash'/log'
......@@ -5,8 +5,11 @@
# @param string $2 logfile (FILE exists and is writable)
#
mc_log() {
echo -e $0 $1 $2
if [ -w $2 ] ; then
echo "$(date +"%Y%m%d_%H%M%S") $1" >> $2
else
echo -e "bitte \"touch $2\" ausführen"
fi
}
......
......@@ -7,6 +7,7 @@ __PATH_to_mcBash=${__PATH_to_mcBash:-$__BASEPATH_EX}
__PATH_to_Temp=$__PATH_to_mcBash'Temp'
__THIS_DIR=$(pwd)'/'
__DATE="$(date +%Y-%m-%d)"
__PATH_to_Log=$__PATH_to_mcBash'/log/'
. "$__PATH_to_mcBash/fnc_mc_echo.inc.sh"
. "$__PATH_to_mcBash/fnc_mc_file.inc.sh"
......
......@@ -7,6 +7,11 @@
. "$__PATH_to_mcBash/include.inc.sh"
# mc_readPhpConfig "$__BASEPATH_EX/include/config.php"
echo -e "$__PATH_to_Log ddd"
logfile="$__PATH_to_Log/$0.log"
mc_log $logfile $logfile
mc_bashsu "ls" 1 $logfile
# software_apt='apache2 php5 mysql-server-5.1 php5-mysql php5-gd php-pear php5-xsl git phpunit php5-curl'
# prog='apt-get install apache2'
# mc_h2 "1"
......
Markdown is supported
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!