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 6e3d965f
authored
Dec 05, 2013
by
sn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
...
1 parent
979244a1
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
4 deletions
bin/ncExportMysql.sh
fnc_mc_echo.inc.sh
bin/ncExportMysql.sh
View file @
6e3d965
...
@@ -8,7 +8,7 @@
...
@@ -8,7 +8,7 @@
. basepath.inc.sh
. basepath.inc.sh
.
"
$__PATH_to_mcBash
/include.inc.sh"
.
"
$__PATH_to_mcBash
/include.inc.sh"
execute
=
1
execute
=
0
logfile
=
"
$__PATH_to_Log
/
$1
.log"
logfile
=
"
$__PATH_to_Log
/
$1
.log"
mc_h1
"
$0
$1
$2
$3
(logfile=
$logfile
)"
mc_h1
"
$0
$1
$2
$3
(logfile=
$logfile
)"
...
...
fnc_mc_echo.inc.sh
View file @
6e3d965
...
@@ -5,7 +5,7 @@
...
@@ -5,7 +5,7 @@
# @param string $2 logfile (FILE exists and is writable)
# @param string $2 logfile (FILE exists and is writable)
#
#
mc_log
()
{
mc_log
()
{
echo
-e
$0
$1
$2
#
echo -e $0 $1 $2
if
[
-w
$2
]
;
then
if
[
-w
$2
]
;
then
echo
"
$(
date +
"%Y%m%d_%H%M%S"
)
$1
"
>>
$2
echo
"
$(
date +
"%Y%m%d_%H%M%S"
)
$1
"
>>
$2
else
else
...
@@ -30,7 +30,6 @@ mc_h2() {
...
@@ -30,7 +30,6 @@ mc_h2() {
#
#
mc_e
()
{
mc_e
()
{
echo
-e
"
\n
$1
"
echo
-e
"
\n
$1
"
mc_log
$1
$2
}
}
#
#
...
@@ -48,7 +47,7 @@ mc_bashsu() {
...
@@ -48,7 +47,7 @@ mc_bashsu() {
fi
fi
fi
fi
mc_log
$1
$3
mc_log
"
$1
"
"
$3
"
}
}
...
...
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