LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.

Notices


Reply
  Search this Thread
Old 04-26-2004, 09:45 AM   #1
Hazzie
LQ Newbie
 
Registered: Aug 2003
Location: Stockport, UK
Distribution: RH9
Posts: 12

Rep: Reputation: 0
Kicking off a script form a web page


Hi,

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.

Cheers,
Hazzie.
 
Old 04-26-2004, 11:35 AM   #2
Caeda
Senior Member
 
Registered: Jul 2003
Location: Indiana
Distribution: Suse 6.0+, Mandrake 5.0-10.0, Redhat 6.0-9.0, Gentoo 1.2+, Gnoppix, Knoppix, Sabayon, Ubuntu 5.04+
Posts: 1,811

Rep: Reputation: 45
Right....

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.
 
Old 04-26-2004, 01:09 PM   #3
Komakino
Senior Member
 
Registered: Feb 2004
Location: Somerset, England
Distribution: Slackware 10.2, Slackware 10.0, Ubuntu 9.10
Posts: 1,938

Rep: Reputation: 55
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.
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Cant make web server run my local web page... Nik0s Linux - Newbie 22 10-08-2006 10:30 PM
How do I display real shell script output to web page. farmerjoe Programming 1 04-07-2005 01:03 PM
set focus on a text form of a web page? codec Programming 2 12-31-2004 04:32 AM
shell script works form command line but not form crontab saifee General 1 10-14-2004 10:27 AM
Jerky mouse when web browsers download web page stodge Linux - Software 1 07-08-2003 10:29 PM

LinuxQuestions.org > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 10:51 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration