Triggering scripts via server

4 messages Options
Embed this post
Permalink
Micah Woods

Triggering scripts via server

Reply Threaded More More options
Print post
Permalink
Has anyone figured out how to trigger scripts (using FMX_StartScript) when
they run on server (I'm talking about setting up a schedule on the server to
run a script in a file that's being hosted)?

I have an example that runs fine on the client. It uses Get ( FileName ) to
figure out the name of the current file and it calls an existing script
which does indeed get triggered. The same script when run on server returns
'100' which is a file missing error.

I tried using the full file path and also appending '.fp7' but no luck.

Not a big deal, just curious to see if anyone else has run into this?

Regards,
Micah


Jesse Barnum-2

Re: Triggering scripts via server

Reply Threaded More More options
Print post
Permalink
I don't know of any way to trigger a script on FMS through the plugin  
API. OTOH, you could set up a schedule script on FMS and trigger that  
through the fmsadmin command line tool.

--Jesse Barnum, President, 360Works
http://www.360works.com 770-234-9293
FBA Platinum, FileMaker 8 Certified
== SuperContainer: A Better Container Field ==

On Apr 9, 2009, at 3:02 PM, Micah Woods wrote:

> Has anyone figured out how to trigger scripts (using  
> FMX_StartScript) when
> they run on server (I'm talking about setting up a schedule on the  
> server to
> run a script in a file that's being hosted)?
>
> I have an example that runs fine on the client. It uses Get  
> ( FileName ) to
> figure out the name of the current file and it calls an existing  
> script
> which does indeed get triggered. The same script when run on server  
> returns
> '100' which is a file missing error.
>
> I tried using the full file path and also appending '.fp7' but no  
> luck.
>
> Not a big deal, just curious to see if anyone else has run into this?
>
> Regards,
> Micah
>
>
>
>
> ------------------------------------
>
> Yahoo! Groups Links
>
>
>

Micah Woods

Re: Triggering scripts via server

Reply Threaded More More options
Print post
Permalink
Thanks Jesse, good to know it¹s not just me. I¹ve been doing more extensive
server side testing for SmartPill and noticed that this doesn¹t work. Wanted
to either fix it or at least document the fact that it doesn¹t work...

-- Micah

on 4/9/09 3:50 PM, Jesse Barnum at [hidden email] wrote:

>  
>  
>
>  
>
> I don't know of any way to trigger a script on FMS through the plugin
> API. OTOH, you could set up a schedule script on FMS and trigger that
> through the fmsadmin command line tool.
>
> --Jesse Barnum, President, 360Works
> http://www.360works.com 770-234-9293
> FBA Platinum, FileMaker 8 Certified
> == SuperContainer: A Better Container Field ==
>
> On Apr 9, 2009, at 3:02 PM, Micah Woods wrote:
>
>> > Has anyone figured out how to trigger scripts (using
>> > FMX_StartScript) when
>> > they run on server (I'm talking about setting up a schedule on the
>> > server to
>> > run a script in a file that's being hosted)?
>> >
>> > I have an example that runs fine on the client. It uses Get
>> > ( FileName ) to
>> > figure out the name of the current file and it calls an existing
>> > script
>> > which does indeed get triggered. The same script when run on server
>> > returns
>> > '100' which is a file missing error.
>> >
>> > I tried using the full file path and also appending '.fp7' but no
>> > luck.
>> >
>> > Not a big deal, just curious to see if anyone else has run into this?
>> >
>> > Regards,
>> > Micah
>> >
>> >
>> >
>> >
>> > ------------------------------------
>> >
>> > Yahoo! Groups Links
>> >
>> >
>> >
>
>  
>    
>
>>

Rahul-38

Re: Triggering scripts via server

Reply Threaded More More options
Print post
Permalink
Micah,

The way to solve this is as follows:

Have a file sit on your local machine... and add a file reference in it to
the remote file on the server that contains the script you want to execute.

You already know how to call a script on the local file. Have that
script(The script in the local file) call the script present in the remote
file hosted on your server.

I have used this and know that it works with filemaker 8/9/10.

I hope this helps.

Rahul

On Fri, Apr 10, 2009 at 7:40 PM, Micah Woods <[hidden email]> wrote:

>
>
> Thanks Jesse, good to know it’s not just me. I’ve been doing more extensive
> server side testing for SmartPill and noticed that this doesn’t work. Wanted
> to either fix it or at least document the fact that it doesn’t work...
>
> -- Micah
>
>
> on 4/9/09 3:50 PM, Jesse Barnum at [hidden email] wrote:
>
>
>
>
>
>
> I don't know of any way to trigger a script on FMS through the plugin
> API. OTOH, you could set up a schedule script on FMS and trigger that
> through the fmsadmin command line tool.
>
> --Jesse Barnum, President, 360Works
> http://www.360works.com 770-234-9293
> FBA Platinum, FileMaker 8 Certified
> == SuperContainer: A Better Container Field ==
>
> On Apr 9, 2009, at 3:02 PM, Micah Woods wrote:
>
> > Has anyone figured out how to trigger scripts (using
> > FMX_StartScript) when
> > they run on server (I'm talking about setting up a schedule on the
> > server to
> > run a script in a file that's being hosted)?
> >
> > I have an example that runs fine on the client. It uses Get
> > ( FileName ) to
> > figure out the name of the current file and it calls an existing
> > script
> > which does indeed get triggered. The same script when run on server
> > returns
> > '100' which is a file missing error.
> >
> > I tried using the full file path and also appending '.fp7' but no
> > luck.
> >
> > Not a big deal, just curious to see if anyone else has run into this?
> >
> > Regards,
> > Micah
> >
> >
> >
> >
> > ------------------------------------
> >
> > Yahoo! Groups Links
> >
> >
> >
>
>
>
>
>
>  
>