12-13-2013
If you install Apache, you can put your scripts in a cgi-bin directory. When the client accesses www.mywebsite.com/cgi-bin/myscript.sh?var1=a&var2=b&var3=cv, it will run your script with QUERY_STRING set to "var1=a&var2=b&var3=c" which you can process to get your variables out of and run your script accordingly. It is possible to have these variables fed into it via an HTTP web form which they can type into.
The output will end up in his web browser, or if you specify, as a file.
They call this process CGI, or "common gateway interface".
Last edited by Corona688; 12-13-2013 at 12:56 PM..
This User Gave Thanks to Corona688 For This Post:
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Hello,
My apologies if this sounds like a stupid question......
but is it possible to call a script that is located on a w2k machine from a csh script bing run on a unix server.
Many thanks
rkap (1 Reply)
Discussion started by: rkap
1 Replies
2. Shell Programming and Scripting
Sorry for all the threads. I am almost done. I ahve a bash script that is launching a diags program then copying the .html over my client. then it does the following line
/opt/firefox/firefox report.html
it launches it fines but the program waits for me to close the window or kill the script.... (2 Replies)
Discussion started by: deaconf19
2 Replies
3. Shell Programming and Scripting
I have my Mac OS X program executing a shell script (a script that copies files to a drive). I want to make it so that the shell script automatically kills itself if it finds that the host .app is not running OR kill itself if the drive that it is copying files to has been unmounted. Right now what... (2 Replies)
Discussion started by: pcwiz
2 Replies
4. Shell Programming and Scripting
Hi all,
I have a script that calls another program/script, xxx, to run in the background. Supposedly this program at most should finish within five (5) minutes so after five (5) minutes, I run some other steps to run the script into completion.
My problem is sometimes the program takes... (5 Replies)
Discussion started by: newbie_01
5 Replies
5. Shell Programming and Scripting
I'm a bit new to bash programming and I was assigned the job of writing a script that will check to see if a program server is running and to restart the program if it is not up. The script is supposed to check the program every hour (which I have looked up and I believe I know how to do) and send... (3 Replies)
Discussion started by: mcknz
3 Replies
6. Solaris
Hi all,
I have written the following program and run on both T5440 and T5220 on same OS version. I found that T5540 server takes more time than T5220. Please find below the details.
test1.cpp
#include <iostream>
#include <pthread.h>
using namespace std;
#define NUM_OF_THREADS 20... (17 Replies)
Discussion started by: sanjay_singh85
17 Replies
7. UNIX for Dummies Questions & Answers
I have 3 servers A, B, C and server B is having some files in /u01/soa/ directory, these files i want to copy to server C, and i want to run the script from server A.
Script(Server A) --> Files at Server B (Source server) --> Copy the files to Server C(Target Server).
We dont have RSA key... (4 Replies)
Discussion started by: kiran_j
4 Replies
8. Shell Programming and Scripting
Hi guys,
So i am in server1 and i have to login to server 2, 3,4 and run some script there(logging script) and output its result. What i am doing is running the script in server2 and outputting it to a file in server 2 and then Scp'ing the file to server1. Similarly i am doing this for other... (5 Replies)
Discussion started by: srkmish
5 Replies
9. UNIX for Beginners Questions & Answers
Hello -
I am new to unix... very new. I am running a program at the command prompt:-nohup ./ledger - comptroller_extract 05/11/2018 &
The above runs as expected.
If I put it in a sh script:- current_date=$(date+%m/%d%y)
nohup ./ledger - comptroller_extract $current_date &
This does... (4 Replies)
Discussion started by: MSpeare
4 Replies
10. Shell Programming and Scripting
I'm new to utilities like socat and netcat and I'm not clear if they will do what I need.
I have a "compileDeployStartWebServer.sh" script and a "StartBrowser.sh" script that are started by emacs/elisp at the same time in two different processes.
I'm using Cygwin bash on Windows 10.
My... (3 Replies)
Discussion started by: siegfried
3 Replies
LEARN ABOUT DEBIAN
cvsconnect
CVSCONNECT(1) CVSCONNECT(1)
NAME
cvsconnect - CVS connection minimizer
SYNOPSIS
cvsconnect cvsroot [command-to-run ...]
DESCRIPTION
CVSconnect enables you to do multiple CVS operations on single network connection. CVSconnect sets up special environment using
$CVSRSH/$CVSROOT for the command line CVS client. In the environment, the command line CVS client reuses a network connection.
CVSconnect is especially designed to use with CVSsuck. And CVSconnect (or similar) will be integrated to a future version of CVSsuck.
However, it is planned that CVSsuck directly connects to a cvs server without cvs command.
EXAMPLES
cvsconnect $HOME/.cvsroot
BUGS
o The global option -z for compression cannot be used. If you use SSH via ext method, you can use compression by SSH instead.
o CVS client must be run at a time. Running two or more clients at a same time will make a trouble. (will be fixed in future release.)
o Some static variables in a CVS server may confuse you. It's a CVS bug. Report it to CVS developer :-).
o Command line CVS client must request `Root' first. Don't mind. There is no implementation which violates this assumption, however I
know. At least, CVS-1.10 and CVS-1.11 should work.
NOTES
o When CVS command is failed, CVSconnect automatically re-run the command with reconnected connection when CVS command is failed.
Especially the failure is caused by a long running CVS-1.10 server. Since CVS-1.10 doesn't close some file descriptors, a long running
CVS server will exceed a limit of file descriptors.
o /bin/sh should be POSIX sh because this script uses ${parameter#pattern}, etc. If your /bin/sh is ancient Bourne shell, use ksh or
bash.
SEE ALSO
cvs(1), cvssuck(1).
AUTHOR
This manpage is written by Piotr Roszatycki <dexter@debian.org> for Debian distribution and can be freely redistributed.
Debian 2011-08-30 CVSCONNECT(1)