Hello I'm writing a web server in python(obelisk-http.sourceforge.net)
and I'm having a greeat problem with POST method it like that
When someone make a POST request to the server it must open the executable(perl/python/.exe/elf) and send to the STANDART in (stdin) the request and get the response.
when i send the request to stdin of any binarie(.exe or elf) works
but when i try to use a script it don't read the stdin I'm using a code like that
Hi
The following is my program to test popen()
routine. The purpose is to print some contents
of the corrent directory.
But in fact, the output is only one character
'a', which I believe is the first char of the file
"a.out".
So, can anybody tell me what is wrong about
this program?... (2 Replies)
hai friends
I have written a tcp chat server in c.. I have designed a cgi program in c to control it... When i try to start the server from the cgi program, it is not starting. Why is that ? I have even tried giving the root ownership for all the programs.. Still its not.
I have used the... (1 Reply)
Hi there,
I'm facing a problem running the tar command with the popen function.
FILE* fp = popen("tar czf - textfile","r")
// output
this program should give the output to the stdout. I don't know if it is possible and which function like fprint() etc. should I use.
I suppose that I... (4 Replies)
hi,
how to work with a background process without a controlling terminal to make use of popen or system call ?
when ever i use popen or system function call in foreground process, there is no problem with respect to that .. but when the same program is run as a background process without a... (7 Replies)
Hi All,
I have to upgrade python installed on my Redhat enterprise Linux 4. I downloaded the latest python package from python website but not able to install the new package as the make command itself goes on running for more than a day. Can some help me regarding this. Is ther any method to... (2 Replies)
Hi!
I'm trying to write a c program. The child process must transmit to the parent a file name and the parent must count the lines from the file and return te result to the child. Here is what i've done. It doesn't stop running, I guess. I'm sorry if it's an ugly code, i'm new at this stuff,... (2 Replies)
Hello all,
I am reading a huge zip file in POPEN process and then writting that to a normal file which of 2GB. Now the process is failing when I looked for the cause someother process comming in after I read my file and it is deleting the zip. But in theory the popen command should read the... (5 Replies)
Hello everyone ,
I need your help to end my python code.
I've this code in python :
from ipywidgets import interact, Dropdown
from ipywidgets import *
from ipywidgets.embed import embed_minimal_html
import pandas as pd
import os
import sys
#################### Dropdown servers... (1 Reply)
Discussion started by: Tim2424
1 Replies
LEARN ABOUT DEBIAN
xpaset
xpaset(1) SAORD Documentation xpaset(1)NAME
xpaset - send data to one or more XPA servers
SYNOPSIS
<data> | xpaset [-h] [-i nsinet] [-m method] [-n] [-p] [-s] [-t sval,lval] [-u users] [-v] <template|host:port> [paramlist]
OPTIONS -h print help message
-i access XPA point on different machine (override XPA_NSINET)
-m override XPA_METHOD environment variable
-n don't wait for the status message after server completes
-p don't read (or send) buf data from stdin
-s enter server mode
-t [s,l] set short and long timeouts (override XPA_[SHORT,LONG]_TIMEOUT)
-u [users] XPA points can be from specified users (override XPA_NSUSERS)
-v verify message to stdout
--version display version and exit
DESCRIPTION
Data read from stdin will be sent to access points matching the template or host:port. A set of qualifying parameters can be appended.
Normally, xpaset reads data input from stdin until EOF and sends those data to the XPA target, along with parameters entered on the command
line. For example to send a FITS file to the ds9 image display:
cat foo.fits | xpaset ds9 fits
Sometimes, however, it is desirable to send only parameters to an XPA access point, without sending data. For such cases, use the -p
switch to indicate that there is no data being send to stdin. For example, to change the colormap used by the ds9 image display program,
use:
csh> xpaset -p ds9 cmap Heat
Of course, this also can be accomplished by sending EOF to stdin in any of the usual ways:
csh> echo "" | xpaset ds9 cmap Heat
csh> xpaget ds9 cmap Heat < /dev/null
csh> xpaset ds9 cmap Heat
^D # Ctl-D signals EOF
The -s switch puts xpaset into server mode, in which commands and data can be sent to access points without having to run xpaset multiple
times. (Its not clear if this buys you much!) The syntax for sending commands in server mode is:
csh> xpaset -s
xpaset ds9 colormap I8
^D
xpaset ds9 regions
circle 200 300 40
circle 300 400 50
^D
etc.
After the required "xpaset" command is specified, optional ASCII data can be appended (as in the region example). A single data/command
set is delimited by ^D. Note that typing ^D when a command is expected terminates the program.
NB: server mode only works from the terminal and only ASCII data can be sent in this way.
Examples -
csh> xpaset ds9 file < foo.fits
csh> echo "stop" | xpaset myhost:12345
SEE ALSO
See xpa(7) for a list of XPA help pages
version 2.1.14 June 7, 2012 xpaset(1)