so I am writing a bash script to create some VMs and I need to log my command line's output so at a certain point I am trying to use script command, but it cuts my script off until i exit the command,
is there a way to continue execution of my script and log my command line?
The script looks like:
script screen.log
for i in 1 2 3
do
onetemplate instantiate "mano" --user $CUSER --endpoint $CENDPOINT
done
exit
and i need to cut it at exit.