Sponsored Content
Top Forums Shell Programming and Scripting How to input a number in a web page and pass to a script? Post 302454566 by BobTheBulldog on Sunday 19th of September 2010 12:04:08 AM
Old 09-19-2010
I am just trying to get the webpage to call the script or pass the variable to the script and execute it just from inputting a number and clicking a button in the webpage.

Yes I am sure about the security aspect of this

Also I made a script right on the router called cpe.sh with one line:

echo "19">/proc/net/dbrctl/maxcpe

just to test it and then I ran it right on the router and it wrote 19 into the maxcpe just fine. The only problem I guess is how to properly read the input from a user and then have it passed to the script and executed properly like the above script but put the users input in place of the 19. Any suggestions?
 

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

How to direct a script to a new web page after a script got completed?

Hi , I have a cgi code with shell script on it.I am submitting a form in the first.cgi.These values are posted to second.cgi.Second.cgi do some process with these values. After that i want to direct my page from second.cgi to first.cgi. What is the command i can use from cgi(shell) script? ... (2 Replies)
Discussion started by: rajbal
2 Replies

3. 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

4. Shell Programming and Scripting

Perl script to copy contents of a web page

Hi All, Sorry to ask this question and i am not sure whether it is possible. please reply to my question. Thanks in advance. I need a perl script ( or any linux compatible scripts ) to copy the graphical contents of the webpage to a word pad. Say for example, i have a documentation site... (10 Replies)
Discussion started by: anand.linux1984
10 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. HP-UX

Help running a unix script from a web page

First, let me state that I am completely out of my realm with this. I have a server running HPUX. I'm not even sure if this can be considered a UNIX question and for that let me apologize in advance. I need to create a web page where a client can input 2 variables (i.e. date and phone number).... (0 Replies)
Discussion started by: grinds
0 Replies

7. Shell Programming and Scripting

script for adding page number before page breaks

Hi, If there is an expert that can help: I have many txt files that are produced from pdftotext that include page breaks the page breaks seem to be unix style hex 0C. I want to add page numbers before each page break as in : Page XXXX Regards antman (9 Replies)
Discussion started by: antman
9 Replies

8. Shell Programming and Scripting

Random web page download wget script

Hi, I've been attempting to create a script that downloads web pages at random intervals to mimic typical user usage. However I'm struggling to link $url to the URL list and thus wget complains of a missing URL. Any ideas? Thanks #!/bin/sh #URL List url1="http://www.bbc.co.uk"... (14 Replies)
Discussion started by: shadyuk
14 Replies

9. Shell Programming and Scripting

Refresh web page in bash script

hello, I am trying to refresh my web page which is created in bash script. I have a HTML page which when press a button calls a bash script. this bash script created the same page with dynamic data. When pressing the button I am calling to a function that set time out of 7 seconds and and after... (1 Reply)
Discussion started by: SH78
1 Replies

10. Shell Programming and Scripting

Awk: Page number with total number of pages, EG Page 1 of 5

So I've worked how to add page numbers based on regex. It's using the footer text. How do we get the total amount added so we have page number with the total number of pages? Desired output: Page No:1 of 5 Thanks in advance. (15 Replies)
Discussion started by: tugar
15 Replies
RRENUMD(8)						    BSD System Manager's Manual 						RRENUMD(8)

NAME
rrenumd -- router renumbering daemon SYNOPSIS
rrenumd [-df] [-c conf_file | -s] DESCRIPTION
The rrenumd utility transmits router renumbering request packets, to renumber the routers in the site network. On KAME-based systems, router renumbering requests are received and processed by rtadvd(8). For other systems, refer to relevant documents. The program will daemonize itself on invocation. It reads configuration information from standard input if -s is specified, or from conf_file if -c conf_file is specified. The contents of configuration information are described in rrenumd.conf(5). After successful configuration, rrenumd sends router renumbering messages periodically to configured destinations. Messages contain prefixes configured to be renumbered. -d Debug mode. -f Foreground mode. Do not become daemon. -s Script mode. Configuration information is obtained from standard input. -c conf_file Specify a configuration file where configuration information is kept. EXIT STATUS
The program exits with 0 on success, and non-zero on failures. SEE ALSO
rrenumd.conf(5), rtadvd(8) STANDARDS
Matt Crawford, Router Renumbering for IPv6, RFC, 2894, August 2000. HISTORY
The rrenumd utility first appeared in KAME IPv6 protocol stack kit. BSD
September 7, 1998 BSD
All times are GMT -4. The time now is 10:35 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy