Quantcast
Channel: Support Portal
Viewing all articles
Browse latest Browse all 1466

Re : File Folder Operation for Mac

$
0
0
Hi Joe,

Thanks for your request,

We could achieve this configuration using "Custom script" configuration in MAC. Please upload the files to be copied as dependency files and write a script to copy those files to destination folder,refer the sample script and configuration screenshot for better clarity.


Sample Script 

#!/bin/bash

ditto ./filename.txt /Volumes/Official/filename.txt

errcode=$?
#echo "Error code of previous command: $errcode"
if [ "$errcode" -ne 0 ];
then
echo  "failed to copy filename.txt"
else
echo  "successfully copied  filename.txt"
chmod 777  /Volumes/Official/filename.txt
fi

ditto ./filename2.txt /Volumes/Official/filename2.txt

errcode=$?
#echo "Error code of previous command: $errcode"
if [ "$errcode" -ne 0 ];
then
echo  "failed to copy filename2.txt"
else
echo  "successfully copied  filename2.txt"
chmod 777  /Volumes/Official/filename2.txt
fi

exit 0 .

Trust this helps and revert for any clarifications.

Regards,
-----
Leonard J
Technical Consultant
Desktop and Mobile Device Management Solution
Direct Support : +1 408 916 9886
Toll Free: +1 888 720 9500 (US) | 0800 028 6590 (UK) | +1 800 631 268 (AUS)

**'New ticket' for 'new request' would help us to serve you.













Viewing all articles
Browse latest Browse all 1466

Trending Articles