04-03-2008
Thanks. That should work but I'll have to wait for the system guys to actually install something whether its perl net or expect and TCL. I'm not allowed to do it myself. Can anyone think of a more direct way?
Thanks for the advice
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
i need a guide how to write a script which i can do a http request. Let say the request look like below;
http://www.test.com?txid=1&type=service&server=linux
I have a list of "txid" (in *.txt) and need to run all "txid" acordingly. So that mean, every transaction i have to refer "txid"... (7 Replies)
Discussion started by: malaysoul
7 Replies
2. Programming
I have written a c socket programe which can send the http GET request.But it dont work for HEAD reuest.can anyone help me.I am connected to internet via a proxy and the port/ip in the programe are proxies ones
--------------------------------------------------
#include <stdlib.h>
#include... (3 Replies)
Discussion started by: chamaraHe
3 Replies
3. UNIX for Dummies Questions & Answers
Hi,
Maybe it's a stupid question, anyway here goes..
I have an Apache web server on Solaris box, let's say A, with a public ip
and a web application on a Linux box, uhmmm B, on a private lan with a private ip.
I want the people from outside to connect to the app, but its inside the lan,... (4 Replies)
Discussion started by: piltrafa
4 Replies
4. UNIX for Dummies Questions & Answers
Can anybody tell about http request processing in shell script..? (3 Replies)
Discussion started by: noufal
3 Replies
5. Shell Programming and Scripting
How to hit HTTP Post Request along with sending XML data to a Remote server through command line utility like wget (or anything else). (0 Replies)
Discussion started by: sandeep reddy
0 Replies
6. UNIX for Dummies Questions & Answers
Hi all,
Im trying to make an http get request to a web service from a linux machine like below and i get ERROR 500
wget http://10.1.21.236:8585/pns.asmx/Sen...&msgBody=werty
25018
$ --19:06:32-- http://10.1.21.236:8585/pns.asmx/Sen...erName=serverA
Connecting to 10.1.21.236:8585...... (1 Reply)
Discussion started by: elthox
1 Replies
7. UNIX for Advanced & Expert Users
Hi,
I am using curl to hit a url using http in solaris 10 using commandline, I want to transfer an attachment(using multipart curl -F) also as a part of the request. If anyone has used kindly help me with the syntax. I am using below command:
Code:
/usr/local/bin/curl -v... (1 Reply)
Discussion started by: manishmaha
1 Replies
8. Programming
Hello
I am trying to communicate with a server that is ready to accept HTTP GET requests and send back data per the request. However, I have very little experience in socket programming and I don't really know how to debug this. Googling on the web hasn't yielded much, except people saying I... (2 Replies)
Discussion started by: flagman5
2 Replies
9. Shell Programming and Scripting
I am running a website but I still have problems with the "service temporarily unavailable error". I want to make a simple check if the website is up and running. Does anybody has an idea how to do it? (the site is password protected, so you have to add a user and pwd before logging in).
... (2 Replies)
Discussion started by: jurgen
2 Replies
10. Homework & Coursework Questions
First month learning about the Linux terminal and it has been a challenge yet fun so far. We're learning by using a gameshell. I'm trying to display a certain line ( only allowed 1 command ) from a file only using the head or tail. I'm pretty about this answer:
head -23 history.txt | tail -1... (1 Reply)
Discussion started by: forzatekk
1 Replies
LEARN ABOUT REDHAT
madvise
MADVISE(2) Linux Programmer's Manual MADVISE(2)
NAME
madvise - give advice about use of memory
SYNOPSIS
#include <sys/mman.h>
int madvise(void *start, size_t length, int advice);
DESCRIPTION
The madvise system call advises the kernel about how to handle paging input/output in the address range beginning at address start and with
size length bytes. It allows an application to tell the kernel how it expects to use some mapped or shared memory areas, so that the kernel
can choose appropriate read-ahead and caching techniques. This call does not influence the semantics of the application (except in the
case of MADV_DONTNEED), but may influence its performance. The kernel is free to ignore the advice.
The advice is indicated in the advice parameter which can be
MADV_NORMAL
No special treatment. This is the default.
MADV_RANDOM
Expect page references in random order. (Hence, read ahead may be less useful than normally.)
MADV_SEQUENTIAL
Expect page references in sequential order. (Hence, pages in the given range can be aggressively read ahead, and may be freed soon
after they are accessed.)
MADV_WILLNEED
Expect access in the near future. (Hence, it might be a good idea to read some pages ahead.)
MADV_DONTNEED
Do not expect access in the near future. (For the time being, the application is finished with the given range, so the kernel can
free resources associated with it.) Subsequent accesses of pages in this range will succeed, but will result either in re-loading
of the memory contents from the underlying mapped file (see mmap) or zero-fill-on-demand pages for mappings without an underlying
file.
RETURN VALUE
On success madvise returns zero. On error, it returns -1 and errno is set appropiately.
ERRORS
EINVAL the value len is negative, start is not page-aligned, advice is not a valid value, or the application is attempting to release
locked or shared pages (with MADV_DONTNEED).
ENOMEM addresses in the specified range are not currently mapped, or are outside the address space of the process.
ENOMEM (for MADV_WILLNEED) Not enough memory - paging in failed.
EIO (for MADV_WILLNEED) Paging in this area would exceed the process's maximum resident set size.
EBADF the map exists, but the area maps something that isn't a file.
EAGAIN a kernel resource was temporarily unavailable.
LINUX NOTES
The current Linux implementation (2.4.0) views this system call more as a command than as advice and hence may return an error when it can-
not do what it usually would do in response to this advice. (See the ERRORS description above.) This is nonstandard behaviour.
The Linux implementation requires that the address start be page-aligned, and allows length to be zero. If there are some parts of the
specified address range that are not mapped, the Linux version of madvise ignores them and applies the call to the rest (but returns ENOMEM
from the system call, as it should).
HISTORY
The madvise function first appeared in 4.4BSD.
CONFORMING TO
POSIX.1b (POSIX.4). POSIX 1003.1-2001 describes posix_madvise with constants POSIX_MADV_NORMAL, etc., with a behaviour close to that
described here. There is a similar posix_fadvise for file access.
SEE ALSO
getrlimit(2), mmap(2), mincore(2), mprotect(2), msync(2), munmap(2)
Linux 2.4.5 2001-06-10 MADVISE(2)