Project

General

Profile

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
(4-4/10)