Search
Project
General
Profile
Sign in
Register
Home
Projects
Help
Search
:
Create rc.d script to automatically start Byve vms & shut them down gracefully
All Projects
Outpost Internet Ltd
»
Create rc.d script to automatically start Byve vms & shut them down gracefully
Overview
Activity
Issues
Spent time
Gantt
Calendar
News
Documents
Wiki
Files
Download (385 Bytes)
Files
» startbhyvevms.sh
Sam Bracewell
, 13/04/2026 03:34 PM
#!/bin/sh
#
while
IFS
=
read
-r
line
;
do
#echo "$line"
# Extract values from Tab separated file using Cut command.
# -D switch is omitted as default delimiter is Tab
guestname
=
$(
echo
"
$line
"
|
cut
-f1
)
guestpath
=
$(
echo
"
$line
"
|
cut
-f2
)
echo
"
$guestname
"
echo
"
$guestpath
"
sh /usr/local/bhyveopil/startbhyvevm.sh
$guestname
$guestpath
&
done
< /usr/local/bhyveopil/listofvms
« Previous
1
2
3
4
5
6
…
10
Next »
(4-4/10)
Loading...