Sponsored Content
Top Forums Web Development Call shell script from HTML page - without web server Post 302421885 by pludi on Monday 17th of May 2010 02:39:23 AM
Old 05-17-2010
The reason is quite simple: the HTML page is only displayed in your browser. There's nothing executed outside. And whenever the browser access a local file it only reads it. No execution, no interpreting, ...

And that's a good thing too. Imagine, if you will, a malicious site tricks you into downloading a shell script. Nothing fancy, just a simple "rm -f" or a small fork bomb. All it then needed to do would be to provide you with a link to that script (simply done with JS for example), have the browser execute it, and BOOM.

As for the "permissions" issue: a small webserver like lighttpd can be set up in a matter of minutes, including CGI support.
These 2 Users Gave Thanks to pludi For This Post:
 

10 More Discussions You Might Find Interesting

1. Shell Programming and Scripting

running shell script thru WEB page ....

....passing variable via list... here 's the HTML code extract : **************** <form method=post action=http://servername/cgi-bin/cgi-comptage_diff.ksh> <table border...........> .............. </table> <table bgcolor=#FFFFFF width="980"> ... (6 Replies)
Discussion started by: Nicol
6 Replies

2. Shell Programming and Scripting

Invoking shell script from html/jsp page

I want to invoke shell script named bubesh.sh when submit button clicked on html/jsp page.I am using an apache server and the html & shell script are in the same working directory.Please help. (2 Replies)
Discussion started by: bubeshj
2 Replies

3. UNIX and Linux Applications

Html web page to Unix Connectivity

Hi All, I need a basic overview of connecting a HTML web page to Unix I will give a brief of my exact requirement. There will be a front end HTML page - a web page which will have certain buttons. Each button will have certain functionality. For eg: There is a button for Disk Usage. When the... (1 Reply)
Discussion started by: abhilashnair
1 Replies

4. Shell Programming and Scripting

how to redirect to a web-page by shell script

Dear all, I am calling a korn shell script(CGI script) by a web-page. This shell script do some checking in a unix file and return true or false. Now within the same script, If it returns true then I want to redirect to another web-page stored in htdocs directory. Example: Login page sends a... (3 Replies)
Discussion started by: ravi18s
3 Replies

5. Shell Programming and Scripting

How to pass data from server (CGI script) to client (html page)

Hi I know how to pass data from client side (html file) to server using CGI script (POST method). I also know how to re-create the html page from server side after receiving the data (using printf). However I want to write static pages on client side (only the structure), and only to pass... (0 Replies)
Discussion started by: naamabm
0 Replies

6. Shell Programming and Scripting

Migrating from Shell Script to HTML Page

Hi, Need Help, Recently I have thought to migrating my Korn Shell Scripts to html page..., already webserv is running on my unix machine. How to migrate the shell scripts to html page.. Please refer any web portal or sample codes. Thanks in Adavce (2 Replies)
Discussion started by: l_gshankar24
2 Replies

7. Shell Programming and Scripting

Dynamic checkbox(HTML page) for each process using shell script

Hi friends, I m newbie to bash scripting , i m writing script(bash) that will display all processes which r running in my system in an html page, everything going fine but i m not able to get checkbox dynamically for each process in html page ,so that i can mark that process... (2 Replies)
Discussion started by: vagga06
2 Replies

8. Shell Programming and Scripting

Monitoring an html web page changes

Hello, I need to monitor an html web page for ANY changes and should be able to know if it's modified or not (since last query). I do not need what modifications but just notification is enough. This is a simple web page and I don't need to parse the links any further. Is it possible to do... (10 Replies)
Discussion started by: prvnrk
10 Replies

9. AIX

How to Use a UNIX Shell Script to Create an HTML Web Page?

dear friends , in my work i have to monitor some system performance in hourly basis by runing some commands , for example (lpstat) to know that all the queue is ready how can i create webpage and connect it with the server (AIX operating system) and make this page refreshed every 10 second and... (12 Replies)
Discussion started by: rami abusweilei
12 Replies

10. UNIX for Dummies Questions & Answers

How to switch the user before executing a shell script from web page??

hi, i want to execute a shell script as a different user. the flow is like this. there is a html web page from which i have to call a shell script. web server is apache. to call the shell script from html page, a perl script is required. so the html page calls the perl script and the perl... (2 Replies)
Discussion started by: Little
2 Replies
yelp(1) 							   User Commands							   yelp(1)

NAME
yelp, gnome-help - GNOME help browser SYNOPSIS
yelp | gnome-help [--private-session] [--with-cache-dir=string] [gnome-std-options] url DESCRIPTION
The GNOME help browser is a utility that allows users to view documentation for GNOME in several formats including man pages, HTML, SGML(DocBook), and GNU info files. OPTIONS
The following options are supported: --private-session Use a private session. --with-cache-dir=directory Specify which cache directory to use. gnome-std-options Standard options available for use with most GNOME applications. See gnome-std-options(5) for more infor- mation. OPERANDS
The following operands are supported: url This allows you to view a specific help document by providing the complete url to the documentation that you wish to view. If url starts with "ghelp:", yelp opens the help document within ghelp. If url does not start with "ghelp:", yelp attempts to launch a default Internet browser window and display the contents of the help document within this browser window. EXTENDED DESCRIPTION
Refer to the GNOME Handbook of Writing Software Documentation: http://developer.gnome.org/projects/gdp/handbook.html To access the API documentation for including help in applications, you must install the developer version of the package. EXAMPLES
Example 1: Launching GNOME Help Browser example% yelp Example 2: Launching GNOME Help Browser and loading the help information for the GNOME Accessibility guide. example% yelp ghelp:///usr/share/gnome/help/gnome-access-guide/C/gnome-access-guide.xml Example 3: Launching GNOME Help Browser with a standard Internet URL example% yelp http://www.gnome.org The default Internet browser is launched (unless a browser is already running), and this URL is displayed within the browser window. ENVIRONMENT VARIABLES
See environ(5) for descriptions of the following environment variables: INFOPATH Location of GNU Info files. MANPATH Location of man pages. EXIT STATUS
The following exit values are returned: 0 Application exited successfully >0 Application exited with failure FILES
The following files are used by this application: /usr/bin/yelp Executable for GNOME help browser /usr/bin/gnome-help Symbolic link to yelp. ATTRIBUTES
See attributes(5) for descriptions of the following attributes: +-----------------------------+-----------------------------+ | ATTRIBUTE TYPE | ATTRIBUTE VALUE | +-----------------------------+-----------------------------+ |Availability |SUNWgnome-help-viewer | +-----------------------------+-----------------------------+ |Interface stability |Volatile | +-----------------------------+-----------------------------+ SEE ALSO
Latest version of the GNOME Desktop User Guide for your platform. scrollkeeper-config(1), scrollkeeper(1), scrollkeeper-devel(1), attributes(5), environ(5), gnome-std-options(5) NOTES
yelp and gnome-help are both the same application. Written by Matt Keenan, Sun Microsystems Inc., 2003, 2007. SunOS 5.11 08 Nov 2007 yelp(1)
All times are GMT -4. The time now is 03:52 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy