Skip to content

Commit f6cadc7

Browse files
committed
added support for egiona/ns3-base:*-boosted images
1 parent 35f07e5 commit f6cadc7

File tree

17 files changed

+1531
-1
lines changed

17 files changed

+1531
-1
lines changed

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,13 @@
11
# Changelog
22

3+
## Release v4.1.0
4+
5+
[Link to release][v410]
6+
7+
Introduced support for [`egiona/ns3-base`][ns3-base] image tags with upgraded Boost C++ libraries.
8+
9+
Please refer to respective [v1.1.0 release notes][ns3-base-v110] for further details.
10+
311
## Release v4.0.0
412

513
[Link to release][v400]
@@ -108,6 +116,7 @@ Supported versions:
108116
[v201]: https://github.com/SENSES-Lab-Sapienza/ns3-woss-docker/releases/tag/v2.0.1
109117
[v301]: https://github.com/SENSES-Lab-Sapienza/ns3-woss-docker/releases/tag/v3.0.1
110118
[v400]: https://github.com/emanuelegiona/ns3-woss-docker/releases/tag/v4.0.0
119+
[v410]: https://github.com/emanuelegiona/ns3-woss-docker/releases/tag/v4.1.0
111120

112121
<!--- v1.1.0 --->
113122
[ns3-cmake]: https://www.nsnam.org/docs/manual/html/working-with-cmake.html
@@ -118,3 +127,6 @@ Supported versions:
118127

119128
<!-- v4.0.0 -->
120129
[ns3-base]: https://github.com/emanuelegiona/ns3-base-docker/
130+
131+
<!-- v4.1.0 -->
132+
[ns3-base-v110]: https://github.com/emanuelegiona/ns3-base-docker/blob/boosted/CHANGELOG.md#release-v110

README.md

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,8 +18,11 @@ Docker image name: [**`egiona/ns3-woss`**][docker-hub-repo].
1818
| :---: | :---: | :---: | :---: |
1919
| [`u22.04-n3.40-w1.12.6`][img5] | [`u22.04-n3.40`][ns3-base-changelog] | [1.12.6][woss-changelog] | [link][file5] |
2020
| [`u20.04-n3.40-w1.12.6`][img4] | [`u20.04-n3.40`][ns3-base-changelog] | [1.12.6][woss-changelog] | [link][file5] |
21+
| [`u18.04-n3.35-boosted-w1.12.6`][img3b] | [`u18.04-n3.35-boosted`][ns3-base-changelog] | [1.12.6][woss-changelog] | [link][file3b] |
2122
| [`u18.04-n3.35-w1.12.6`][img3] | [`u18.04-n3.35`][ns3-base-changelog] | [1.12.6][woss-changelog] | [link][file3] |
23+
| [`u18.04-n3.34-boosted-w1.12.6`][img2b] | [`u18.04-n3.34-boosted`][ns3-base-changelog] | [1.12.6][woss-changelog] | [link][file2b] |
2224
| [`u18.04-n3.34-w1.12.6`][img2] | [`u18.04-n3.34`][ns3-base-changelog] | [1.12.6][woss-changelog] | [link][file2] |
25+
| [`u18.04-n3.33-boosted-w1.12.6`][img1b] | [`u18.04-n3.33-boosted`][ns3-base-changelog] | [1.12.6][woss-changelog] | [link][file1b] |
2326
| [`u18.04-n3.33-w1.12.6`][img1] | [`u18.04-n3.33`][ns3-base-changelog] | [1.12.6][woss-changelog] | [link][file1] |
2427

2528
Full changelog can be found at [this page](./CHANGELOG.md).
@@ -177,7 +180,7 @@ However, ns-3 and WOSS are distributed under their respective licenses:
177180
All installed packages may also be subject to their own license, and the license
178181
chosen for the Docker images does not necessarily apply to them.
179182

180-
**Diclaimer: Docker, Ubuntu, ns-3, WOSS and other cited or included software belongs to their respective owners.**
183+
**Diclaimer: Docker, Ubuntu, ns-3, Boost, WOSS and other cited or included software belongs to their respective owners.**
181184

182185

183186

@@ -201,13 +204,19 @@ chosen for the Docker images does not necessarily apply to them.
201204

