10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I would like to invoke a procedure in SQL server which will return some results of a select query from UNIX script. I would like to invoke this procedure and load the data into a flat file in UNIX.
Can you please help? I am not able to find any sample programs in Internet. (1 Reply)
Discussion started by: madhu.sushmitha
1 Replies
2. Shell Programming and Scripting
Hello,
Am very new to perl , please help me here !!
I need help in reading a URL from command line using PERL:: Mechanize and needs all the contents from the URL to get into a file.
below is the script which i have written so far ,
#!/usr/bin/perl
use LWP::UserAgent;
use... (2 Replies)
Discussion started by: scott_cog
2 Replies
3. UNIX for Dummies Questions & Answers
Here is what I have so far:
find . -name "*php*" -or -name "*htm*" | xargs grep -i iframe | awk -F'"' '/<iframe*/{gsub(/.\*iframe>/,"\"");print $2}'
Here is an example content of a PHP or HTM(HTML) file:
<iframe src="http://ADDRESS_1/?click=5BBB08\" width=1 height=1... (18 Replies)
Discussion started by: striker4o
18 Replies
4. Web Development
I am trying to find a way to test some code, but I need to rewrite a specific URL only from a specific HTTP_HOST
The call goes out to
http://SUB.DOMAIN.COM/showAssignment/7bde10b45efdd7a97629ef2fe01f7303/jsmodule/Nevow.Athena
The ID in the middle is always random due to the cookie.
I... (5 Replies)
Discussion started by: EXT3FSCK
5 Replies
5. Shell Programming and Scripting
Hello All,
I have a shell script A which is in one unix box. Also i have a script B in another unix box. Now i'm struggling to find a way to invoke A shell script from B shell script. Is it possible to do this in any way..Request you anybody please help me in this point.
Thanks in advance. (6 Replies)
Discussion started by: RSC1985
6 Replies
6. Shell Programming and Scripting
Here's a shell script snippet.....
cd $ORACLE_HOME/bin
Retval=`sqlplus -s <<eof
$TPDB_USER/april@$TPD_DBCONN
whenever SQLERROR exit 2 rollback
whenever OSERROR exit 3 rollback
set serveroutput on
set pages 999
var status_desc char(200)
var status_code... (1 Reply)
Discussion started by: hidnana
1 Replies
7. UNIX for Advanced & Expert Users
Hi all,
I need to write a unix script in which need to call a url.
Then need to pass parameters to that url.
please help.
Regards,
gander_ss (1 Reply)
Discussion started by: gander_ss
1 Replies
8. UNIX for Advanced & Expert Users
HI
Can you please help me,how to post a xml file from Unix to URL.
Basically,i want to map contents of my file at an url
Regards
Pooja (1 Reply)
Discussion started by: PoojaM
1 Replies
9. UNIX for Advanced & Expert Users
Can I post a URL from the unix prompt? If so, what is the command. :) Thanks. (2 Replies)
Discussion started by: Say
2 Replies
10. Programming
How to invoke an Unix Script from C program?
(or)
How to invoke another C program from a C program?
thanks
Karthik (5 Replies)
Discussion started by: fermisoft
5 Replies
http(n) Tnm Tcl Extension http(n)
__________________________________________________________________________________________________________________________________________________
NAME
http - Send and process HTTP requests.
_________________________________________________________________
DESCRIPTION
The Hypertext Transfer Protocol (HTTP) (RFC 1945) is a client/server protocol used to retrieve documents in the World Wide Web. Documents
are addressed using Uniform Resource Locators (URL) (RFC 1738). The http command allows to implement HTTP clients and a simple HTTP server.
HTTP COMMAND
The following list of http commands is useful for HTTP clients:
http proxy [url]
The http proxy command allows to define a proxy HTTP server which will be used in subsequent client commands. Using this command
without an url argument will return the URL to the currently used proxy or an empty string. Providing a url argument sets the proxy
server. Setting the proxy to an empty string turns the proxy feature off.
http head url
The http head command retrieves the HTTP header for the document located at url. The header is returned as a list of keys and values
which can be converted into a Tcl array using the array set command.
http get url fileName
The http get command retrieves the document located at url. The body of the document is written to the file named fileName. The com-
mand returns the HTTP header as described for the http head command above.
http post url docFileName fileName
The http post command posts the document in docFileName to the location url. The body of the returned document is written to the
file named fileName. The command returns the HTTP header as described for the http head command above.
http put url docFileName
The http put command puts the document in docFileName to the location url. The command returns the HTTP header as described for the
http head command above.
http delete url
The http delete command deletes the document at the location defined by url. The command returns HTTP status information.
The following set of http commands is useful for a simple HTTP server:
http server [port]
The http server command starts a simple HTTP server listening on port port. If called without a port argument, the currently used
port number or an empty string is returned. An empty string indicates that no server is currently active.
http mime type extension
The http mime command is used to add mime type definitions to the internal table which maps file name extension to mime types. If
called without an argument, the list of all mime type mappings is returned. A new mapping is created by supplying a mime type and
the file name extension.
http bind pattern method [script]
The http bind command binds a Tcl script to the invocation of a HTTP method where the URL matches pattern. Whenever a HTTP request
of type method is received that matches the pattern, script is evaluated. The return value of the script must be a name of a file
which will be send back to the client. Errors during the evaluation of the script will result in an error response.
The following % sequences are substituted before a script bound to a URL is evaluated:
%A The network address of the client.
%P The URL path requested by the client.
%S The search path contained in the URL path.
SEE ALSO
scotty(1), Tnm(n), Tcl(n)
AUTHORS
Juergen Schoenwaelder <schoenw@cs.utwente.nl>
Tnm http(n)