News : The level of daily SPAM has reached insane proportions, all registrations are now manual. I ask you to send me an e-mail (john (at) murga (dot) org), to confirm that you want me to create an account for you.


Post Reply  Post Thread 
Pages (2): « First [1] 2 Next > Last »
Praise for murgalua
Author Message
asafp
Member
***


Posts: 81
Group: Registered
Joined: Jan 2008
Status: Offline
Reputation: 0
Post: #1
Praise for murgalua

I've only been using lua/murgalua a very short time. I've found it to be very easy to learn and there are great features other languages don't have.

The flexible way of expressing string literals is fantastic with single or double quotes and the bracket notation. The string functions and builtin pattern matching is both simple and extremely powerful. Pattern matching is just there for me, I don't have to deal with pain-in-the-ass stuff like creating a regular expression object and I don't have a completely different set of commands for regular expressions and simple character matching and I don't need external libraries. Sockets is builtin to murgalua and fits in perfectly and doesn't seem like a clunky add-on like so many things in python do.

My main gripe is that on some linux systems, murgalua just isn't available to me and I don't have authority to install it. I miss it dearly. I hope someday murgalua will be like grep as a standard part of linux.

The Lua doc is also very good. I have the hardcopy of both the Lua Reference and the Programming in Lua books. I can usually find exactly what I need in there quickly.

03-07-2008 01:05 PM
Visit this user's website Find all posts by this user Quote this message in a reply
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #2
RE: Praise for murgalua

Quote:
on some linux systems, murgalua just isn't available to me and I don't have authority to install it

Sorry, but that's not true. Regardless of what permissions you have in the file system, as long as you have a writable home directory you can install whatever software you want. You can create a $HOME/bin directory and add that to your PATH variable. You can put executables here. You can modify your LD_LIBRARY_PATH variable to include $HOME/lib for libraries that can't be installed into /lib, /usr/lib, or /usr/local/lib.

When installing from source with the typical "configure/make/make install" techique you can configure --prefix=$HOME or edit the config script to have the application built to install entirely within your home directory.

03-07-2008 01:21 PM
Find all posts by this user Quote this message in a reply
asafp
Member
***


Posts: 81
Group: Registered
Joined: Jan 2008
Status: Offline
Reputation: 0
Post: #3
RE: Praise for murgalua

I should rephrase that. I have authority to install things into my own directory. I don't have authority to execute a compiled module that is not in the standard /usr/bin or /usr/lib/bin. So, in other words, I can install it, but not execute it.

This type of situation is common with the limited shell access offered by many web hosting companies.

03-07-2008 02:33 PM
Visit this user's website Find all posts by this user Quote this message in a reply
mikshaw
Senior Member
****


Posts: 522
Group: Registered
Joined: Apr 2007
Status: Offline
Reputation: 5
Post: #4
RE: Praise for murgalua

oh....I see your situation.
I'd really hate to be using a system like that...too much of my computing depends on custom scripts.

03-08-2008 12:10 AM
Find all posts by this user Quote this message in a reply
Juergen
Member
***


Posts: 81
Group: Registered
Joined: May 2007
Status: Offline
Reputation: 0
Post: #5
RE: Praise for murgalua

asafp Wrote:
I should rephrase that. I have authority to install things into my own directory. I don't have authority to execute a compiled module that is not in the standard /usr/bin or /usr/lib/bin. So, in other words, I can install it, but not execute it.

This type of situation is common with the limited shell access offered by many web hosting companies.


Normally, such an account doesn't make sense. If it is that limited, ftp only access would make more sense (from an administrator point of view).

If a (stupid) administrator thinks he can limit access to the system with a normal restricted shell, he is totally wrong. Normally it is nearly impossible to completely lock a system with a r-shell. There are so many possibilities to circumvent it, so that most admins (those who try are normally not the brightest/experienced) don't even bother to try (except they want to adress novice users). The only way to lock a system completely is to use SELinux and co. (which is a pain to set up).

Have you tried to put the binary in your homedir, set the permissions and use "env ~/murgaLua" for example?

I guess there are also perl,python,awk, ..... interpreters in /usr/bin? This way there should be no problem to call murgaLua or a more useful shell.

Juergen

P.S.: It is of course a completely different question if it is a good idea to circumvent such restrictions (The owner/administrator of the system could be offended).

03-08-2008 04:37 AM
Find all posts by this user Quote this message in a reply
asafp
Member
***


Posts: 81
Group: Registered
Joined: Jan 2008
Status: Offline
Reputation: 0
Post: #6
RE: Praise for murgalua

Quote:
Have you tried to put the binary in your homedir, set the permissions and use "env ~/murgaLua" for example?


I tried that and get "permission denied". I also tried putting murgalua into /tmp directory which has execute permission and same message.

03-11-2008 10:38 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Juergen
Member
***


Posts: 81
Group: Registered
Joined: May 2007
Status: Offline
Reputation: 0
Post: #7
RE: Praise for murgalua

asafp Wrote:

Quote:
Have you tried to put the binary in your homedir, set the permissions and use "env ~/murgaLua" for example?


I tried that and get "permission denied". I also tried putting murgalua into /tmp directory which has execute permission and same message.


The standard UNIX/POSIX file permission don't allow to restrict execution permissions to directories. The x you see in the directory permissions has a different meaning. It means that you can list the directory contents. If someone wants to limit execution then this could be done with a mount option.

What are the permissions of the binary? (Did you do chmod 700 murgaLua ?)
Where does the permission denied come from? (What was the exact error message?)

If env doesn't work, then there might be find, xargs, awk, gawk, perl, python, tclsh, wish, rx, rz, ed, vi, defective shell scripts, ....

Juergen

03-11-2008 09:08 PM
Find all posts by this user Quote this message in a reply
asafp
Member
***


Posts: 81
Group: Registered
Joined: Jan 2008
Status: Offline
Reputation: 0
Post: #8
RE: Praise for murgalua

Tried

awk '{system("./murgaLua")}'

and I get the simple message

./murgaLua: permission denied

The same message no matter how I try to invoke any binary executable file.

03-13-2008 10:28 AM
Visit this user's website Find all posts by this user Quote this message in a reply
asafp
Member
***


Posts: 81
Group: Registered
Joined: Jan 2008
Status: Offline
Reputation: 0
Post: #9
RE: Praise for murgalua

Permission for murgaLua is 755, btw. I checked that.

03-13-2008 10:40 AM
Visit this user's website Find all posts by this user Quote this message in a reply
asafp
Member
***


Posts: 81
Group: Registered
Joined: Jan 2008
Status: Offline
Reputation: 0
Post: #10
RE: Praise for murgalua

When executing with env command, the error message is a little different. It refers to the directory.

env ~ ./murgaLua

env: /mnt/b02add6f/www: Permission denied

03-13-2008 10:46 AM
Visit this user's website Find all posts by this user Quote this message in a reply
Pages (2): « First [1] 2 Next > Last »
Post Reply  Post Thread 

View a Printable Version
Send this Thread to a Friend
Subscribe to this Thread | Add Thread to Favorites

Forum Jump: