I just tried something plain and stupid
folderSource="/Volumes/Macintosh HD/Library/FileMaker Server/Data/Documents/testv2/"
This seems to work, a new folder is created, but in the FileMaker admin console (13v5) the status keeps standing on running.. If I enter a specific time limit then i get an error after this time is passed..
I was able to resolve my issue by the following help:
one thing remains, the status keeps standing on 'running' which I dont like. Cause of this i recieve an error after the designated time i gave up in the shedule. Any fix for this?
Have you tried using "exit 0" ? This should terminate the script with an OK.
I did try this command but had up till now no success. However when trying again I got everything working. For other who might be struggling with this, here is what action I had to take:
1: Create shell script:
folderSource="/Volumes/Macintosh HD/Library/FileMaker Server/Data/Documents/test/"
for myFile in *
cp "$myPath" "$folderTarget"
if [ "$?" != "0" ]; then
syslog -s -l notice "Error when moving file $myFile"
syslog -s -l notice "Moved file $myFile"
2. Edit sudoers file by following the help: http://help.filemaker.com/app/answers/detail/a_id/7601/related/1/session/L2F2LzEvdGltZS8xNDIzMTQwOTYzL3NpZC9OS1JwRmVlbQ%3D%3D
To use a user account to run a script in Mac OS, you must add the following entries to the /etc/sudoers file:
Do mind, be carefull when changing this! Follow the exact instructions. At first I thought targetpw was something I had to change but it seemed I just had to copy all lines into this files.
3. Create system script and attach a user. This will make sure that you can write inside different folders. Be also sure that you check the file permission that you paste into the scripts folder. Make sure that they are like the folder scripts itself.