Jump to content
Claris Engage 2025 - March 25-26 Austin Texas ×

This topic is 5152 days old. Please don't post here. Open a new topic instead.

Recommended Posts

Posted

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?

Posted

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

Posted

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.

Posted

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

Posted

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.

This topic is 5152 days old. Please don't post here. Open a new topic instead.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use.