Actually, I don't believe that does work. At least, not on my system. Trying to access argv[0] just produces a lua error about "concatenating a nil value."<br><br><div class="gmail_quote">On Fri, Mar 5, 2010 at 10:28 PM, Seven Du <span dir="ltr"><<a href="mailto:dujinfang@gmail.com">dujinfang@gmail.com</a>></span> wrote:<br>
<blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex;">and also you can get the script name from argv[0] if you name you<br>
script in different names<br>
<br>
2010/3/6 Mike van Lammeren <<a href="mailto:mike@van.lammeren.net">mike@van.lammeren.net</a>>:<br>
<div><div></div><div class="h5">> In case anyone's interested, I just found something cool. You can pass<br>
> parameters to the Lua script from the lua.conf.xml file, like so:<br>
> <param name="startup-script" value="temp.lua script1"/><br>
> <param name="startup-script" value="temp.lua script2"/><br>
> <param name="startup-script" value="temp.lua script3"/><br>
> I can see that being useful.<br>
> Mike van Lammeren<br>
><br>
> On Fri, Mar 5, 2010 at 2:59 PM, Mike van Lammeren <<a href="mailto:mike@van.lammeren.net">mike@van.lammeren.net</a>><br>
> wrote:<br>
>><br>
>> Thanks so much, everyone! Awesome advice, as usual!<br>
>> Due to a deadline situation, I'm going with the Lua script idea. However,<br>
>> if it gives us any trouble after the looming deadline, then I will<br>
>> definitely go the C route.<br>
>> Thanks again!<br>
>> Mike van Lammeren<br>
>><br>
>> On Fri, Mar 5, 2010 at 2:42 PM, Brian West <<a href="mailto:brian@freeswitch.org">brian@freeswitch.org</a>> wrote:<br>
>>><br>
>>> Write it in C and use the FreeSWITCH task scheduler API.<br>
>>><br>
>>> /b<br>
>>><br>
>>> On Mar 5, 2010, at 1:38 PM, Mike van Lammeren wrote:<br>
>>><br>
>>> > All the same, I'm still open to suggestions on better ways to achieve<br>
>>> > my ultimate goals!<br>
>>><br>
>>><br>
>>> _______________________________________________<br>
>>> FreeSWITCH-users mailing list<br>
>>> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
>>> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
>>> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
>>> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
>><br>
><br>
><br>
> _______________________________________________<br>
> FreeSWITCH-users mailing list<br>
> <a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
> <a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
> UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
> <a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
><br>
><br>
<br>
_______________________________________________<br>
FreeSWITCH-users mailing list<br>
<a href="mailto:FreeSWITCH-users@lists.freeswitch.org">FreeSWITCH-users@lists.freeswitch.org</a><br>
<a href="http://lists.freeswitch.org/mailman/listinfo/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/listinfo/freeswitch-users</a><br>
UNSUBSCRIBE:<a href="http://lists.freeswitch.org/mailman/options/freeswitch-users" target="_blank">http://lists.freeswitch.org/mailman/options/freeswitch-users</a><br>
<a href="http://www.freeswitch.org" target="_blank">http://www.freeswitch.org</a><br>
</div></div></blockquote></div><br>