Skip to content
Toggle navigation
Projects
Groups
Snippets
Help
ncBash
/
mcBash
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Settings
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Commit 979244a1
authored
Dec 05, 2013
by
sn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
1 parent
38192597
Show whitespace changes
Inline
Side-by-side
Showing
6 changed files
with
10 additions
and
5 deletions
basepath.inc.sh
basepath.inc.sh_ausserhalb_wenn_mcBash_in_home_dev
bin/basepath.inc.sh
fnc_mc_echo.inc.sh
include.inc.sh
test.sh
basepath.inc.sh
View file @
979244a
...
...
@@ -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
basepath.inc.sh_ausserhalb_wenn_mcBash_in_home_dev
View file @
979244a
...
...
@@ -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
bin/basepath.inc.sh
View file @
979244a
...
...
@@ -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'
fnc_mc_echo.inc.sh
View file @
979244a
...
...
@@ -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
}
...
...
include.inc.sh
View file @
979244a
...
...
@@ -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"
...
...
test.sh
View file @
979244a
...
...
@@ -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"
...
...
Write
Preview
Markdown
is supported
Attach a file
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to post a comment