202205
[img5]: https://hub.docker.com/r/egiona/ns3-woss/tags?page=1&name=u22.04-n3.40-w1.12.6
203206
[img4]: https://hub.docker.com/r/egiona/ns3-woss/tags?page=1&name=u20.04-n3.40-w1.12.6
207+
[img3b]: https://hub.docker.com/r/egiona/ns3-woss/tags?page=1&name=u18.04-n3.35-boosted-w1.12.6
204208
[img3]: https://hub.docker.com/r/egiona/ns3-woss/tags?page=1&name=u18.04-n3.35-w1.12.6
209+
[img2b]: https://hub.docker.com/r/egiona/ns3-woss/tags?page=1&name=u18.04-n3.34-boosted-w1.12.6
205210
[img2]: https://hub.docker.com/r/egiona/ns3-woss/tags?page=1&name=u18.04-n3.34-w1.12.6
211+
[img1b]: https://hub.docker.com/r/egiona/ns3-woss/tags?page=1&name=u18.04-n3.33-boosted-w1.12.6
206212
[img1]: https://hub.docker.com/r/egiona/ns3-woss/tags?page=1&name=u18.04-n3.33-w1.12.6
207213
[file5]: ./u22.04-n3.40-w1.12.6/Dockerfile
208214
[file4]: ./u20.04-n3.40-w1.12.6/Dockerfile
215+
[file3b]: ./u18.04-n3.35-boosted-w1.12.6/Dockerfile
209216
[file3]: ./u18.04-n3.35-w1.12.6/Dockerfile
217+
[file2b]: ./u18.04-n3.34-boosted-w1.12.6/Dockerfile
210218
[file2]: ./u18.04-n3.34-w1.12.6/Dockerfile
219+
[file1b]: ./u18.04-n3.33-boosted-w1.12.6/Dockerfile
211220
[file1]: ./u18.04-n3.33-w1.12.6/Dockerfile
212221

