October 13, 201015 yr I have a shell script that works on my local mac via terminal "curl -s -T /Users/me/Desktop/Pictures/test.png ftp://id:[email protected]" I have saved it on the Filemaker server filename: ftp_upload.sh (unix LF, Unicode UTF-8) directory: Filemaker Server/Data/Scripts/ I have created a FMS schedule to run the file, but it is unsuccessful. Am I missing something?
October 13, 201015 yr Does the script have permissions to perform the action on the target destination? Probably not, since FMS scripts run inside the FMS bubble. In Server 11 you can use the Run As capability. Steven
October 13, 201015 yr Author Thanks Steven, you mentioned 'Run As'. If I understand correctly, I have switch the Account that runs the script to the admin account, still no luck. Sorry, this is completely new territory for me.
October 14, 201015 yr Admin account for what? FIleMaker Pro, the FMS Admin Console, or what? it needs to be an Account that has privileges for r/w on the target destination where you're sending the file to reside. Steven
October 14, 201015 yr A couple of things: - is this supposed to run as part of a script sequence FMS schedule? - don't pick any location that is part of a user profile: the FMS schedules should run in a headless state with no users logged in so pick a more generic location and test again - make sure that fmsadmin/fmserver has write privileges on the folder that you pick, or schedule the FMS schedule with alternate credentials that have write access.
Create an account or sign in to comment