Hello All,
I have written the following script, which is intended to run at login:
The code runs fine except for certain files I get the following feedback:
I have changed the ownership of the shellscript to be root:admin, and added a line to my visudo:
Any ideas why these files are not copying? if I log into terminal as a root user I can move them with no problems at all.
Secondly, does anyone know how I can get this script to run at login, I have tried setting up a plist in LaunchAgents, but this has not worked.
Thanks in advance for your responses,
cheers,
skinicod.
I have written the following script, which is intended to run at login:
Code:
mv /Library/"Application Support"/Digidesign/"Plug-Ins"/* /Library/"Application Support"/Digidesign/"Plug-Ins (Unused)"/
file=~/Desktop/"Plugins List.txt"
while IFS= read -r line
do
mv "/Library/Application Support/Digidesign/Plug-Ins (Unused)/$line" "/Library/Application Support/Digidesign/Plug-Ins/"
done <"$file"
mv "/Library/Application Support/Digidesign/Plug-Ins (Unused)"/XPand* "/Library/Application Support/Digidesign/Plug-Ins/"
The code runs fine except for certain files I get the following feedback:
Code:
mv: rename /Library/Application Support/Digidesign/Plug-Ins (Unused)/Wurlitzer V.dpm to /Library/Application Support/Digidesign/Plug-Ins/Wurlitzer V.dpm: Permission denied
I have changed the ownership of the shellscript to be root:admin, and added a line to my visudo:
Code:
# User privilege specification
root ALL=(ALL) ALL
%admin ALL=(ALL) ALL
OldBoyMusic ALL=(ALL) NOPASSWD:/plugin.sh
Any ideas why these files are not copying? if I log into terminal as a root user I can move them with no problems at all.
Secondly, does anyone know how I can get this script to run at login, I have tried setting up a plist in LaunchAgents, but this has not worked.
Thanks in advance for your responses,
cheers,
skinicod.