Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
P
proview
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Esteban Blanc
proview
Commits
0fc9f511
Commit
0fc9f511
authored
Jun 17, 2004
by
claes
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
*** empty log message ***
parent
d40331d0
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
18 additions
and
7 deletions
+18
-7
src/exp/com/src/os_linux/reload.sh
src/exp/com/src/os_linux/reload.sh
+18
-7
No files found.
src/exp/com/src/os_linux/reload.sh
View file @
0fc9f511
...
@@ -22,6 +22,20 @@ reload_classvolumes()
...
@@ -22,6 +22,20 @@ reload_classvolumes()
return
return
fi
fi
list
=
`
eval ls
-1d
$pwrp_db
/
*
.wb_load
`
echo
""
for
file
in
$list
;
do
volume
=
`
eval grep
pwr_eClass_ClassVolume
$file
|
awk
'{ print $2 }'
`
if
[
"
$volume
"
==
""
]
;
then
volume
=
`
eval grep
ClassVolume
$file
|
awk
'{ print $2 }'
`
volumelow
=
`
eval grep
ClassVolume
$file
|
awk
'{ print tolower($2) }'
`
fi
if
[
"
$volume
"
!=
""
]
;
then
echo
$file
fi
done
echo
""
reload_continue
"Pass create structfiles and loadfiles for classvolumes"
reload_continue
"Pass create structfiles and loadfiles for classvolumes"
list
=
`
eval ls
-1d
$pwrp_db
/
*
.wb_load
`
list
=
`
eval ls
-1d
$pwrp_db
/
*
.wb_load
`
...
@@ -207,11 +221,9 @@ reload_createload()
...
@@ -207,11 +221,9 @@ reload_createload()
rm
$pwrp_load
/ld_vol
*
.dat
rm
$pwrp_load
/ld_vol
*
.dat
for
cdb
in
$databases
;
do
for
cdb
in
$databases
;
do
if
[
$cdb
!=
"dbdirectory"
]
;
then
if
[
$cdb
!=
"directory"
]
;
then
source
pwrp_env.sh setdb
$cdb
echo
"-- Creating loadfiles for database
$cdb
"
echo
"-- Creating loadfiles for database
$cdb
"
wb_cmd
create load/class/all
wb_cmd
-v
$cdb
create load
fi
fi
done
done
reload_status
=
$reload__success
reload_status
=
$reload__success
...
@@ -312,13 +324,12 @@ usage()
...
@@ -312,13 +324,12 @@ usage()
Pass
Pass
classvolumes Create structfiles and loadfiles for classvolumes
dumpdb Dump database to textfile
\$
pwrp_db/'volume'.wb_dmp
dumpdb Dump database to textfile
\$
pwrp_db/'volume'.wb_dmp
classvolumes Create structfiles and loadfiles for classvolumes
renamedb Rename the old database database
renamedb Rename the old database database
dirvolume Load directory volume
dirvolume Load directory volume
loaddb Load the dump into the new database
loaddb Load the dump into the new database
compile Compile all plcprograms in the database
compile Compile all plcprograms in the database
removeload Remove old loadfiles.
createload Create new loadfiles.
createload Create new loadfiles.
createboot Create bootfiles for all nodes in the project.
createboot Create bootfiles for all nodes in the project.
...
@@ -355,7 +366,7 @@ echo ""
...
@@ -355,7 +366,7 @@ echo ""
echo
"-- Reloading volume
$databases
"
echo
"-- Reloading volume
$databases
"
echo
""
echo
""
passes
=
"dumpdb classvolumes renamedb dirvolume loaddb compile
removeload
createload createboot"
passes
=
"dumpdb classvolumes renamedb dirvolume loaddb compile createload createboot"
echo
"Pass:
$passes
"
echo
"Pass:
$passes
"
echo
""
echo
""
echo
-n
"Enter start pass [dumpdb] > "
echo
-n
"Enter start pass [dumpdb] > "
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
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 comment