Posted on 05-22-2013 09:06 AM
Hey.
I'm facing a small issue that I want to fix.
We deploy VMWare Fusion and Virtual machines via Self Service.
Under /Library/Application Support/VMware/VMware Fusion/Shared it saves a file called vmInventory that lists the virtual machines that are shared on the local machine (as they are located in the /Users/Shared/VM folder.
Once a VM is added to the system via Self service I would like to add them to the file automatically.
cat xxx > vmInventory is not working as it not combines both files rather then overwriting the content of the existing vmInventory.
Any other idea?
Thanks in advance.
Solved! Go to Solution.
Posted on 05-22-2013 09:17 AM
To add to a file you use >> not >. The single character will overwrite. Double will append.
Posted on 05-22-2013 09:17 AM
To add to a file you use >> not >. The single character will overwrite. Double will append.
Posted on 05-22-2013 09:46 AM
Thanks Mike.
That done the trick. I only found > on the net.
Cheers