Lasso 9 on command line syntax

classic Classic list List threaded Threaded
11 messages Options
Reply | Threaded
Open this post in threaded view
|

Lasso 9 on command line syntax

Anibal Escobar
Hi, I'm on Centos 5.8, Lasso 9.2.5 and trying to run a lasso file via  
the command line, with the eventual goal of running it as a cron job  
(replicate L8 events).

The hashbang line in the docs #!/usr/local/bin/lasso9 doesn't apply  
for my Centos installation.  Does anyone know what it should be?

Thanks,
Anibal Escobar
646 336 5000 x8821




#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Lasso 9 on command line syntax

Brad Lindsay
 From the command line, execute the "which" command. Ex:

     $> which lasso9
     /usr/bin/lasso9

Note, this will only work for you if the lasso9 command is in your PATH
environment variable. (I believe the default is what I displayed above,
at least that's the default for OS X and Ubuntu.)

HTH,
Brad


On 2/27/13 2:29 PM, Anibal Escobar wrote:

> Hi, I'm on Centos 5.8, Lasso 9.2.5 and trying to run a lasso file via
> the command line, with the eventual goal of running it as a cron job
> (replicate L8 events).
>
> The hashbang line in the docs #!/usr/local/bin/lasso9 doesn't apply for
> my Centos installation. Does anyone know what it should be?
>
> Thanks,
> Anibal Escobar
> 646 336 5000 x8821
>
>
>
>
> #############################################################
> This message is sent to you because you are subscribed to
> the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to <[hidden email]>
#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Lasso 9 on command line syntax

Anibal Escobar
In reply to this post by Anibal Escobar
Actually, I found it.  It's #!/usr/bin/lasso9

Thanks,
Anibal Escobar
646 336 5000 x8821




On Feb 27, 2013, at 2:29 PM, Anibal Escobar wrote:

> Hi, I'm on Centos 5.8, Lasso 9.2.5 and trying to run a lasso file  
> via the command line, with the eventual goal of running it as a cron  
> job (replicate L8 events).
>
> The hashbang line in the docs #!/usr/local/bin/lasso9 doesn't apply  
> for my Centos installation.  Does anyone know what it should be?
>
> Thanks,
> Anibal Escobar
> 646 336 5000 x8821
>
>
>
>
> #############################################################
> This message is sent to you because you are subscribed to
> the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Lasso 9 on command line syntax

Marc Pope-2
In reply to this post by Anibal Escobar
If you can execute it from a URL, you can simply do a curl http://domain.com/pathtofile.lasso 

On Feb 27, 2013, at 2:29 PM, Anibal Escobar <[hidden email]> wrote:

> Hi, I'm on Centos 5.8, Lasso 9.2.5 and trying to run a lasso file via the command line, with the eventual goal of running it as a cron job (replicate L8 events).
>
> The hashbang line in the docs #!/usr/local/bin/lasso9 doesn't apply for my Centos installation.  Does anyone know what it should be?
>
> Thanks,
> Anibal Escobar
> 646 336 5000 x8821
>
>
>
>
> #############################################################
> This message is sent to you because you are subscribed to
> the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>
#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Lasso 9 on command line syntax

Anibal Escobar
For the benefit of the list, the file uses database_registry-
 >listHostDatabases(x) to get a list of databases and on the pure  
command line file it chokes.  I'm guessing I need to specify the lasso  
instance that should run the script, but I don't know how to do that.

The curl version avoids this problem and executes properly.

Thanks,
Anibal Escobar
646 336 5000 x8821




On Feb 27, 2013, at 2:36 PM, Marc Pope wrote:

> If you can execute it from a URL, you can simply do a curl http://domain.com/pathtofile.lasso
>
> On Feb 27, 2013, at 2:29 PM, Anibal Escobar <[hidden email]>  
> wrote:
>
>> Hi, I'm on Centos 5.8, Lasso 9.2.5 and trying to run a lasso file  
>> via the command line, with the eventual goal of running it as a  
>> cron job (replicate L8 events).
>>
>> The hashbang line in the docs #!/usr/local/bin/lasso9 doesn't apply  
>> for my Centos installation.  Does anyone know what it should be?
>>
>> Thanks,
>> Anibal Escobar
>> 646 336 5000 x8821
>>
>>
>>
>>
>> #############################################################
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso
>> [hidden email]
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
> #############################################################
> This message is sent to you because you are subscribed to
>  the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Lasso 9 on command line syntax

Kyle Jessup-2
In reply to this post by Anibal Escobar

On Feb 27, 2013, at 2:29 PM, Anibal Escobar <[hidden email]> wrote:

> Hi, I'm on Centos 5.8, Lasso 9.2.5 and trying to run a lasso file via the command line, with the eventual goal of running it as a cron job (replicate L8 events).
>
> The hashbang line in the docs #!/usr/local/bin/lasso9 doesn't apply for my Centos installation.

Where is this in the docs? We'll correct it.
-Kyle

>  Does anyone know what it should be?
>
> Thanks,
> Anibal Escobar
> 646 336 5000 x8821
>
>
>
>
> #############################################################
> This message is sent to you because you are subscribed to
> the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Lasso 9 on command line syntax

Kyle Jessup-2
In reply to this post by Anibal Escobar

On Feb 27, 2013, at 3:09 PM, Anibal Escobar <[hidden email]> wrote:

> For the benefit of the list, the file uses database_registry->listHostDatabases(x) to get a list of databases and on the pure command line file it chokes.  I'm guessing I need to specify the lasso instance that should run the script, but I don't know how to do that.
>
> The curl version avoids this problem and executes properly.

You can specify the instance you want to run under by setting the LASSO9_HOME environment var before you run lasso9. Just give it the path to the instance's home, such as /var/lasso/instances/default/. OS permissions will come into play so make sure you're set there.

Example command:

LASSO9_HOME=/var/lasso/instances/default/ lasso9 mycode.lasso

The lasso9 tool by default does not start up any of the "heavy" systems but you can initialize the database/inline functionality by calling 'database_initialize' at the top of your code.

-Kyle

> Thanks,
> Anibal Escobar
> 646 336 5000 x8821
>
>
>
>
> On Feb 27, 2013, at 2:36 PM, Marc Pope wrote:
>
>> If you can execute it from a URL, you can simply do a curl http://domain.com/pathtofile.lasso
>>
>> On Feb 27, 2013, at 2:29 PM, Anibal Escobar <[hidden email]> wrote:
>>
>>> Hi, I'm on Centos 5.8, Lasso 9.2.5 and trying to run a lasso file via the command line, with the eventual goal of running it as a cron job (replicate L8 events).
>>>
>>> The hashbang line in the docs #!/usr/local/bin/lasso9 doesn't apply for my Centos installation.  Does anyone know what it should be?
>>>
>>> Thanks,
>>> Anibal Escobar
>>> 646 336 5000 x8821
>>>
>>>
>>>
>>>
>>> #############################################################
>>> This message is sent to you because you are subscribed to
>>> the mailing list Lasso
>>> [hidden email]
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>> #############################################################
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso
>> [hidden email]
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
> #############################################################
> This message is sent to you because you are subscribed to
> the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Lasso 9 on command line syntax

Anibal Escobar
In reply to this post by Kyle Jessup-2
It's in Language Guide -> Overview -> Calling Lasso

Thanks,
Anibal Escobar
646 336 5000 x8821




On Feb 27, 2013, at 3:24 PM, Kyle Jessup wrote:
>
> Where is this in the docs? We'll correct it.
> -Kyle

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Lasso 9 on command line syntax

Anibal Escobar
In reply to this post by Kyle Jessup-2
Where would the LASSO9_HOME command go and what is it's syntax?

Thanks,
Anibal Escobar
646 336 5000 x8821




On Feb 27, 2013, at 3:29 PM, Kyle Jessup wrote:

>
> On Feb 27, 2013, at 3:09 PM, Anibal Escobar <[hidden email]>  
> wrote:
>
>> For the benefit of the list, the file uses database_registry-
>> >listHostDatabases(x) to get a list of databases and on the pure  
>> command line file it chokes.  I'm guessing I need to specify the  
>> lasso instance that should run the script, but I don't know how to  
>> do that.
>>
>> The curl version avoids this problem and executes properly.
>
> You can specify the instance you want to run under by setting the  
> LASSO9_HOME environment var before you run lasso9. Just give it the  
> path to the instance's home, such as /var/lasso/instances/default/.  
> OS permissions will come into play so make sure you're set there.
>
> Example command:
>
> LASSO9_HOME=/var/lasso/instances/default/ lasso9 mycode.lasso
>
> The lasso9 tool by default does not start up any of the "heavy"  
> systems but you can initialize the database/inline functionality by  
> calling 'database_initialize' at the top of your code.
>
> -Kyle
>
>> Thanks,
>> Anibal Escobar
>> 646 336 5000 x8821
>>
>>
>>
>>
>> On Feb 27, 2013, at 2:36 PM, Marc Pope wrote:
>>
>>> If you can execute it from a URL, you can simply do a curl http://domain.com/pathtofile.lasso
>>>
>>> On Feb 27, 2013, at 2:29 PM, Anibal Escobar <[hidden email]>  
>>> wrote:
>>>
>>>> Hi, I'm on Centos 5.8, Lasso 9.2.5 and trying to run a lasso file  
>>>> via the command line, with the eventual goal of running it as a  
>>>> cron job (replicate L8 events).
>>>>
>>>> The hashbang line in the docs #!/usr/local/bin/lasso9 doesn't  
>>>> apply for my Centos installation.  Does anyone know what it  
>>>> should be?
>>>>
>>>> Thanks,
>>>> Anibal Escobar
>>>> 646 336 5000 x8821
>>>>
>>>>
>>>>
>>>>
>>>> #############################################################
>>>> This message is sent to you because you are subscribed to
>>>> the mailing list Lasso
>>>> [hidden email]
>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>> Send administrative queries to  <[hidden email]>
>>> #############################################################
>>> This message is sent to you because you are subscribed to
>>> the mailing list Lasso
>>> [hidden email]
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>> #############################################################
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso
>> [hidden email]
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
> #############################################################
> This message is sent to you because you are subscribed to
>  the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Lasso 9 on command line syntax

Kyle Jessup-2

On Feb 27, 2013, at 3:48 PM, Anibal Escobar <[hidden email]> wrote:

> Where would the LASSO9_HOME command go and what is it's syntax?

It's an environment variable, not a command. Shells let you specify env vars before the command as in my example:

LASSO9_HOME=/var/lasso/instances/default/ lasso9 mycode.lasso

You would enter verbatim on the command line.
-Kyle

>
> Thanks,
> Anibal Escobar
> 646 336 5000 x8821
>
>
>
>
> On Feb 27, 2013, at 3:29 PM, Kyle Jessup wrote:
>
>>
>> On Feb 27, 2013, at 3:09 PM, Anibal Escobar <[hidden email]> wrote:
>>
>>> For the benefit of the list, the file uses database_registry->listHostDatabases(x) to get a list of databases and on the pure command line file it chokes.  I'm guessing I need to specify the lasso instance that should run the script, but I don't know how to do that.
>>>
>>> The curl version avoids this problem and executes properly.
>>
>> You can specify the instance you want to run under by setting the LASSO9_HOME environment var before you run lasso9. Just give it the path to the instance's home, such as /var/lasso/instances/default/. OS permissions will come into play so make sure you're set there.
>>
>> Example command:
>>
>> LASSO9_HOME=/var/lasso/instances/default/ lasso9 mycode.lasso
>>
>> The lasso9 tool by default does not start up any of the "heavy" systems but you can initialize the database/inline functionality by calling 'database_initialize' at the top of your code.
>>
>> -Kyle
>>
>>> Thanks,
>>> Anibal Escobar
>>> 646 336 5000 x8821
>>>
>>>
>>>
>>>
>>> On Feb 27, 2013, at 2:36 PM, Marc Pope wrote:
>>>
>>>> If you can execute it from a URL, you can simply do a curl http://domain.com/pathtofile.lasso
>>>>
>>>> On Feb 27, 2013, at 2:29 PM, Anibal Escobar <[hidden email]> wrote:
>>>>
>>>>> Hi, I'm on Centos 5.8, Lasso 9.2.5 and trying to run a lasso file via the command line, with the eventual goal of running it as a cron job (replicate L8 events).
>>>>>
>>>>> The hashbang line in the docs #!/usr/local/bin/lasso9 doesn't apply for my Centos installation.  Does anyone know what it should be?
>>>>>
>>>>> Thanks,
>>>>> Anibal Escobar
>>>>> 646 336 5000 x8821
>>>>>
>>>>>
>>>>>
>>>>>
>>>>> #############################################################
>>>>> This message is sent to you because you are subscribed to
>>>>> the mailing list Lasso
>>>>> [hidden email]
>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>> Send administrative queries to  <[hidden email]>
>>>> #############################################################
>>>> This message is sent to you because you are subscribed to
>>>> the mailing list Lasso
>>>> [hidden email]
>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>> Send administrative queries to  <[hidden email]>
>>>
>>> #############################################################
>>> This message is sent to you because you are subscribed to
>>> the mailing list Lasso
>>> [hidden email]
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>> #############################################################
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso
>> [hidden email]
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
> #############################################################
> This message is sent to you because you are subscribed to
> the mailing list Lasso
> [hidden email]
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: Lasso 9 on command line syntax

Carl Ketterling
In reply to this post by Anibal Escobar
Anibal,

Thanks for that.  It's good to be reminded of features that I rarely use,
and having a quick reference also reminds me where I can locate the
information.

Carl


On 2/27/13 2:35 PM, "Anibal Escobar" <[hidden email]> wrote:

> It's in Language Guide -> Overview -> Calling Lasso
>
> Thanks,
> Anibal Escobar
> 646 336 5000 x8821


#############################################################
This message is sent to you because you are subscribed to
  the mailing list Lasso
[hidden email]
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>