213222
[docker-install]: https://docs.docker.com/engine/install/
Lines changed: 111 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,111 @@
1+
# syntax=docker/dockerfile:1
2+
3+
# MIT License
4+
5+
# Copyright (c) 2025 Emanuele Giona <giona.emanuele@gmail.com> (SENSES Lab,
6+
# Sapienza University of Rome)
7+
8+
# Permission is hereby granted, free of charge, to any person obtaining a copy
9+
# of this software and associated documentation files (the "Software"), to deal
10+
# in the Software without restriction, including without limitation the rights
11+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12+
# copies of the Software, and to permit persons to whom the Software is
13+
# furnished to do so, subject to the following conditions:
14+
15+
# The above copyright notice and this permission notice shall be included in all
16+
# copies or substantial portions of the Software.
17+
18+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24+
# SOFTWARE.
25+
26+
FROM egiona/ns3-base:u18.04-n3.33-boosted
27+
28+
LABEL maintainer="giona.emanuele@gmail.com"
29+
LABEL version="0.1"
30+
LABEL description="ns3-base:u18.04-n3.33-boosted and WOSS 1.12.6"
31+
32+
ARG WOSS_VER="1.12.6"
33+
ARG TMP_DOWNLOAD_DIR="/home/downloads"
34+
ARG WOSS_LIB_BASE="/home/woss"
35+
36+
# ===== Evinronment variables available in containers too =====
37+
# ns3-base provides the following environment variables already:
38+
# - NS3_DEBUG_DIR: installation directory for ns-3 in 'debug' profile
39+
# - NS3_OPTIMIZED_DIR: installation directory for ns-3 in 'optimized' profile
40+
# - NS3_PY_ENV: ns-3 dedicated Python 3 environment
41+
# - NEW_BOOST_INCLUDES: path to parent directory of upgraded Boost C++ libraries (headers)
42+
# - NEW_BOOST_LIBS: path to parent directory of upgraded Boost C++ libraries (library objects)
43+
44+
# WOSS-related variables
45+
ENV WOSS_LIB_SRC="$WOSS_LIB_BASE/WOSS-$WOSS_VER"
46+
ENV WOSS_LIB_DIR="/home/woss_lib"
47+
ENV WOSS_REQS_DIR="/home/woss_reqs"
48+
49+
# ===== Basic OS updates and ns-3 requirements =====
50+
ARG DEBIAN_FRONTEND=noninteractive
51+
RUN apt -y update && apt -y upgrade && \
52+
# ===== Downloading: WOSS requirements and library =====
53+
cd /home && mkdir "$TMP_DOWNLOAD_DIR" && cd "$TMP_DOWNLOAD_DIR" && \
54+
# WOSS requirements
55+
mkdir "$WOSS_LIB_BASE" && mkdir "$WOSS_REQS_DIR" && cd "$TMP_DOWNLOAD_DIR" && \
56+
wget http://oalib.hlsresearch.com/AcousticsToolbox/at_2023_5_18.zip && \
57+
unzip at_2023_5_18.zip && rm at/Makefile && mv at "$WOSS_REQS_DIR/" && \
58+
wget https://github.com/HDFGroup/hdf5/archive/refs/tags/hdf5-1_14_2.tar.gz && \
59+
tar -xf hdf5-1_14_2.tar.gz && \
60+
wget https://downloads.unidata.ucar.edu/netcdf-c/4.9.2/netcdf-c-4.9.2.tar.gz && \
61+
tar -xf netcdf-c-4.9.2.tar.gz && \
62+
wget https://downloads.unidata.ucar.edu/netcdf-cxx/4.3.1/netcdf-cxx4-4.3.1.tar.gz && \
63+
tar -xf netcdf-cxx4-4.3.1.tar.gz && \
64+
# WOSS library source and ns-3 module
65+
wget "https://github.com/signetlabdei/WOSS/archive/refs/tags/$WOSS_VER.tar.gz" && \
66+
tar -xf "$WOSS_VER.tar.gz" && mv "WOSS-$WOSS_VER" "$WOSS_LIB_BASE" && \
67+
wget "https://github.com/MetalKnight/woss-ns3/archive/refs/tags/v$WOSS_VER.tar.gz" && \
68+
tar -xf "v$WOSS_VER.tar.gz" && mv "woss-ns3-$WOSS_VER" "$WOSS_LIB_BASE"
69+
70+
# ===== Installing: WOSS requirements and WOSS library =====
71+
COPY at/Makefile "$WOSS_REQS_DIR/at/"
72+
RUN cd "$WOSS_REQS_DIR/at" && \
73+
make clean && make && \
74+
echo "export PATH=$PATH:$WOSS_REQS_DIR/at/Bellhop/" >> ~/.bashrc && \
75+
# HDF5
76+
cd "$TMP_DOWNLOAD_DIR" && cd hdf5-hdf5-1_14_2 && \
77+
./configure --enable-shared --prefix="$WOSS_REQS_DIR" && \
78+
make && make install && \
79+
# NetCDF-C
80+
cd ../netcdf-c-4.9.2 && \
81+
./configure --prefix="$WOSS_REQS_DIR" --enable-netcdf-4 --enable-shared --disable-dap --disable-byterange CPPFLAGS="$CPPFLAGS -I$WOSS_REQS_DIR/include" LDFLAGS="$LDFLAGS -L$WOSS_REQS_DIR/lib" && \
82+
make && make install && \
83+
# NetCDF-C++
84+
cd ../netcdf-cxx4-4.3.1 && \
85+
./configure --prefix="$WOSS_REQS_DIR" --enable-shared CPPFLAGS="$CPPFLAGS -I$WOSS_REQS_DIR/include" LDFLAGS="$LDFLAGS -L$WOSS_REQS_DIR/lib" && \
86+
make && make install && \
87+
# WOSS library
88+
mkdir "$WOSS_LIB_DIR" && cd "$WOSS_LIB_SRC" && \
89+
./autogen.sh && ./configure --with-netcdf4="$WOSS_REQS_DIR" --with-pthread --prefix="$WOSS_LIB_DIR" && \
90+
make && make install
91+
92+
# ===== Building: ns-3 with WOSS; Cleanup: temporary downloads directory =====
93+
ENV WOSS_LIB_DIR="/home/woss_lib/lib"
94+
ENV CXX_CONFIG="-Wall -Werror -Wno-unused-variable"
95+
96+
COPY ns3-build/* ns3-utils/* /home/
97+
RUN cd /home && \
98+
# Build: debug
99+
cp -R "$WOSS_LIB_BASE/woss-ns3-$WOSS_VER/" "$NS3_DEBUG_DIR/src/" && \
100+
mv "$NS3_DEBUG_DIR/src/woss-ns3-$WOSS_VER" "$NS3_DEBUG_DIR/src/woss-ns3" && \
101+
chmod +x build-debug.sh && ./build-debug.sh && \
102+
# Build: optimized
103+
cp -R "$WOSS_LIB_BASE/woss-ns3-$WOSS_VER/" "$NS3_OPTIMIZED_DIR/src/" && \
104+
mv "$NS3_OPTIMIZED_DIR/src/woss-ns3-$WOSS_VER" "$NS3_OPTIMIZED_DIR/src/woss-ns3" && \
105+
chmod +x build-optimized.sh && ./build-optimized.sh && \
106+
# Utility for switching between profiles
107+
# [ ns3-base already provides the .bashrc signal trap ]
108+
# Cleanup
109+
rm -rf "$TMP_DOWNLOAD_DIR" && ./build-debug.sh
110+
111+
CMD ["/bin/bash"]
Lines changed: 89 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,89 @@
1+
# Copyright (C) 2023 Emanuele Giona <giona.emanuele@gmail.com> (SENSES Lab,
2+
# Sapienza University of Rome)
3+
#
4+
# Adapted from Michael B. Porter
5+
#
6+
# This program is free software: you can redistribute it and/or modify
7+
# it under the terms of the GNU General Public License as published by
8+
# the Free Software Foundation, either version 3 of the License, or
9+
# (at your option) any later version.
10+
#
11+
# This program is distributed in the hope that it will be useful,
12+
# but WITHOUT ANY WARRANTY; without even the implied warranty of
13+
# MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
14+
# GNU General Public License for more details.
15+
#
16+
# You should have received a copy of the GNU General Public License
17+
# along with this program. If not, see <http://www.gnu.org/licenses/>.
18+
19+
#
20+
# To install the Acoustics Toolbox:
21+
#
22+
# 1) Uncomment the appropriate lines below to select your FORTRAN compiler
23+
# (also be sure to comment out all of the lines corresponding to the other compilers).
24+
25+
# 2) If you're using gfortran check the -march switch that selects the chip you're using.
26+
# Usually -march=native works
27+
28+
# 3) From a command line shell, run:
29+
# % make clean
30+
# % make
31+
32+
# on some machines you need to say -mcmodel=medium (or large) to allow for variables larger than 2 gig
33+
34+
# ______________________________________________________________________________
35+
36+
# *** GNU Compiler Collection GFORTRAN
37+
export FC=gfortran
38+
export FFLAGS= -march=native -Bstatic -Waliasing -Wampersand -Wintrinsics-std -Wno-tabs -Wintrinsic-shadow -Wline-truncation -std=gnu -O1 -ffast-math -funroll-all-loops -fomit-frame-pointer -mtune=native
39+
export RM=rm
40+
export CC=gcc
41+
export CFLAGS=-g
42+
export FFLAGS+= -I../misc -I../tslib
43+
export LAPACK_LIBS = -llapack
44+
45+
all:
46+
(cd misc; make -k all)
47+
(cd tslib; make -k all)
48+
(cd Bellhop; make -k all)
49+
(cd Kraken; make -k all)
50+
(cd KrakenField; make -k all)
51+
# (cd Krakel; make -k all)
52+
(cd Scooter; make -k all)
53+
@echo " "
54+
@echo "***********************************"
55+
@echo "***** Acoustics Toolbox built *****"
56+
@echo "***********************************"
57+
58+
install:
59+
(cd misc; make -k all)
60+
(cd tslib; make -k all)
61+
(cd Bellhop; make -k install)
62+
(cd Kraken; make -k install)
63+
(cd KrakenField; make -k install)
64+
# (cd Krakel; make -k install)
65+
(cd Scooter; make -k install)
66+
@echo " "
67+
@echo "***************************************"
68+
@echo "***** Acoustics Toolbox installed *****"
69+
@echo "***************************************"
70+
71+
clean:
72+
-rm -f bin/*.exe
73+
find . -name '*.dSYM' -exec rm -r {} +
74+
find . -name '*.png' -exec rm -r {} +
75+
find . -name '*.eps' -exec rm -r {} +
76+
find . -name '*.mod' -exec rm -r {} +
77+
find . -name '*.grn' -exec rm -r {} +
78+
find . -name '*.shd' -exec rm -r {} +
79+
find . -name '*.shd.mat' -exec rm -r {} +
80+
find . -name '*.prt' -exec rm -r {} +
81+
(cd misc; make -k -i clean)
82+
(cd tslib; make -k -i clean)
83+
(cd Bellhop; make -k -i clean)
84+
(cd Kraken; make -k -i clean)
85+
(cd KrakenField; make -k -i clean)
86+
(cd Krakel; make -k -i clean)
87+
(cd Scooter; make -k -i clean)
88+
(cd tests; make -k -i clean)
89+
Lines changed: 60 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,60 @@
1+
#!/bin/bash
2+
3+
# MIT License
4+
5+
# Copyright (c) 2024 Emanuele Giona <giona.emanuele@gmail.com> (SENSES Lab,
6+
# Sapienza University of Rome)
7+
8+
# Permission is hereby granted, free of charge, to any person obtaining a copy
9+
# of this software and associated documentation files (the "Software"), to deal
10+
# in the Software without restriction, including without limitation the rights
11+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12+
# copies of the Software, and to permit persons to whom the Software is
13+
# furnished to do so, subject to the following conditions:
14+
15+
# The above copyright notice and this permission notice shall be included in all
16+
# copies or substantial portions of the Software.
17+
18+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24+
# SOFTWARE.
25+
26+
NS3_DIR=${NS3_DEBUG_DIR}
27+
28+
echo "Switching to debug profile in ns-3..."
29+
30+
cd $NS3_DIR
31+
32+
NS3_CONFIG="--build-profile=debug --out=build --enable-examples --enable-tests --boost-includes=${NEW_BOOST_INCLUDES} --boost-libs=${NEW_BOOST_LIBS}"
33+
WOSS_CONFIG="--with-woss-source=${WOSS_LIB_SRC} --with-woss-library=${WOSS_LIB_DIR} --with-netcdf4-install=${WOSS_REQS_DIR}"
34+
35+
. ${NS3_PY_ENV}/bin/activate
36+
37+
OUTCOME=1
38+
CXXFLAGS="${CXX_CONFIG}" ./waf configure $WOSS_CONFIG $NS3_CONFIG && OUTCOME=0
39+
40+
if [[ "$OUTCOME" -eq 1 ]]; then
41+
echo "Error: configuration failed"
42+
exit 1
43+
fi
44+
45+
OUTCOME=1
46+
./waf build && OUTCOME=0
47+
48+
if [[ "$OUTCOME" -eq 1 ]]; then
49+
echo "Error: build failed"
50+
exit 1
51+
fi
52+
53+
./waf --check-profile
54+
deactivate
55+
56+
sed -i 's/^\(export NS3_CURR_PROFILE=\).*$/\1${NS3_DEBUG_DIR}/' ~/.bashrc && \
57+
cd /home && \
58+
kill -USR1 $PPID
59+
60+
exit 0
Lines changed: 61 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,61 @@
1+
#!/bin/bash
2+
3+
# MIT License
4+
5+
# Copyright (c) 2023 Emanuele Giona <giona.emanuele@gmail.com> (SENSES Lab,
6+
# Sapienza University of Rome)
7+
8+
# Permission is hereby granted, free of charge, to any person obtaining a copy
9+
# of this software and associated documentation files (the "Software"), to deal
10+
# in the Software without restriction, including without limitation the rights
11+
# to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
12+
# copies of the Software, and to permit persons to whom the Software is
13+
# furnished to do so, subject to the following conditions:
14+
15+
# The above copyright notice and this permission notice shall be included in all
16+
# copies or substantial portions of the Software.
17+
18+
# THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
19+
# IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
20+
# FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
21+
# AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
22+
# LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
23+
# OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
24+
# SOFTWARE.
25+
26+
NS3_DIR=${NS3_OPTIMIZED_DIR}
27+
28+
echo "Switching to optimized profile in ns-3..."
29+
30+
cd $NS3_DIR
31+
32+
NS3_CONFIG="--build-profile=optimized --out=build --enable-examples --enable-tests --boost-includes=${NEW_BOOST_INCLUDES} --boost-libs=${NEW_BOOST_LIBS}"
33+
WOSS_CONFIG="--with-woss-source=${WOSS_LIB_SRC} --with-woss-library=${WOSS_LIB_DIR} --with-netcdf4-install=${WOSS_REQS_DIR}"
34+
CXX_CONFIG="-Wall"
35+
36+
. ${NS3_PY_ENV}/bin/activate
37+
38+
OUTCOME=1
39+
CXXFLAGS="${CXX_CONFIG}" ./waf configure $WOSS_CONFIG $NS3_CONFIG && OUTCOME=0
40+
41+
if [[ "$OUTCOME" -eq 1 ]]; then
42+
echo "Error: configuration failed"
43+
exit 1
44+
fi
45+
46+
OUTCOME=1
47+
./waf build && OUTCOME=0
48+
49+
if [[ "$OUTCOME" -eq 1 ]]; then
50+
echo "Error: build failed"
51+
exit 1
52+
fi
53+
54+
./waf --check-profile
55+
deactivate
56+
57+
sed -i 's/^\(export NS3_CURR_PROFILE=\).*$/\1${NS3_OPTIMIZED_DIR}/' ~/.bashrc && \
58+
cd /home && \
59+
kill -USR1 $PPID
60+
61+
exit 0

0 commit comments

Comments
 (0)