The attached script runs fine when manually invoked...how can I get it to run as a login script as the current user (not as root)?
#!/bin/bash
IFS=':'
for pvm_file in $( "/Users/Shared/Parallels" | grep .pvm | tr '
' ':' ); do
prlctl register "/Users/Shared/Parallels/${pvm_file}" --preserve-uuid no
done
unset IFS
I know I need to add $3 but how do I add it to this script?
TIA,
Don