Hi

Two things. For targetpw do you have to add an argument of the password or is 
it the password?  

Second /bin/kill is a unix/OS program that will terminate a program or process. 
Is this really supposed to be there.  It could be killing the process as it 
starts.  

Bruce Herbach

Sent from my mobile device... Please excuse typos.

On Aug 29, 2013, at 11:11 AM, John Haley <[email protected]> wrote:

> Hi, I am sure I am having some sort of permission issue, but I can't figure 
> it out.  I am running FM Server 12.0.4.40S on OS X.8.4 with all current 
> updates installed.  I am trying to schedule an AppleScript to run.  The 
> schedule keeps saying "Aborted by User".  I have tried simplifying the script 
> to just "Tell application "Finder" to activate" and it still doesn't work.  I 
> tired the suggestions under Notes on this page, 
> http://help.filemaker.com/app/answers/detail/a_id/7601/~/specifying-a-user-account-to-run-system-level-scripts-with-filemaker-server
>  , which say to add:
> 
> Host_Alias FMSHOST = yourhostname
> Defaults:fmserver targetpw, timestamp_timeout=0, passwd_tries=1
> fmserver FMSHOST = (ALL) /Library/FileMaker\Server/Data/Scripts/*,/bin/kill
> 
> to the sudoers file.  I think I did it correctly, visudo at least let me save 
> it. ;-)  I added a missing space in the "FileMaker\Server" and used my host 
> name, but left the rest typed above.
> 
> I tried adding the main user on to the file in the Script folder as well as 
> made sure fmserver and fmsadmin were already there and had read write 
> permission.
> 
> Here is a bit of the log file if that helpsWith validated user):
> 
> 2013-08-29 09:57:00.358 -0500 Information     148     File Server     
> Schedule "Test" running.
> 2013-08-29 09:57:00.366 -0500 Information     731     File Server     
> Schedule "Test" has started system script "Test.scpt" with process ID 75339 
> using account "File Server".
> 2013-08-29 09:57:00.431 -0500 Information     152     File Server     
> Schedule "Test" aborted; aborted by user.
> 2013-08-29 09:57:00.431 -0500 Information     126     File Server     
> Schedule "Test" scheduled for 08/30/2013 09:57 AM.
> 
> And with default user:
> 
> 2013-08-29 09:45:00.019 -0500 Information     148     File Server     
> Schedule "Showroom and Contract" running.
> 2013-08-29 09:45:00.027 -0500 Information     731     File Server     
> Schedule "Showroom and Contract" has started system script "Showroom 
> Appointments Emailer.scpt" with process ID 74423 using account "fserver".
> 2013-08-29 09:45:00.095 -0500 Information     152     File Server     
> Schedule "Showroom and Contract" aborted; aborted by user.
> 2013-08-29 09:45:00.095 -0500 Information     126     File Server     
> Schedule "Showroom and Contract" scheduled for 08/29/2013 10:00 AM.
> 
> I am not sure what I am missing, but I am sure it is simple.  What am I 
> missing?
> 
> Thanks,
> John

Reply via email to