ProgrammingThis forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
Just looking for some advice on how best to approach this problem on RH9.
I am wanting to display a web page that a user have to authenticate on to. The resulting page shows a number of scripts that appears in a matching home directory on the box and allows them to start the scripts.
e.g.
User 1 has scripts A & B
User 2 has scripts C & D & E
When User 1 logs in they are presented only with the scripts A & B which live in their user area. This person can then call a routine that will execute either one of them.
At the moment I am looking for advice in to which languages would be best to attempt this in and if anyone knows of any examples out there, can they point me in the direction so I can take a look at them.
I do web programming for a living so the choice of language is unimportant to me at the moment in terms of learning it, but its the concept of presenting a specific users files and executing them that I am interested in, and if its more flexible in one language than another.
I understand what your saying, and, your not gonna do it.
Web Pages do not run programs on a persons computer, unless that program is a virus. Programs can be run that will access a web page for info and go to certain areas of the webpage, but that's not what your asking for.
What your asking for is a way that would, if possible, allow anyone with a web page to run anything on another persons computer just because it exists. Since this would be a really stupid idea... web browsers don't do this.
Do you mean the scripts all reside on the ONE red hat box and will only effect that person's user space on the red hat box? If that's the case you could achieve what you want to do fairly simply in perl. You could have a cgi script which does a directory listing of the user's home space on the RH box and displays the names of any files ending in .sh (or any other sort of extension you want) on the web page...you could then arrange that script to be run when the user clicks on it, assuming that the script is also written in perl.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.