sys_process

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

sys_process

Marc Pinnell-3
Trying to figure out sys_process. The command below will return a list of domains from my CP when I type it on the command line. Trying to figure out how to get the list into Lasso for further processing. Tried just swapping out the command code in the docs, but get a -1 error. Then I tried to run the code directly from the docs and getting no return at all. Thoughts?

This returns a -1 error:
        local(proc) = sys_process('~iworx/bin/listaccounts.pex --domain')
        fail_if(#proc->exitCode != 0, 'Unknown error' + #proc->exitCode)
        #proc->readString->encodeHtml(true, false)
        #proc->close

This returns nothing at all:
        local(proc) = sys_process('/bin/ls', (: '/' + sys_homePath))
        fail_if(#proc->exitCode != 0, 'Unknown error')
        #proc->readString->encodeHtml(true, false)
        #proc->close



Marc


Marc Pinnell
1027 Design
PO Box 990872
Redding, CA 96099-0872
530.941.4706
fax: 866.232.5300
www.1027Design.com



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: sys_process

stevepiercy
It's possible that when you are issue the command from shell,
you are executing it as a different user than Lasso.

It's also possible that the path to the command is incorrect.  I
can't remember off the top of my head what is the home path of
sys_process.  In general, I use sys_process like so:

/usr/bin/foo

...and don't worry about paths.

You can specify the user under which sys_process runs.
http://lassoguide.com/operations/sys-process.html#sys_process

--steve


On 11/12/14 at 2:29 PM, [hidden email] (Marc
Pinnell) pronounced:

>Trying to figure out sys_process. The command below will return
>a list of domains from my CP when I type it on the command
>line. Trying to figure out how to get the list into Lasso for
>further processing. Tried just swapping out the command code in
>the docs, but get a -1 error. Then I tried to run the code
>directly from the docs and getting no return at all. Thoughts?
>
>This returns a -1 error:
>local(proc) = sys_process('~iworx/bin/listaccounts.pex --domain')
>fail_if(#proc->exitCode != 0, 'Unknown error' + #proc->exitCode)
>#proc->readString->encodeHtml(true, false)
>#proc->close
>
>This returns nothing at all:
>local(proc) = sys_process('/bin/ls', (: '/' + sys_homePath))
>fail_if(#proc->exitCode != 0, 'Unknown error')
>#proc->readString->encodeHtml(true, false)
>#proc->close
>
>
>
>Marc
>
>
>Marc Pinnell
>1027 Design
>PO Box 990872
>Redding, CA 96099-0872
>530.941.4706
>fax: 866.232.5300
>www.1027Design.com
>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy              Website Builder              Soquel, CA
<[hidden email]>               <http://www.StevePiercy.com/>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: sys_process

Jolle Carlestam-2
In reply to this post by Marc Pinnell-3
12 nov 2014 kl. 23:29 skrev Marc Pinnell <[hidden email]>:

> This returns nothing at all:
> local(proc) = sys_process('/bin/ls', (: '/' + sys_homePath))
> fail_if(#proc->exitCode != 0, 'Unknown error')
> #proc->readString->encodeHtml(true, false)
> #proc->close

This works:

local(proc) = sys_process('/bin/ls', (: '/' + sys_homePath))
#proc -> wait
#proc->readString->encodeHtml(true, false)
#proc->close

HDB
Jolle

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: sys_process

Jolle Carlestam-2
13 nov 2014 kl. 06:07 skrev Jolle Carlestam <[hidden email]>:

> #proc -> wait

I have found that this is key in getting sys_process to work as expected when you’re looking for output from it. Without it you can get the output but it will vary from call to call.
At any point where you do sys_process -> read (of any kind) you should always have a sys_process -> wait first.

Another thing to consider using sys_process is that it’s important to use full paths to commands. Like /bin/ls instead of plain ls. This can be an issue if you change platform, like developing and testing on Mac but deploying on Linux. Since the commands can be located differently.
I have a check routine to fix that.
local(
        os = lasso_version(-lassoplatform),
        cmdpath, proc
)
if(#os >> 'Mac')
        #cmdpath = '/opt/local/bin/cmd'
else
        #cmdpath = '/usr/bin/cmd'
}

#proc = sys_process(#cmdpath, (: 'other', 'stuff'))


HDB
Jolle

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: sys_process

Marc Pinnell-3
Ok, I can confirm your code working on my system. However, I can't get my command to run:

        local(proc) = sys_process('~iworx/bin/listaccounts.pex --domain')
        #proc->wait
        #proc->readString
        #proc->close

I am suspecting (after re-reading the docs) that it is a "user" issue. Simply the lasso9 user doesn't have the permissions to run this file.

Gonna knock off for the night, but I am hoping I can figure out what user/group is necessary and add Lasso to it and that this solves the issue.

marc


On Nov 12, 2014, at 9:49 PM, Jolle Carlestam <[hidden email]> wrote:

> 13 nov 2014 kl. 06:07 skrev Jolle Carlestam <[hidden email]>:
>
>> #proc -> wait
>
> I have found that this is key in getting sys_process to work as expected when you’re looking for output from it. Without it you can get the output but it will vary from call to call.
> At any point where you do sys_process -> read (of any kind) you should always have a sys_process -> wait first.
>
> Another thing to consider using sys_process is that it’s important to use full paths to commands. Like /bin/ls instead of plain ls. This can be an issue if you change platform, like developing and testing on Mac but deploying on Linux. Since the commands can be located differently.
> I have a check routine to fix that.
> local(
> os = lasso_version(-lassoplatform),
> cmdpath, proc
> )
> if(#os >> 'Mac')
> #cmdpath = '/opt/local/bin/cmd'
> else
> #cmdpath = '/usr/bin/cmd'
> }
>
> #proc = sys_process(#cmdpath, (: 'other', 'stuff'))
>
>
> HDB
> Jolle
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

Marc Pinnell
1027 Design
PO Box 990872
Redding, CA 96099-0872
530.941.4706
fax: 866.232.5300
www.1027Design.com



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: sys_process

Jolle Carlestam-2
13 nov 2014 kl. 08:32 skrev Marc Pinnell <[hidden email]>:

> Ok, I can confirm your code working on my system. However, I can't get my command to run:
>
> local(proc) = sys_process('~iworx/bin/listaccounts.pex --domain')
> #proc->wait
> #proc->readString
> #proc->close
>
> I am suspecting (after re-reading the docs) that it is a "user" issue. Simply the lasso9 user doesn't have the permissions to run this file.
>
> Gonna knock off for the night, but I am hoping I can figure out what user/group is necessary and add Lasso to it and that this solves the issue.
>
> marc

I think it’s the usage of the ~ that confuses you and Lasso. On a UNIX system that is a pointer to the active users home directory. So when you run it from the CLI it will point to your home. But when you issue it from Lasso it will be the Lasso user, probably _lasso, that it’s run under. And I don’t even think the _lasso user has a home, more so it won’t be your home.
Change the path for the command to use an absolute path from root instead and see if that makes any difference.

HDB
Jolle

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: sys_process

Steffan A. Cline
In reply to this post by Marc Pinnell-3
In addition to what Jolle says next in the thread about using full paths,
also consider the user privileges. Your lasso user needs to have access to
that directory. So, you can run the instance as the user whose files you
are trying to access, which is very secure and the way many control panels
are set up, or you can simply add the lasso user to the group that owns
the files you are trying to access.


Thanks,
Steffan

---------------------------------------------------------------
T E L  6 0 2 . 7 9 3 . 0 0 1 4 | F A X  6 0 2 . 9 7 1 . 1 6 9 4
Steffan A. Cline   [hidden email]
http://www.ExecuChoice.net                 Phoenix, Arizona USA
                 
---------------------------------------------------------------






On 11/13/14, 12:32 AM, "Marc Pinnell" <[hidden email]> wrote:

>Ok, I can confirm your code working on my system. However, I can't get my
>command to run:
>
> local(proc) = sys_process('~iworx/bin/listaccounts.pex --domain')
> #proc->wait
> #proc->readString
> #proc->close
>
>I am suspecting (after re-reading the docs) that it is a "user" issue.
>Simply the lasso9 user doesn't have the permissions to run this file.
>
>Gonna knock off for the night, but I am hoping I can figure out what
>user/group is necessary and add Lasso to it and that this solves the
>issue.
>
>marc
>
>
>On Nov 12, 2014, at 9:49 PM, Jolle Carlestam <[hidden email]> wrote:
>
>> 13 nov 2014 kl. 06:07 skrev Jolle Carlestam <[hidden email]>:
>>
>>> #proc -> wait
>>
>> I have found that this is key in getting sys_process to work as
>>expected when you¹re looking for output from it. Without it you can get
>>the output but it will vary from call to call.
>> At any point where you do sys_process -> read (of any kind) you should
>>always have a sys_process -> wait first.
>>
>> Another thing to consider using sys_process is that it¹s important to
>>use full paths to commands. Like /bin/ls instead of plain ls. This can
>>be an issue if you change platform, like developing and testing on Mac
>>but deploying on Linux. Since the commands can be located differently.
>> I have a check routine to fix that.
>> local(
>> os = lasso_version(-lassoplatform),
>> cmdpath, proc
>> )
>> if(#os >> 'Mac')
>> #cmdpath = '/opt/local/bin/cmd'
>> else
>> #cmdpath = '/usr/bin/cmd'
>> }
>>
>> #proc = sys_process(#cmdpath, (: 'other', 'stuff'))
>>
>>
>> HDB
>> Jolle
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>>  the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
>Marc Pinnell
>1027 Design
>PO Box 990872
>Redding, CA 96099-0872
>530.941.4706
>fax: 866.232.5300
>www.1027Design.com
>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>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]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: sys_process

Brad Lindsay
In reply to this post by Jolle Carlestam-2
First, the “~” in this case isn’t pointing to the home directory of the user running the command because it’s not followed by a slash: “~iworx”  this specifies to look in the home directory of the “iworx” user, so I’m not sure the issue is that you’re using a relative path. (I also agree with Jolle and Steve that it’s better to use full paths to the binary rather than relative ones.)

To help you troubleshoot what the issue is, you should use #proc->readError.

Brad



On November 13, 2014 at 2:41:11 AM, Jolle Carlestam ([hidden email]) wrote:

> 13 nov 2014 kl. 08:32 skrev Marc Pinnell :
>  
> > Ok, I can confirm your code working on my system. However, I can't get my command to run:  
> >
> > local(proc) = sys_process('~iworx/bin/listaccounts.pex --domain')
> > #proc->wait
> > #proc->readString
> > #proc->close
> >
> > I am suspecting (after re-reading the docs) that it is a "user" issue. Simply the lasso9  
> user doesn't have the permissions to run this file.
> >
> > Gonna knock off for the night, but I am hoping I can figure out what user/group is necessary  
> and add Lasso to it and that this solves the issue.
> >
> > marc
>  
> I think it’s the usage of the ~ that confuses you and Lasso. On a UNIX system that is a pointer  
> to the active users home directory. So when you run it from the CLI it will point to your  
> home. But when you issue it from Lasso it will be the Lasso user, probably _lasso, that  
> it’s run under. And I don’t even think the _lasso user has a home, more so it won’t be your  
> home.
> Change the path for the command to use an absolute path from root instead and see if that  
> makes any difference.
>  
> HDB
> Jolle
>  
> #############################################################
>  
> This message is sent to you because you are subscribed to
> the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to:  
> Send administrative queries to  
>  


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: sys_process

Jolle Carlestam-2
13 nov 2014 kl. 14:39 skrev Brad Lindsay <[hidden email]>:

> First, the “~” in this case isn’t pointing to the home directory of the user running the command because it’s not followed by a slash: “~iworx”  this specifies to look in the home directory of the “iworx” user

My bad. The quick test I did before I wrote my reply was
ls -al ~
and that did indeed show my home directory.

HDB
Jolle

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: sys_process

Marc Pinnell-3
In reply to this post by Brad Lindsay
Adding the ->readError shed a little light on the problem. I also did some digging and got the full path the .pex file. So running:

local(proc) = sys_process('/chroot/home/interworx/bin/listaccounts.pex --domain')

returns an error of:

No such file or directory

Yet, if I cut and paste the full path onto the command line, it runs fine. Is the error message really saying that there is no file "THAT LASSO CAN ACCESS"?

marc


On Nov 13, 2014, at 5:39 AM, Brad Lindsay <[hidden email]> wrote:

> First, the “~” in this case isn’t pointing to the home directory of the user running the command because it’s not followed by a slash: “~iworx”  this specifies to look in the home directory of the “iworx” user, so I’m not sure the issue is that you’re using a relative path. (I also agree with Jolle and Steve that it’s better to use full paths to the binary rather than relative ones.)
>
> To help you troubleshoot what the issue is, you should use #proc->readError.
>
> Brad
>
>
>
> On November 13, 2014 at 2:41:11 AM, Jolle Carlestam ([hidden email]) wrote:
>> 13 nov 2014 kl. 08:32 skrev Marc Pinnell :
>>
>>> Ok, I can confirm your code working on my system. However, I can't get my command to run:  
>>>
>>> local(proc) = sys_process('~iworx/bin/listaccounts.pex --domain')
>>> #proc->wait
>>> #proc->readString
>>> #proc->close
>>>
>>> I am suspecting (after re-reading the docs) that it is a "user" issue. Simply the lasso9
>> user doesn't have the permissions to run this file.
>>>
>>> Gonna knock off for the night, but I am hoping I can figure out what user/group is necessary  
>> and add Lasso to it and that this solves the issue.
>>>
>>> marc
>>
>> I think it’s the usage of the ~ that confuses you and Lasso. On a UNIX system that is a pointer  
>> to the active users home directory. So when you run it from the CLI it will point to your
>> home. But when you issue it from Lasso it will be the Lasso user, probably _lasso, that  
>> it’s run under. And I don’t even think the _lasso user has a home, more so it won’t be your  
>> home.
>> Change the path for the command to use an absolute path from root instead and see if that
>> makes any difference.
>>
>> HDB
>> Jolle
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to:  
>> Send administrative queries to  
>>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

Marc Pinnell
1027 Design
PO Box 990872
Redding, CA 96099-0872
530.941.4706
fax: 866.232.5300
www.1027Design.com



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: sys_process

Steffan A. Cline
Try adding Lasso to the group that owns the directories/file. I am betting
it's throwing that error because it can't get to it.

You are most likely able to access it from the command line because you
are either in that group that owns the file or an admin.

At the terminal try sudo su -m lasso (if that's what Lasso is running as)
and you will be masquerading (-m) as Lasso and see if you can access that
path. If not, there's your problem. Add Lasso to the group and you'll be
good to go.



Thanks,
Steffan

---------------------------------------------------------------
T E L  6 0 2 . 7 9 3 . 0 0 1 4 | F A X  6 0 2 . 9 7 1 . 1 6 9 4
Steffan A. Cline   [hidden email]
http://www.ExecuChoice.net                 Phoenix, Arizona USA
                 
---------------------------------------------------------------






On 11/13/14, 9:34 AM, "Marc Pinnell" <[hidden email]> wrote:

>Adding the ->readError shed a little light on the problem. I also did
>some digging and got the full path the .pex file. So running:
>
>local(proc) = sys_process('/chroot/home/interworx/bin/listaccounts.pex
>--domain')
>
>returns an error of:
>
>No such file or directory
>
>Yet, if I cut and paste the full path onto the command line, it runs
>fine. Is the error message really saying that there is no file "THAT
>LASSO CAN ACCESS"?
>
>marc
>
>
>On Nov 13, 2014, at 5:39 AM, Brad Lindsay <[hidden email]> wrote:
>
>> First, the ³~² in this case isn¹t pointing to the home directory of the
>>user running the command because it¹s not followed by a slash: ³~iworx²
>>this specifies to look in the home directory of the ³iworx² user, so I¹m
>>not sure the issue is that you¹re using a relative path. (I also agree
>>with Jolle and Steve that it¹s better to use full paths to the binary
>>rather than relative ones.)
>>
>> To help you troubleshoot what the issue is, you should use
>>#proc->readError.
>>
>> Brad
>>
>>
>>
>> On November 13, 2014 at 2:41:11 AM, Jolle Carlestam
>>([hidden email]) wrote:
>>> 13 nov 2014 kl. 08:32 skrev Marc Pinnell :
>>>
>>>> Ok, I can confirm your code working on my system. However, I can't
>>>>get my command to run:
>>>>
>>>> local(proc) = sys_process('~iworx/bin/listaccounts.pex --domain')
>>>> #proc->wait
>>>> #proc->readString
>>>> #proc->close
>>>>
>>>> I am suspecting (after re-reading the docs) that it is a "user"
>>>>issue. Simply the lasso9
>>> user doesn't have the permissions to run this file.
>>>>
>>>> Gonna knock off for the night, but I am hoping I can figure out what
>>>>user/group is necessary
>>> and add Lasso to it and that this solves the issue.
>>>>
>>>> marc
>>>
>>> I think it¹s the usage of the ~ that confuses you and Lasso. On a UNIX
>>>system that is a pointer
>>> to the active users home directory. So when you run it from the CLI it
>>>will point to your
>>> home. But when you issue it from Lasso it will be the Lasso user,
>>>probably _lasso, that
>>> it¹s run under. And I don¹t even think the _lasso user has a home,
>>>more so it won¹t be your
>>> home.
>>> Change the path for the command to use an absolute path from root
>>>instead and see if that
>>> makes any difference.
>>>
>>> HDB
>>> Jolle
>>>
>>> #############################################################
>>>
>>> This message is sent to you because you are subscribed to
>>> the mailing list Lasso [hidden email]
>>> Official list archives available at http://www.lassotalk.com
>>> To unsubscribe, E-mail to:
>>> Send administrative queries to
>>>
>>
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>>  the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
>Marc Pinnell
>1027 Design
>PO Box 990872
>Redding, CA 96099-0872
>530.941.4706
>fax: 866.232.5300
>www.1027Design.com
>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>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]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: sys_process

Jolle Carlestam-2
In reply to this post by Marc Pinnell-3
13 nov 2014 kl. 17:34 skrev Marc Pinnell <[hidden email]>:

> local(proc) = sys_process('/chroot/home/interworx/bin/listaccounts.pex --domain')

You can’t have spaces in the param. Try
local(proc) = sys_process('/chroot/home/interworx/bin/listaccounts.pex’, (:'--domain’)

HDB
Jolle

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: sys_process

Jolle Carlestam-2
13 nov 2014 kl. 18:09 skrev Jolle Carlestam <[hidden email]>:

> You can’t have spaces in the param. Try
> local(proc) = sys_process('/chroot/home/interworx/bin/listaccounts.pex’, (:'--domain’)

Ah, missed a bracket
local(proc) = sys_process('/chroot/home/interworx/bin/listaccounts.pex’, (:'--domain’))

Also, since it can be a permissions thing. List the access rights for the directory and file in question.

Maybe try to list it using Lasso
local(proc) = sys_process(’/bin/ls', (: '/chroot/home/interworx/bin/’))

HDB
Jolle

#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: sys_process

Marc Pinnell-3
Picked up the missing ")". When I ran that revised command, I get: "Permission denied" which makes sense.

Marc


On Nov 13, 2014, at 9:13 AM, Jolle Carlestam <[hidden email]> wrote:

> 13 nov 2014 kl. 18:09 skrev Jolle Carlestam <[hidden email]>:
>
>> You can’t have spaces in the param. Try
>> local(proc) = sys_process('/chroot/home/interworx/bin/listaccounts.pex’, (:'--domain’)
>
> Ah, missed a bracket
> local(proc) = sys_process('/chroot/home/interworx/bin/listaccounts.pex’, (:'--domain’))
>
> Also, since it can be a permissions thing. List the access rights for the directory and file in question.
>
> Maybe try to list it using Lasso
> local(proc) = sys_process(’/bin/ls', (: '/chroot/home/interworx/bin/’))
>
> HDB
> Jolle
>
> #############################################################
>
> This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

Marc Pinnell
1027 Design
PO Box 990872
Redding, CA 96099-0872
530.941.4706
fax: 866.232.5300
www.1027Design.com



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: sys_process

stevepiercy
Command to return only the owner name of the file.

stat -f %Su </path/to/filename>

...which you can read from sys_process, then plop into a
subsequent sys_process to solve the user permission problem
programmatically instead of hard-coding it.  Assuming you need
to do that, of course.

--steve


On 11/13/14 at 9:15 AM, [hidden email] (Marc
Pinnell) pronounced:

>Picked up the missing ")". When I ran that revised command, I
>get: "Permission denied" which makes sense.
>
>Marc
>
>
>On Nov 13, 2014, at 9:13 AM, Jolle Carlestam <[hidden email]> wrote:
>
>>13 nov 2014 kl. 18:09 skrev Jolle Carlestam <[hidden email]>:
>>
>>> You can’t have spaces in the param. Try
>>> local(proc) = sys_process('/chroot/home/interworx/bin/listaccounts.pex’, (:'--domain’)
>>
>>Ah, missed a bracket
>>local(proc) = sys_process('/chroot/home/interworx/bin/listaccounts.pex’, (:'--domain’))
>>
>>Also, since it can be a permissions thing. List the access rights for the directory and
>file in question.
>>
>>Maybe try to list it using Lasso
>>local(proc) = sys_process(’/bin/ls', (: '/chroot/home/interworx/bin/’))
>>
>>HDB
>>Jolle
>>
>>#############################################################
>>
>>This message is sent to you because you are subscribed to
>>the mailing list Lasso [hidden email]
>>Official list archives available at http://www.lassotalk.com
>>To unsubscribe, E-mail to: <[hidden email]>
>>Send administrative queries to  <[hidden email]>
>
>Marc Pinnell
>1027 Design
>PO Box 990872
>Redding, CA 96099-0872
>530.941.4706
>fax: 866.232.5300
>www.1027Design.com
>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>To unsubscribe, E-mail to: <[hidden email]>
>Send administrative queries to  <[hidden email]>

-- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
Steve Piercy              Website Builder              Soquel, CA
<[hidden email]>               <http://www.StevePiercy.com/>


#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: sys_process

Marc Pinnell-3
No joy. :(

I think I am going to attack this from another angle...

marc


On Nov 13, 2014, at 9:42 AM, Steve Piercy - Website Builder <[hidden email]> wrote:

> Command to return only the owner name of the file.
>
> stat -f %Su </path/to/filename>
>
> ...which you can read from sys_process, then plop into a subsequent sys_process to solve the user permission problem programmatically instead of hard-coding it.  Assuming you need to do that, of course.
>
> --steve
>
>
> On 11/13/14 at 9:15 AM, [hidden email] (Marc Pinnell) pronounced:
>
>> Picked up the missing ")". When I ran that revised command, I get: "Permission denied" which makes sense.
>>
>> Marc
>>
>>
>> On Nov 13, 2014, at 9:13 AM, Jolle Carlestam <[hidden email]> wrote:
>>
>>> 13 nov 2014 kl. 18:09 skrev Jolle Carlestam <[hidden email]>:
>>>
>>>> You can’t have spaces in the param. Try
>>>> local(proc) = sys_process('/chroot/home/interworx/bin/listaccounts.pex’, (:'--domain’)
>>>
>>> Ah, missed a bracket
>>> local(proc) = sys_process('/chroot/home/interworx/bin/listaccounts.pex’, (:'--domain’))
>>>
>>> Also, since it can be a permissions thing. List the access rights for the directory and
>> file in question.
>>>
>>> Maybe try to list it using Lasso
>>> local(proc) = sys_process(’/bin/ls', (: '/chroot/home/interworx/bin/’))
>>>
>>> HDB
>>> Jolle
>>>
>>> #############################################################
>>>
>>> This message is sent to you because you are subscribed to
>>> the mailing list Lasso [hidden email]
>>> Official list archives available at http://www.lassotalk.com
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>> Marc Pinnell
>> 1027 Design
>> PO Box 990872
>> Redding, CA 96099-0872
>> 530.941.4706
>> fax: 866.232.5300
>> www.1027Design.com
>>
>>
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
> -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- -- --
> Steve Piercy              Website Builder              Soquel, CA
> <[hidden email]>               <http://www.StevePiercy.com/>
>
>
> #############################################################
>
> This message is sent to you because you are subscribed to
> the mailing list Lasso [hidden email]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

Marc Pinnell
1027 Design
PO Box 990872
Redding, CA 96099-0872
530.941.4706
fax: 866.232.5300
www.1027Design.com



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: sys_process

Steffan A. Cline
In reply to this post by Marc Pinnell-3
> When I ran that revised command, I get: "Permission denied" which makes
>sense.

To which I told you to add Lasso to the group that owns the file/directory
and it will work.

Have you tried this?

ls -l /chroot/home/interworx/bin/listaccounts.pex

Get the group

If CentOS -

useradd -G groupname lasso

Restart Lasso and give it a shot.




Thanks,
Steffan

---------------------------------------------------------------
T E L  6 0 2 . 7 9 3 . 0 0 1 4 | F A X  6 0 2 . 9 7 1 . 1 6 9 4
Steffan A. Cline   [hidden email]
http://www.ExecuChoice.net                 Phoenix, Arizona USA
                 
---------------------------------------------------------------






On 11/13/14, 10:15 AM, "Marc Pinnell" <[hidden email]> wrote:

>Picked up the missing ")". When I ran that revised command, I get:
>"Permission denied" which makes sense.
>
>Marc
>
>
>On Nov 13, 2014, at 9:13 AM, Jolle Carlestam <[hidden email]> wrote:
>
>> 13 nov 2014 kl. 18:09 skrev Jolle Carlestam <[hidden email]>:
>>
>>> You can¹t have spaces in the param. Try
>>> local(proc) =
>>>sys_process('/chroot/home/interworx/bin/listaccounts.pex¹, (:'--domain¹)
>>
>> Ah, missed a bracket
>> local(proc) =
>>sys_process('/chroot/home/interworx/bin/listaccounts.pex¹, (:'--domain¹))
>>
>> Also, since it can be a permissions thing. List the access rights for
>>the directory and file in question.
>>
>> Maybe try to list it using Lasso
>> local(proc) = sys_process(¹/bin/ls', (: '/chroot/home/interworx/bin/¹))
>>
>> HDB
>> Jolle
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>>  the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
>Marc Pinnell
>1027 Design
>PO Box 990872
>Redding, CA 96099-0872
>530.941.4706
>fax: 866.232.5300
>www.1027Design.com
>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>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]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: sys_process

Marc Pinnell-3
Missed the restart part the first time... however, didn't make a difference. Still getting permission denied.

So digging in again, I find:

[root@1027 ~]# grep iworx /etc/group
iworx:x:250:iworx-backup,_lasso,lasso

Ok, I have added to the Lasso to the group at work here. But let's double check:

[root@1027 ~]# ls -l /chroot/home/interworx/bin/listaccounts.pex
lrwxrwxrwx 1 root root 10 Nov  7 11:20 /chroot/home/interworx/bin/listaccounts.pex -> decoder.sh

Hmmmm....

[root@1027 ~]# ls -l /chroot/home/interworx/bin/decoder.sh
-rwxrwx--- 1 root iworx 319 Jul 22 07:31 /chroot/home/interworx/bin/decoder.sh


Maybe this can't be done from within Lasso without adding Lasso to "root" (which I would suspect is not a good idea)?

Marc

On Nov 13, 2014, at 4:51 PM, Steffan A. Cline <[hidden email]> wrote:

>> When I ran that revised command, I get: "Permission denied" which makes
>> sense.
>
> To which I told you to add Lasso to the group that owns the file/directory
> and it will work.
>
> Have you tried this?
>
> ls -l /chroot/home/interworx/bin/listaccounts.pex
>
> Get the group
>
> If CentOS -
>
> useradd -G groupname lasso
>
> Restart Lasso and give it a shot.
>
>
>
>
> Thanks,
> Steffan
>
> ---------------------------------------------------------------
> T E L  6 0 2 . 7 9 3 . 0 0 1 4 | F A X  6 0 2 . 9 7 1 . 1 6 9 4
> Steffan A. Cline   [hidden email]
> http://www.ExecuChoice.net                 Phoenix, Arizona USA
>
> ---------------------------------------------------------------
>
>
>
>
>
>
> On 11/13/14, 10:15 AM, "Marc Pinnell" <[hidden email]> wrote:
>
>> Picked up the missing ")". When I ran that revised command, I get:
>> "Permission denied" which makes sense.
>>
>> Marc
>>
>>
>> On Nov 13, 2014, at 9:13 AM, Jolle Carlestam <[hidden email]> wrote:
>>
>>> 13 nov 2014 kl. 18:09 skrev Jolle Carlestam <[hidden email]>:
>>>
>>>> You can¹t have spaces in the param. Try
>>>> local(proc) =
>>>> sys_process('/chroot/home/interworx/bin/listaccounts.pex¹, (:'--domain¹)
>>>
>>> Ah, missed a bracket
>>> local(proc) =
>>> sys_process('/chroot/home/interworx/bin/listaccounts.pex¹, (:'--domain¹))
>>>
>>> Also, since it can be a permissions thing. List the access rights for
>>> the directory and file in question.
>>>
>>> Maybe try to list it using Lasso
>>> local(proc) = sys_process(¹/bin/ls', (: '/chroot/home/interworx/bin/¹))
>>>
>>> HDB
>>> Jolle
>>>
>>> #############################################################
>>>
>>> This message is sent to you because you are subscribed to
>>> the mailing list Lasso [hidden email]
>>> Official list archives available at http://www.lassotalk.com
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>> Marc Pinnell
>> 1027 Design
>> PO Box 990872
>> Redding, CA 96099-0872
>> 530.941.4706
>> fax: 866.232.5300
>> www.1027Design.com
>>
>>
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> 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]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

Marc Pinnell
1027 Design
PO Box 990872
Redding, CA 96099-0872
530.941.4706
fax: 866.232.5300
www.1027Design.com



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: sys_process

Steffan A. Cline
I would NOT add lasso to root but the listaccounts.pex is a symlink to
decoder.sh. So, you can either change the symlink to being owned by iworx,
which seems relevant since it's in the interworx directory, or use the
decoder.sh which is owned by iworx.

sudo chown -h iworx:iworx /chroot/home/interworx/bin/listaccounts.pex

Another thing to take into consideration is if that script calls anything
which requires a higher permission.

Try changing ownership of that script and/or symlink then try what I
suggested earlier.

sudo su -m lasso

and see if you can execute that command as expected. If so, then it's just
a matter of making sure your lasso code is correct.

If not, you'll have to do some digging to see why.


Thanks,
Steffan

---------------------------------------------------------------
T E L  6 0 2 . 7 9 3 . 0 0 1 4 | F A X  6 0 2 . 9 7 1 . 1 6 9 4
Steffan A. Cline   [hidden email]
http://www.ExecuChoice.net                 Phoenix, Arizona USA
                 
---------------------------------------------------------------






On 11/13/14, 5:59 PM, "Marc Pinnell" <[hidden email]> wrote:

>Missed the restart part the first time... however, didn't make a
>difference. Still getting permission denied.
>
>So digging in again, I find:
>
>[root@1027 ~]# grep iworx /etc/group
>iworx:x:250:iworx-backup,_lasso,lasso
>
>Ok, I have added to the Lasso to the group at work here. But let's double
>check:
>
>[root@1027 ~]# ls -l /chroot/home/interworx/bin/listaccounts.pex
>lrwxrwxrwx 1 root root 10 Nov  7 11:20
>/chroot/home/interworx/bin/listaccounts.pex -> decoder.sh
>
>Hmmmm....
>
>[root@1027 ~]# ls -l /chroot/home/interworx/bin/decoder.sh
>-rwxrwx--- 1 root iworx 319 Jul 22 07:31
>/chroot/home/interworx/bin/decoder.sh
>
>
>Maybe this can't be done from within Lasso without adding Lasso to "root"
>(which I would suspect is not a good idea)?
>
>Marc
>
>On Nov 13, 2014, at 4:51 PM, Steffan A. Cline <[hidden email]> wrote:
>
>>> When I ran that revised command, I get: "Permission denied" which makes
>>> sense.
>>
>> To which I told you to add Lasso to the group that owns the
>>file/directory
>> and it will work.
>>
>> Have you tried this?
>>
>> ls -l /chroot/home/interworx/bin/listaccounts.pex
>>
>> Get the group
>>
>> If CentOS -
>>
>> useradd -G groupname lasso
>>
>> Restart Lasso and give it a shot.
>>
>>
>>
>>
>> Thanks,
>> Steffan
>>
>> ---------------------------------------------------------------
>> T E L  6 0 2 . 7 9 3 . 0 0 1 4 | F A X  6 0 2 . 9 7 1 . 1 6 9 4
>> Steffan A. Cline   [hidden email]
>> http://www.ExecuChoice.net                 Phoenix, Arizona USA
>>
>> ---------------------------------------------------------------
>>
>>
>>
>>
>>
>>
>> On 11/13/14, 10:15 AM, "Marc Pinnell" <[hidden email]>
>>wrote:
>>
>>> Picked up the missing ")". When I ran that revised command, I get:
>>> "Permission denied" which makes sense.
>>>
>>> Marc
>>>
>>>
>>> On Nov 13, 2014, at 9:13 AM, Jolle Carlestam <[hidden email]>
>>>wrote:
>>>
>>>> 13 nov 2014 kl. 18:09 skrev Jolle Carlestam <[hidden email]>:
>>>>
>>>>> You can¹t have spaces in the param. Try
>>>>> local(proc) =
>>>>> sys_process('/chroot/home/interworx/bin/listaccounts.pex¹,
>>>>>(:'--domain¹)
>>>>
>>>> Ah, missed a bracket
>>>> local(proc) =
>>>> sys_process('/chroot/home/interworx/bin/listaccounts.pex¹,
>>>>(:'--domain¹))
>>>>
>>>> Also, since it can be a permissions thing. List the access rights for
>>>> the directory and file in question.
>>>>
>>>> Maybe try to list it using Lasso
>>>> local(proc) = sys_process(¹/bin/ls', (:
>>>>'/chroot/home/interworx/bin/¹))
>>>>
>>>> HDB
>>>> Jolle
>>>>
>>>> #############################################################
>>>>
>>>> This message is sent to you because you are subscribed to
>>>> the mailing list Lasso [hidden email]
>>>> Official list archives available at http://www.lassotalk.com
>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>> Send administrative queries to  <[hidden email]>
>>>
>>> Marc Pinnell
>>> 1027 Design
>>> PO Box 990872
>>> Redding, CA 96099-0872
>>> 530.941.4706
>>> fax: 866.232.5300
>>> www.1027Design.com
>>>
>>>
>>>
>>> #############################################################
>>>
>>> This message is sent to you because you are subscribed to
>>> the mailing list Lasso [hidden email]
>>> Official list archives available at http://www.lassotalk.com
>>> 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]
>> Official list archives available at http://www.lassotalk.com
>> To unsubscribe, E-mail to: <[hidden email]>
>> Send administrative queries to  <[hidden email]>
>
>Marc Pinnell
>1027 Design
>PO Box 990872
>Redding, CA 96099-0872
>530.941.4706
>fax: 866.232.5300
>www.1027Design.com
>
>
>
>#############################################################
>
>This message is sent to you because you are subscribed to
>  the mailing list Lasso [hidden email]
>Official list archives available at http://www.lassotalk.com
>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]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
Reply | Threaded
Open this post in threaded view
|

Re: sys_process

Marc Pinnell-3
Followed your advice. Running from the command line as the Lasso user I got a PHP error, which I took as a good sign.

Went back to Lasso and still get a permissions issue. :(

Marc


On Nov 13, 2014, at 5:42 PM, Steffan A. Cline <[hidden email]> wrote:

> I would NOT add lasso to root but the listaccounts.pex is a symlink to
> decoder.sh. So, you can either change the symlink to being owned by iworx,
> which seems relevant since it's in the interworx directory, or use the
> decoder.sh which is owned by iworx.
>
> sudo chown -h iworx:iworx /chroot/home/interworx/bin/listaccounts.pex
>
> Another thing to take into consideration is if that script calls anything
> which requires a higher permission.
>
> Try changing ownership of that script and/or symlink then try what I
> suggested earlier.
>
> sudo su -m lasso
>
> and see if you can execute that command as expected. If so, then it's just
> a matter of making sure your lasso code is correct.
>
> If not, you'll have to do some digging to see why.
>
>
> Thanks,
> Steffan
>
> ---------------------------------------------------------------
> T E L  6 0 2 . 7 9 3 . 0 0 1 4 | F A X  6 0 2 . 9 7 1 . 1 6 9 4
> Steffan A. Cline   [hidden email]
> http://www.ExecuChoice.net                 Phoenix, Arizona USA
>
> ---------------------------------------------------------------
>
>
>
>
>
>
> On 11/13/14, 5:59 PM, "Marc Pinnell" <[hidden email]> wrote:
>
>> Missed the restart part the first time... however, didn't make a
>> difference. Still getting permission denied.
>>
>> So digging in again, I find:
>>
>> [root@1027 ~]# grep iworx /etc/group
>> iworx:x:250:iworx-backup,_lasso,lasso
>>
>> Ok, I have added to the Lasso to the group at work here. But let's double
>> check:
>>
>> [root@1027 ~]# ls -l /chroot/home/interworx/bin/listaccounts.pex
>> lrwxrwxrwx 1 root root 10 Nov  7 11:20
>> /chroot/home/interworx/bin/listaccounts.pex -> decoder.sh
>>
>> Hmmmm....
>>
>> [root@1027 ~]# ls -l /chroot/home/interworx/bin/decoder.sh
>> -rwxrwx--- 1 root iworx 319 Jul 22 07:31
>> /chroot/home/interworx/bin/decoder.sh
>>
>>
>> Maybe this can't be done from within Lasso without adding Lasso to "root"
>> (which I would suspect is not a good idea)?
>>
>> Marc
>>
>> On Nov 13, 2014, at 4:51 PM, Steffan A. Cline <[hidden email]> wrote:
>>
>>>> When I ran that revised command, I get: "Permission denied" which makes
>>>> sense.
>>>
>>> To which I told you to add Lasso to the group that owns the
>>> file/directory
>>> and it will work.
>>>
>>> Have you tried this?
>>>
>>> ls -l /chroot/home/interworx/bin/listaccounts.pex
>>>
>>> Get the group
>>>
>>> If CentOS -
>>>
>>> useradd -G groupname lasso
>>>
>>> Restart Lasso and give it a shot.
>>>
>>>
>>>
>>>
>>> Thanks,
>>> Steffan
>>>
>>> ---------------------------------------------------------------
>>> T E L  6 0 2 . 7 9 3 . 0 0 1 4 | F A X  6 0 2 . 9 7 1 . 1 6 9 4
>>> Steffan A. Cline   [hidden email]
>>> http://www.ExecuChoice.net                 Phoenix, Arizona USA
>>>
>>> ---------------------------------------------------------------
>>>
>>>
>>>
>>>
>>>
>>>
>>> On 11/13/14, 10:15 AM, "Marc Pinnell" <[hidden email]>
>>> wrote:
>>>
>>>> Picked up the missing ")". When I ran that revised command, I get:
>>>> "Permission denied" which makes sense.
>>>>
>>>> Marc
>>>>
>>>>
>>>> On Nov 13, 2014, at 9:13 AM, Jolle Carlestam <[hidden email]>
>>>> wrote:
>>>>
>>>>> 13 nov 2014 kl. 18:09 skrev Jolle Carlestam <[hidden email]>:
>>>>>
>>>>>> You can¹t have spaces in the param. Try
>>>>>> local(proc) =
>>>>>> sys_process('/chroot/home/interworx/bin/listaccounts.pex¹,
>>>>>> (:'--domain¹)
>>>>>
>>>>> Ah, missed a bracket
>>>>> local(proc) =
>>>>> sys_process('/chroot/home/interworx/bin/listaccounts.pex¹,
>>>>> (:'--domain¹))
>>>>>
>>>>> Also, since it can be a permissions thing. List the access rights for
>>>>> the directory and file in question.
>>>>>
>>>>> Maybe try to list it using Lasso
>>>>> local(proc) = sys_process(¹/bin/ls', (:
>>>>> '/chroot/home/interworx/bin/¹))
>>>>>
>>>>> HDB
>>>>> Jolle
>>>>>
>>>>> #############################################################
>>>>>
>>>>> This message is sent to you because you are subscribed to
>>>>> the mailing list Lasso [hidden email]
>>>>> Official list archives available at http://www.lassotalk.com
>>>>> To unsubscribe, E-mail to: <[hidden email]>
>>>>> Send administrative queries to  <[hidden email]>
>>>>
>>>> Marc Pinnell
>>>> 1027 Design
>>>> PO Box 990872
>>>> Redding, CA 96099-0872
>>>> 530.941.4706
>>>> fax: 866.232.5300
>>>> www.1027Design.com
>>>>
>>>>
>>>>
>>>> #############################################################
>>>>
>>>> This message is sent to you because you are subscribed to
>>>> the mailing list Lasso [hidden email]
>>>> Official list archives available at http://www.lassotalk.com
>>>> 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]
>>> Official list archives available at http://www.lassotalk.com
>>> To unsubscribe, E-mail to: <[hidden email]>
>>> Send administrative queries to  <[hidden email]>
>>
>> Marc Pinnell
>> 1027 Design
>> PO Box 990872
>> Redding, CA 96099-0872
>> 530.941.4706
>> fax: 866.232.5300
>> www.1027Design.com
>>
>>
>>
>> #############################################################
>>
>> This message is sent to you because you are subscribed to
>> the mailing list Lasso [hidden email]
>> Official list archives available at http://www.lassotalk.com
>> 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]
> Official list archives available at http://www.lassotalk.com
> To unsubscribe, E-mail to: <[hidden email]>
> Send administrative queries to  <[hidden email]>

Marc Pinnell
1027 Design
PO Box 990872
Redding, CA 96099-0872
530.941.4706
fax: 866.232.5300
www.1027Design.com



#############################################################

This message is sent to you because you are subscribed to
  the mailing list Lasso [hidden email]
Official list archives available at http://www.lassotalk.com
To unsubscribe, E-mail to: <[hidden email]>
Send administrative queries to  <[hidden email]>
12