Commit f956956b authored by Claes Sjöfors's avatar Claes Sjöfors

Docker files added

parent ee500847
ARG RELEASE=debian:10
FROM $RELEASE
ARG BUILD_RPI
ARG GITREPO
ARG INSTALL_UPDATE
ARG INSTALL_GIT
ARG INSTALL_BUILD
ARG INSTALL_RPI
ARG JDK_DIR
ENV DISPLAY :1
ENV DEBIAN_FRONTEND none_interactive
COPY ./build.sh ./build_pwrdemo.sh ./build_pkg.sh ./build_pwrtest01.sh ./build_rpi.sh ./
RUN $INSTALL_UPDATE
RUN $INSTALL_GIT
RUN apt-get install -y xserver-xorg-video-dummy
RUN git clone $GITREPO
#RUN mv proview pwr;
RUN $INSTALL_BUILD
RUN ./build.sh $JDK_DIR
RUN ./build_pwrdemo.sh
RUN ./build_pwrtest01.sh
RUN $INSTALL_RPI
RUN ./build_rpi.sh
RUN ./build_pkg.sh
ARG RELEASE=debian:10
FROM $RELEASE
ARG INSTALL_UPDATE
ARG INSTALL_PWR
ARG PKG_PWR
ARG PKG_PWRDEMO
COPY ./test_pwrdemo.sh ./$PKG_PWR ./$PKG_PWRDEMO ./
RUN $INSTALL_UPDATE
RUN $INSTALL_PWR
RUN dpkg -i $PKG_PWR
RUN dpkg -i $PKG_PWRDEMO
CMD ./test_pwrdemo.sh
ARG RELEASE=debian:10
FROM $RELEASE
ARG INSTALL_UPDATE
ARG INSTALL_PWRRT
ARG PKG_PWRRT
COPY ./test_pwrtest01a.sh ./$PKG_PWRRT ./pwrp_pkg_pwrtest01a_0001.tgz ./
RUN $INSTALL_UPDATE
RUN $INSTALL_PWRRT
RUN apt-get install -y iproute2
RUN dpkg -i $PKG_PWRRT
RUN mv ./pwrp_pkg_pwrtest01a_0001.tgz /home/pwrp/
CMD ./test_pwrtest01a.sh
ARG RELEASE=debian:10
FROM $RELEASE
ARG INSTALL_UPDATE
ARG INSTALL_PWRRT
ARG PKG_PWRRT
COPY ./test_pwrtest01b.sh ./$PKG_PWRRT ./pwrp_pkg_pwrtest01b_0001.tgz ./
RUN $INSTALL_UPDATE
RUN $INSTALL_PWRRT
RUN apt-get install -y iproute2
RUN dpkg -i $PKG_PWRRT
RUN mv ./pwrp_pkg_pwrtest01b_0001.tgz /home/pwrp/
CMD ./test_pwrtest01b.sh
ARG RELEASE=debian:10
FROM $RELEASE
ARG INSTALL_UPDATE
ARG INSTALL_PWRRT
ARG PKG_PWRRT
COPY ./test_pwrtest01c.sh ./$PKG_PWRRT ./pwrp_pkg_pwrtest01c_0001.tgz ./
RUN $INSTALL_UPDATE
RUN $INSTALL_PWRRT
RUN dpkg -i $PKG_PWRRT
RUN mv ./pwrp_pkg_pwrtest01c_0001.tgz /home/pwrp/
CMD ./test_pwrtest01c.sh
#!/bin/bash
JDK_DIR=$1
Xorg -noreset +extension GLX +extension RANDR +extension RENDER -config pwr/src/tools/dummy_display/xorg.conf :99 &
export DISPLAY=:99
export jdk=$JDK_DIR
touch /etc/proview.cnf
cd pwr
./build.sh
#!/bin/bash
set -e
cd pwr
root=`eval pwd`
if [ -e $root/src/exp/inc/src/pwr_version.h ]; then
verl=`eval cat $root/src/exp/inc/src/pwr_version.h | grep "\bpwrv_cPwrVersionStr\b" | awk '{print $3}'`
verl=${verl:1:6}
ver=${verl:0:2}${verl:3:1}${verl:5:1}
fi
# Setup pwre
export pwre_bin=$root/src/tools/pwre/src
export pwre_env_db=$root/pwre_db
source $pwre_bin/pwre_function
# Add pwre environment
unamestr=`eval uname`
machine=`eval uname -m`
if [ $machine == "amd64" ]; then
machine="x86_64"
fi
if [ $machine != "x86_64" ]; then
machine="x86"
fi
if [ $unamestr == "Darwin" ]; then
os="macos"
hw="x86_64"
elif [ $unamestr == "FreeBSD" ]; then
os="freebsd"
hw=$machine
else
os="linux"
hw=$machine
fi
btype="dbg"
ename=$ver$hw
desc=$verl
gui="gtk"
release=`eval grep ^NAME= /etc/os-release`
release=${release:6:6}
if [ "$release" == "Debian" ]; then
if [ $machine == "x86" ]; then
pkgname="deb"
else
pkgname="deb_"$machine
fi
elif [ "$release" == "Ubuntu" ]; then
if [ $machine == "x86" ]; then
pkgname="ubu"
else
pkgname="ubu_"$machine
fi
elif [ "$release" == "Raspia" ]; then
pkgname="raspbian"
fi
pwre init $ename
pwre build tools/pkg $pkgname
pwre build tools/pkg $pkgname src rpi
\ No newline at end of file
#!/bin/bash
set -e
cd pwr
root=`eval pwd`
if [ -e $root/src/exp/inc/src/pwr_version.h ]; then
verl=`eval cat $root/src/exp/inc/src/pwr_version.h | grep "\bpwrv_cPwrVersionStr\b" | awk '{print $3}'`
verl=${verl:1:6}
ver=${verl:0:2}${verl:3:1}${verl:5:1}
fi
# Setup pwre
export pwre_bin=$root/src/tools/pwre/src
export pwre_env_db=$root/pwre_db
source $pwre_bin/pwre_function
# Add pwre environment
unamestr=`eval uname`
machine=`eval uname -m`
if [ $machine == "amd64" ]; then
machine="x86_64"
fi
if [ $machine != "x86_64" ]; then
machine="x86"
fi
if [ $unamestr == "Darwin" ]; then
os="macos"
hw="x86_64"
elif [ $unamestr == "FreeBSD" ]; then
os="freebsd"
hw=$machine
else
os="linux"
hw=$machine
fi
btype="dbg"
ename=$ver$hw
desc=$verl
gui="gtk"
pwre init $ename
pwre module project
pwre build pwrdemo build src
#!/bin/bash
set -e
cd pwr
root=`eval pwd`
if [ -e $root/src/exp/inc/src/pwr_version.h ]; then
verl=`eval cat $root/src/exp/inc/src/pwr_version.h | grep "\bpwrv_cPwrVersionStr\b" | awk '{print $3}'`
verl=${verl:1:6}
ver=${verl:0:2}${verl:3:1}${verl:5:1}
fi
# Setup pwre
export pwre_bin=$root/src/tools/pwre/src
export pwre_env_db=$root/pwre_db
source $pwre_bin/pwre_function
# Add pwre environment
unamestr=`eval uname`
machine=`eval uname -m`
if [ $machine == "amd64" ]; then
machine="x86_64"
fi
if [ $machine != "x86_64" ]; then
machine="x86"
fi
if [ $unamestr == "Darwin" ]; then
os="macos"
hw="x86_64"
elif [ $unamestr == "FreeBSD" ]; then
os="freebsd"
hw=$machine
else
os="linux"
hw=$machine
fi
btype="dbg"
ename=$ver$hw
desc=$verl
gui="gtk"
pwre init $ename
pwre module project
pwre build pwrtest01 build src
#!/bin/bash
set -e
cd pwr
root=`eval pwd`
if [ -e $root/src/exp/inc/src/pwr_version.h ]; then
verl=`eval cat $root/src/exp/inc/src/pwr_version.h | grep "\bpwrv_cPwrVersionStr\b" | awk '{print $3}'`
verl=${verl:1:6}
ver=${verl:0:2}${verl:3:1}${verl:5:1}
fi
# Setup pwre
export pwre_bin=$root/src/tools/pwre/src
export pwre_env_db=$root/pwre_db
source $pwre_bin/pwre_function
# Add pwre environment
unamestr=`eval uname`
machine=`eval uname -m`
if [ $machine == "amd64" ]; then
machine="x86_64"
fi
if [ $machine != "x86_64" ]; then
machine="x86"
fi
if [ $unamestr == "Darwin" ]; then
os="macos"
hw="x86_64"
elif [ $unamestr == "FreeBSD" ]; then
os="freebsd"
hw=$machine
else
os="linux"
hw=$machine
fi
btype="dbg"
ename=$ver$hw
desc=$verl
gui="gtk"
pwre init $ename
btype="dbg"
ename=$ver$hw"rpi"
desc=$verl
gui="gtk"
if [ $gui == "qt" ]; then
export pwre_conf_qt=1
elif [ $gui == "gtk" ]; then
export pwre_conf_gtk=1
fi
pwre add $ename $root/src $root/rls/os_$os/hw_$hw $root/rls $btype $os arm "$desc"
pwre init $ename
export jdk=/usr/lib/jvm/java-11-openjdk-amd64
export pwre_cc=arm-linux-gnueabihf-gcc
export pwre_cxx=arm-linux-gnueabihf-g++
export pwre_ar=arm-linux-gnueabihf-ar
export pwre_host_exe=$pwre_broot/os_$os/hw_$hw/exp/exe
pwre configure --ebuild
pwre create all
pwre import rt
pwre ebuild rt
#!/bin/bash
release="debian:10"
release_name="deb"
build_rpi=1
gitrepo="-b stable http://10.255.164.96/git/x5-7-2/pwr"
install_update="apt-get update"
install_git="apt-get install -y git make"
install_build="apt-get install -y libgtk2.0-dev doxygen gcc g++ make libasound2-dev \
libdb5.3-dev libdb5.3++-dev openjdk-11-jdk libmariadb-dev \
libsqlite3-dev libhdf5-openmpi-dev librabbitmq-dev libusb-1.0.0-dev librsvg2-dev \
libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev"
install_rpi="apt-get install -y gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf"
install_pwr="apt-get install -y libgtk2.0-0 libasound2 \
libdb5.3 libdb5.3++ libsqlite3-0 librsvg2-2 g++ xterm libmariadb3 \
librabbitmq4 libusb-1.0-0 libhdf5-openmpi-103 librabbitmq4 \
libgstreamer1.0-0 libgstreamer-plugins-base1.0-0 openjdk-11-jdk \
xterm xfonts-100dpi sudo procps"
install_pwrrt="apt-get install -y libgtk2.0-0 libasound2 \
libdb5.3 libdb5.3++ libsqlite3-0 librsvg2-2 g++ xterm libmariadb3 \
librabbitmq4 libusb-1.0-0 libhdf5-openmpi-103 \
libgstreamer1.0-0 libgstreamer-plugins-base1.0-0 \
xterm xfonts-100dpi sudo procps"
jdk_dir=/usr/lib/jvm/java-11-openjdk-amd64
ver="5.7.2-1"
sver="57"
arch="amd64"
pkg_pwr="pwr"$sver"_"$ver"_"$arch".deb"
pkg_pwrdemo="pwrdemo"$sver"_"$ver"_"$arch".deb"
pkg_pwrrt="pwrrt_"$ver"_"$arch".deb"
pkg_pwrsev="pwrsev_"$ver"_"$arch".deb"
pkg_pwrrpi="pwrrpi"$sver"_"$ver"_"$arch".deb"
docker image build -t pwr:v1 -f Dockerfile.pwr \
--build-arg RELEASE=$release \
--build-arg BUILD_RPI=$build_rpi \
--build-arg GITREPO="$gitrepo" \
--build-arg INSTALL_UPDATE="$install_update" \
--build-arg INSTALL_GIT="$install_git" \
--build-arg INSTALL_BUILD="$install_build" \
--build-arg INSTALL_RPI="$install_rpi" \
--build-arg JDK_DIR=$jdk_dir \
./
docker container create --name tmp pwr:v1
docker container cp tmp:/pwr/rls/os_linux/hw_x86_64/bld/pkg/$pkg_pwr ./
docker container cp tmp:/pwr/rls/os_linux/hw_x86_64/bld/pkg/$pkg_pwrdemo ./
docker container cp tmp:/pwr/rls/os_linux/hw_x86_64/bld/pkg/$pkg_pwrrt ./
docker container cp tmp:/pwr/rls/os_linux/hw_x86_64/bld/pkg/$pkg_pwrsev ./
docker container cp tmp:/pwr/rls/os_linux/hw_x86_64/bld/pkg/$pkg_pwrrpi ./
docker container cp tmp:/pwr/rls/os_linux/hw_x86_64/bld/project/pwrtest01/bld/common/load/pwrp_pkg_pwrtest01a_0001.tgz ./
docker container cp tmp:/pwr/rls/os_linux/hw_x86_64/bld/project/pwrtest01/bld/common/load/pwrp_pkg_pwrtest01b_0001.tgz ./
docker container rm tmp
docker image build -t pwrdemo:v1 -f Dockerfile.pwrdemo \
--build-arg RELEASE=$release \
--build-arg INSTALL_UPDATE="$install_update" \
--build-arg INSTALL_PWR="$install_pwr" \
--build-arg PKG_PWR=$pkg_pwr \
--build-arg PKG_PWRDEMO=$pkg_pwrdemo \
./
docker run pwrdemo:v1
docker image build -t pwrtest01:v1 -f Dockerfile.pwrtest01 \
--build-arg RELEASE=$release \
--build-arg INSTALL_UPDATE="$install_update" \
--build-arg INSTALL_PWRRT="$install_pwr" \
--build-arg PKG_PWRRT=$pkg_pwrrt \
./
docker run pwrtest01:v1
#!/bin/bash
release="ubuntu:18.04"
build_rpi=1
gitrepo="-b stable http://10.255.164.96/git/x5-7-2/pwr"
install_update="apt-get update"
install_git="apt-get install -y git make"
install_build="apt-get install -y libgtk2.0-dev doxygen gcc g++ make libasound2-dev \
libdb5.3-dev libdb5.3++-dev openjdk-11-jdk libmariadb-dev \
libsqlite3-dev libhdf5-openmpi-dev librabbitmq-dev libusb-1.0.0-dev librsvg2-dev \
libgstreamer1.0-dev libgstreamer-plugins-base1.0-dev"
install_rpi="apt-get install -y gcc-arm-linux-gnueabihf g++-arm-linux-gnueabihf"
install_pwr="apt-get install -y libgtk2.0-0 libasound2 \
libdb5.3 libdb5.3++ libsqlite3-0 librsvg2-2 g++ xterm libmariadb3 \
librabbitmq4 libusb-1.0-0 libhdf5-openmpi-100 librabbitmq4 \
libgstreamer1.0-0 libgstreamer-plugins-base1.0-0 openjdk-11-jdk \
xterm xfonts-100dpi sudo procps"
install_pwrrt="apt-get install -y libgtk2.0-0 libasound2 \
libdb5.3 libdb5.3++ libsqlite3-0 librsvg2-2 g++ xterm libmariadb3 \
librabbitmq4 libusb-1.0-0 libhdf5-openmpi-100 \
libgstreamer1.0-0 libgstreamer-plugins-base1.0-0 \
xterm xfonts-100dpi sudo procps"
jdk_dir=/usr/lib/jvm/java-11-openjdk-amd64
ver="5.7.2-1"
sver="57"
arch="amd64"
pkg_pwr="pwr"$sver"_"$ver"_"$arch".deb"
pkg_pwrdemo="pwrdemo"$sver"_"$ver"_"$arch".deb"
pkg_pwrrt="pwrrt_"$ver"_"$arch".deb"
pkg_pwrsev="pwrsev_"$ver"_"$arch".deb"
pkg_pwrrpi="pwrrpi"$sver"_"$ver"_"$arch".deb"
docker image build -t pwr:v1 -f Dockerfile.pwr \
--build-arg RELEASE=$release \
--build-arg BUILD_RPI=$build_rpi \
--build-arg GITREPO="$gitrepo" \
--build-arg INSTALL_UPDATE="$install_update" \
--build-arg INSTALL_GIT="$install_git" \
--build-arg INSTALL_BUILD="$install_build" \
--build-arg INSTALL_RPI="$install_rpi" \
--build-arg JDK_DIR=$jdk_dir \
./
docker container create --name tmp pwr:v1
docker container cp tmp:/pwr/rls/os_linux/hw_x86_64/bld/pkg/$pkg_pwr ./
docker container cp tmp:/pwr/rls/os_linux/hw_x86_64/bld/pkg/$pkg_pwrdemo ./
docker container cp tmp:/pwr/rls/os_linux/hw_x86_64/bld/pkg/$pkg_pwrrt ./
docker container cp tmp:/pwr/rls/os_linux/hw_x86_64/bld/pkg/$pkg_pwrsev ./
docker container cp tmp:/pwr/rls/os_linux/hw_x86_64/bld/pkg/$pkg_pwrrpi ./
docker container cp tmp:/pwr/rls/os_linux/hw_x86_64/bld/project/pwrtest01/bld/common/load/pwrp_pkg_pwrtest01a_0001.tgz ./
docker container cp tmp:/pwr/rls/os_linux/hw_x86_64/bld/project/pwrtest01/bld/common/load/pwrp_pkg_pwrtest01b_0001.tgz ./
docker container cp tmp:/pwr/rls/os_linux/hw_x86_64/bld/project/pwrtest01/bld/common/load/pwrp_pkg_pwrtest01c_0001.tgz ./
docker container rm tmp
docker image build -t pwrdemo:v1 -f Dockerfile.pwrdemo \
--build-arg RELEASE=$release \
--build-arg INSTALL_UPDATE="$install_update" \
--build-arg INSTALL_PWR="$install_pwr" \
--build-arg PKG_PWR=$pkg_pwr \
--build-arg PKG_PWRDEMO=$pkg_pwrdemo \
./
#docker run pwrdemo:v1
#docker image build -t pwrtest01a:v1 -f Dockerfile.pwrtest01a \
# --build-arg RELEASE=$release \
# --build-arg INSTALL_UPDATE="$install_update" \
# --build-arg INSTALL_PWRRT="$install_pwr" \
# --build-arg PKG_PWRRT=$pkg_pwrrt \
# ./
#docker image build -t pwrtest01b:v1 -f Dockerfile.pwrtest01b \
# --build-arg RELEASE=$release \
# --build-arg INSTALL_UPDATE="$install_update" \
# --build-arg INSTALL_PWRRT="$install_pwr" \
# --build-arg PKG_PWRRT=$pkg_pwrrt \
# ./
docker image build -t pwrtest01c:v1 -f Dockerfile.pwrtest01c \
--build-arg RELEASE=$release \
--build-arg INSTALL_UPDATE="$install_update" \
--build-arg INSTALL_PWRRT="$install_pwr" \
--build-arg PKG_PWRRT=$pkg_pwrrt \
./
#docker run --ip="172.17.0.99" pwrtest01a:v1
#docker run --ip="172.17.0.99" pwrtest01b:v1
docker run pwrtest01c:v1
#!/bin/bash
echo "Here in test_pwrdemo.sh"
su - pwrp
cd /home/pwrp
source .bashrc
source $pwra_db/pwra_env.sh set project pwrdemo57
export PWR_BUS_ID=999
# Rename boot, node and plcfiles
nname=`eval uname -n`
bootfile=`eval ls -1 $pwrp_load/ld_boot*.dat`
nodefile=`eval ls -1 $pwrp_load/ld_node*.dat`
plcfile=`eval ls -1 $pwrp_exe/plc_*_0999_plc | sed -n '1p'`
echo "19-MAR-2020 17:06:54.32" > $pwrp_load/ld_boot_"$nname"_0999.dat
echo "pwrdemo" >> $pwrp_load/ld_boot_"$nname"_0999.dat
echo "Common" >> $pwrp_load/ld_boot_"$nname"_0999.dat
echo "plc_"$nname"_0999_plc" >> $pwrp_load/ld_boot_"$nname"_0999.dat
echo "VolPwrDemo 0.254.254.200" >> $pwrp_load/ld_boot_"$nname"_0999.dat
echo "$nname 0.254.254.200 127.0.0.1 0 0 0 0 600000 0.002000 0 0 - -" > $pwrp_load/ld_node_"$nname"_0999.dat
echo "old plcfile $plcfile"
echo "new plcfile $pwrp_exe/plc_"$nname"_0999_plc"
mv $plcfile $pwrp_exe/"plc_"$nname"_0999_plc"
# Start project
rt_ini&
sleep 10
ps aux
ra_status
#!/bin/bash
echo "Here in test_pwrtest01a.sh"
su - pwrp
cd /home/pwrp
pwd
source .bashrc
pwd
ls -l
export PWR_BUS_ID=999
pwr_pkg.sh -i /home/pwrp/pwrp_pkg_pwrtest01a_0001.tgz
# Rename boot, node and plcfiles
nname=`eval uname -n`
bootfile=`eval ls -1 $pwrp_load/ld_boot*.dat`
nodefile=`eval ls -1 $pwrp_load/ld_node*.dat`
plcfile=`eval ls -1 $pwrp_exe/plc_*_0999_plc`
echo "19-MAR-2020 17:06:54.32" > $pwrp_load/ld_boot_"$nname"_0999.dat
echo "pwrtest01" >> $pwrp_load/ld_boot_"$nname"_0999.dat
echo "Common" >> $pwrp_load/ld_boot_"$nname"_0999.dat
echo "plc_"$nname"_0999_plc" >> $pwrp_load/ld_boot_"$nname"_0999.dat
echo "VolPwrTest01a 0.254.254.201" >> $pwrp_load/ld_boot_"$nname"_0999.dat
echo "$nname 0.254.254.201 172.17.0.2 0 0 0 0 600000 0.002000 0 0 - -" > $pwrp_load/ld_node_"$nname"_0999.dat
echo "pwrtest01b 0.254.254.202 172.17.0.3 0 0 0 0 600000 0.002000 0 0 - -" >> $pwrp_load/ld_node_"$nname"_0999.dat
mv $plcfile $pwrp_exe/"plc_"$nname"_0999_plc"
ip address
# Start project
rt_ini -i&
sleep 10
ps aux
i=0
while [ $i -lt 100 ]; do
ra_status
sleep 2
let i=i+1
done
#!/bin/bash
echo "Here in test_pwrtest01b.sh"
su - pwrp
cd /home/pwrp
pwd
source .bashrc
pwd
ls -l
export PWR_BUS_ID=999
pwr_pkg.sh -i /home/pwrp/pwrp_pkg_pwrtest01b_0001.tgz
# Rename boot, node and plcfiles
nname=`eval uname -n`
bootfile=`eval ls -1 $pwrp_load/ld_boot*.dat`
nodefile=`eval ls -1 $pwrp_load/ld_node*.dat`
plcfile=`eval ls -1 $pwrp_exe/plc_*_0999_plc`
echo "19-MAR-2020 17:06:54.32" > $pwrp_load/ld_boot_"$nname"_0999.dat
echo "pwrtest01" >> $pwrp_load/ld_boot_"$nname"_0999.dat
echo "Common" >> $pwrp_load/ld_boot_"$nname"_0999.dat
echo "plc_"$nname"_0999_plc" >> $pwrp_load/ld_boot_"$nname"_0999.dat
echo "VolPwrTest01b 0.254.254.202" >> $pwrp_load/ld_boot_"$nname"_0999.dat
echo "$nname 0.254.254.202 172.17.0.3 0 0 0 0 600000 0.002000 0 0 - -" > $pwrp_load/ld_node_"$nname"_0999.dat
echo "pwrtest01a 0.254.254.201 172.17.0.2 0 0 0 0 600000 0.002000 0 0 - -" >> $pwrp_load/ld_node_"$nname"_0999.dat
mv $plcfile $pwrp_exe/"plc_"$nname"_0999_plc"
ip address
# Start project
rt_ini -i&
sleep 10
ps aux
ra_status
i=0
while [ $i -lt 100 ]; do
ra_status
sleep 2
let i=i+1
done
\ No newline at end of file
#!/bin/bash
echo "Here in test_pwrtest01b.sh"
su - pwrp
cd /home/pwrp
pwd
source .bashrc
pwd
ls -l
export PWR_BUS_ID=999
pwr_pkg.sh -i /home/pwrp/pwrp_pkg_pwrtest01c_0001.tgz
# Rename boot, node and plcfiles
nname=`eval uname -n`
bootfile=`eval ls -1 $pwrp_load/ld_boot*.dat`
nodefile=`eval ls -1 $pwrp_load/ld_node*.dat`
plcfile=`eval ls -1 $pwrp_exe/plc_*_0999_plc`
echo "19-MAR-2020 17:06:54.32" > $pwrp_load/ld_boot_"$nname"_0999.dat
echo "pwrtest01" >> $pwrp_load/ld_boot_"$nname"_0999.dat
echo "Common" >> $pwrp_load/ld_boot_"$nname"_0999.dat
echo "plc_"$nname"_0999_plc" >> $pwrp_load/ld_boot_"$nname"_0999.dat
echo "VolPwrTest01c 0.254.254.203" >> $pwrp_load/ld_boot_"$nname"_0999.dat
echo "$nname 0.254.254.203 127.0.0.1 0 0 0 0 600000 0.002000 0 0 - -" > $pwrp_load/ld_node_"$nname"_0999.dat
mv $plcfile $pwrp_exe/"plc_"$nname"_0999_plc"
ip address
# Start project
rt_ini -i&
sleep 10
ps aux
ra_status
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment