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 ea71983f
authored
Dec 05, 2013
by
sn
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
initial mysql import
1 parent
8fe3b59d
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
44 additions
and
0 deletions
bin/mcImportMysql.sh
bin/networkscan.sh
include.inc.sh
bin/mcImportMysql.sh
0 → 100755
View file @
ea71983
#!/bin/bash
#
# @package freeSN
# @author dev@mensch.coop
#
. basepath.inc.sh
.
"
$__PATH_to_mcBash
/include.inc.sh"
mc_h1
$0
$1
$2
$3
mc_parameter
"1"
"1"
"
$1
"
"mysql.sql.tar.gz import Datei"
mc_parameter
"2"
"1"
"
$2
"
"mysql Datenbank"
mc_parameter
"3"
"0"
"
$3
"
"mysql Benutzer"
mc_parameter
"4"
"0"
"
$4
"
"mysql Passwort"
if
[
-z
$3
]
;
then
user
=
'root'
else
user
=
$3
fi
if
[
-z
$4
]
;
then
password
=
' -p '
else
password
=
" --password=
$4
"
fi
tar -xzf
$1
$__PATH_to_Temp
/
$1
.sql
mc_bashsu
"mysql -u
$user
$password
$2
<
$1
.sql"
\ No newline at end of file
bin/networkscan.sh
0 → 100755
View file @
ea71983
#!/bin/bash
. basepath.inc.sh
.
"
$__PATH_to_mcBash
/include.inc.sh"
mc_h2
"network scan tools"
mc_bashsu
"netstat -tulpen "
$1
mc_bashsu
"lsof -i"
$1
include.inc.sh
View file @
ea71983
...
...
@@ -11,3 +11,4 @@ __DATE="$(date +%Y-%m-%d)"
.
"
$__PATH_to_mcBash
/fnc_mc_echo.inc.sh"
.
"
$__PATH_to_mcBash
/fnc_mc_file.inc.sh"
.
"
$__PATH_to_mcBash
/fnc_mc_dialog.inc.sh"
.
"
$__PATH_to_mcBash
/lib/fnc_mc_parameter.inc.sh"
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