Sponsored Content
Top Forums Shell Programming and Scripting Run command through html+cgi in bash Post 303023659 by MadeInGermany on Thursday 20th of September 2018 12:54:45 PM
Old 09-20-2018
CGI as root has security risks.
Maybe your webserver refuses to run CGI scripts as root? Check the Web server logs!
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

HTML-CGI on Unix

AAAHHH!! I've made a perl program that you can run on a web browser. This program needs to be run everyday, and I don't want to have to run it everyday. The problem is when I try running the program from my terminal, all it does is print stuff to the terminal page (the program involves a lot of... (4 Replies)
Discussion started by: sstevens
4 Replies

2. Shell Programming and Scripting

HTML form to cgi help

I wrote a script to automate user account verification against peoplesoft. Now I want to make it available to my peers via the web. It is running on Solaris. I have the form written, but am not sure how to make it work. I think the form should call a perl cgi when submitted. The cgi should call... (7 Replies)
Discussion started by: 98_1LE
7 Replies

3. Shell Programming and Scripting

html - df -k cgi script

Hey - I am new to cgi scripting... just writing a script to output df -k output to html page... but I cannot get the df lines on separate lines on the page, it all comes out on one line and is not very readable.. any suggestions? My script is below - please keep in mind I am only new to it so... (1 Reply)
Discussion started by: frustrated1
1 Replies

4. Shell Programming and Scripting

cgi script to echo a html file

Hi, I'm learning some simple cgi scripting. I can make a script like this, so my browser shows "Hello World" /www/cgi-bin/name.sh --- #!/bin/sh MyName=World echo "<html> Hello $MyName </html>" --- What I'd like is to have a separate html and script files in the cgi folder so ... (1 Reply)
Discussion started by: Performer
1 Replies

5. Shell Programming and Scripting

Run system command in perl cgi

Hi guys, got a problem with a perl cgi script over here. I need it to run a system command to get the status of a process. Unfortunately the process is owned by a specific user and only this user can get its status. So i tried running the command from the perl cgi with "su", but then i get the... (12 Replies)
Discussion started by: polki
12 Replies

6. Homework & Coursework Questions

Run Program from Bash CGI-Script

Use and complete the template provided. The entire template must be completed. If you don't, your post may be deleted! 1. The problem statement, all variables and given/known data: This is a problem I am having with my 2 semester senior project. I have a LAMP server running Ubuntu 9.10 with... (8 Replies)
Discussion started by: JMooney5115
8 Replies

7. UNIX and Linux Applications

execute shell script using CGI for html site

hi there im currently in the process of creating a website for use basically within our org. im using a os x machine and installed MAMP - which includes Apache, mysql... the site will be used by techs to primarily install pkgs files onto os x devices. i would like to have buttons or hyperlinks... (2 Replies)
Discussion started by: sheshe
2 Replies

8. Shell Programming and Scripting

Bash if run a command

I am having trouble with bash. I am trying to put a command in an if statement and then compare it to a string. This works perfectly. echo $(ipcs | grep Shared | awk '{print $2}')When I put it in an if statement I get some problems. $ if ; then echo expression evaluated... (10 Replies)
Discussion started by: cokedude
10 Replies

9. Shell Programming and Scripting

How to run several bash commands put in bash command line?

How to run several bash commands put in bash command line without needing and requiring a script file. Because I'm actually a windows guy and new here so for illustration is sort of : $ bash "echo ${PATH} & echo have a nice day!" will do output, for example:... (4 Replies)
Discussion started by: abdulbadii
4 Replies

10. UNIX for Beginners Questions & Answers

How to convert my /bin/sh script with cgi and html to run it on browser!??

Hello, I want to run this script on my CentOS 6 via browser : ________________________________________________________________________________________________ #!/bin/sh echo Username? read MY_NAME echo Provisional file name? read MY_FILE echo File NAME you want to save? read MY_FILE2... (16 Replies)
Discussion started by: juta2020
16 Replies
SVNWEB-SERVER(1p)					User Contributed Perl Documentation					 SVNWEB-SERVER(1p)

NAME
svnweb-server - simple webserver for SVN::Web SYNOPSIS
svnweb-server [--root DIR] [--port PORT] [--net-server Net::Server] DESCRIPTION
svnweb-server is a webserver that runs SVN::Web. It's an easy way to use SVN::Web without having to set up Apache (or any other web server). The tradeoff is that the server is very simple. But for light use then it may be perfectly acceptable. OPTIONS
--root DIR The directory in which you ran "svnweb-install". Optional, defaults to ".". --port PORT The port the server should listen on. Options, defaults to 8080. --net-server Net::Server The Net::Server subclass to use to create the server. A single, non-forking server is created by default. Other types of server can be created by giving the correct Net::Server subclass. For example, to use a server that forks to handle each request, use "--net-server Net::Server::Fork". SEE ALSO
SVN::Web BUGS
This is a simple server. Accordingly, a few features do not work properly at the moment. Redirects SVN::Web::Browse will redirect the client if the URL is missing a trailing "/". That redirection does not work with this server. That's not an issue for any URLs generated by SVN::Web, but may be an issue for URLs that are entered by hand. This will also affect SVN::Web::List's "redirect_to_browse_when_one_repo" option. cgi_class The "cgi_class" declaration (if any) in config.yaml is ignored. CGI is always used as the CGI class. Please report any bugs or feature requests to "bug-svn-web@rt.cpan.org", or through the web interface at http://rt.cpan.org/NoAuth/ReportBug.html?Queue=SVN-Web <http://rt.cpan.org/NoAuth/ReportBug.html?Queue=SVN-Web>. I will be notified, and then you'll automatically be notified of progress on your bug as I make changes. AUTHOR
The current maintainer is Nik Clayton, <nikc@cpan.org>. COPYRIGHT AND LICENSE
Copyright 2006-2007 Nik Clayton. All Rights Reserved. perl v5.14.2 2012-06-11 SVNWEB-SERVER(1p)
All times are GMT -4. The time now is 08:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy