OSDN Git Service
(root)
/
bashutil
/
bashutil.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
d4735de
)
write comment.
author
iga
<tosiki@iga-pc3>
Wed, 29 Jan 2014 20:51:43 +0000
(
05:51
+0900)
committer
iga
<tosiki@iga-pc3>
Wed, 29 Jan 2014 20:51:43 +0000
(
05:51
+0900)
main/bumsg.fnc
patch
|
blob
|
history
test/test001.sh
patch
|
blob
|
history
diff --git
a/main/bumsg.fnc
b/main/bumsg.fnc
index
73d3a84
..
b8ac7f6
100644
(file)
--- a/
main/bumsg.fnc
+++ b/
main/bumsg.fnc
@@
-1,6
+1,22
@@
#!/bin/sh
+# @(#) bumsg.fnc ver1.0
+#
+# Usage:
+# . bumsg.fnc
+# logmsg 'M001' 'Bash'
+#
+# Description:
+# Functions for logging messages.
+#
+# @author tosiki.iga@nifty.ne.jp
+# @version 1.0 2014-01-29 Created newly.
+#####################################################################
-bumsg() {
+# write message to log
+# @param $1 message id
+# @param $2 argument 1
+# @param $3 argument 2
+logmsg() {
local msgid=$1
local arg1=$2
local arg2=$3
diff --git
a/test/test001.sh
b/test/test001.sh
index
1f144a1
..
e1c246a
100644
(file)
--- a/
test/test001.sh
+++ b/
test/test001.sh
@@
-1,5
+1,5
@@
#!/bin/sh
. ../main/bumsg.fnc
-. .
./template/message
.msg
+. .
/test001
.msg
-
bu
msg 'M001' 'Bash'
+
log
msg 'M001' 'Bash'