I need to test responses of a web service using WGET command, if the response is successful, how quick it is etc.
I have scirpt like this, I modified it, i try to redirect the output of time command to total.txt but i couldn't manage, i would appreciate any help to correct it.
SOAP request response is redirected to response.xml and then to total.xml, and the normal wget output appended to total.xml file.
For example:
% ls /store > list.txt
% less list.txt
% 1.txt
% 2.txt
I want to execute 'ls' in verbose and store the result in background to 'list.txt' so i dont have to execute another command just to view the contents of the 'list.txt'
% ls /store > list.txt
% 1.txt
% 2.txt
%... (2 Replies)
function GetInput
{
print -n "Input"
read input
export INPUT=$input
}
export COMMAND="GetInput"
$COMMAND
echo "$INPUT"
$COMMAND | tee -a Log.log
echo "$INPUT"
The first one without "tee" works fine. echo "$INPUT" displays the values I type in for input. The second... (5 Replies)
First, this is bash (3.2.17), on a Mac, 10.5.7.
What I'm trying to do is look at a list of users, and check to see if each exists. If they do, do some more stuff, if they don't, drop them into an error file.
So, my user list is:
foo - exists
bar - does not exist
blah - does not exist
... (2 Replies)
I am trying to grep/awk how long it takes to get a page. I am trying to use the following command.
time -p wget -q -O wget.tmp www.google.com 2>&1 | grep realThe problem is that my attempts to map stderr to stdout are being applied to wget not to time so all of the time output is displayed on... (2 Replies)
ps -e -o pcpu,pid,cmd --sort pcpu | sed '/^ 0.0 /d'|awk '{print $2}'|grep -v PID
Gives the output:
4482
4023
5912
I want to operate on each pid in the output. How to do so. (2 Replies)
hi friends,
The code:
i=1
while
do
filename=`/usr/bin/ls -l| awk '{ print $9}'`
echo $filename>>summary.csv
#Gives the name of the file stored at column 9
count=`wc -l $filename | awk '{print $1}'`
echo $count>>summary.csv
#Gives just the count of lines of file "filename"
i=`expr... (1 Reply)
I have a strange issue.
(awk '$3 == "nfs" { cnt++ }; END { print cnt }' /etc/fstab)
This is giving different count each time.
To test this, tried the one here
-bash-3.2$ awk '/nfs/{print $2}' /etc/fstab | wc -l
151
-bash-3.2$ awk '/nfs/{print $2}' /etc/fstab | wc -l
145... (6 Replies)
Hi,
I wish to check the return value for wget $url.
However, some urls are designed to take 45 minutes or more to return.
All i need to check if the URL can be reached or not using wget.
How can i get wget to return the value in a few seconds ? (8 Replies)
Discussion started by: mohtashims
8 Replies
LEARN ABOUT DEBIAN
plucker-prc-install
plucker-prc-install(1) General Commands Manual plucker-prc-install(1)NAME
plucker-prc-install - fetch and install Plucker viewer application on a Palm pilot
SYNOPSIS
plucker-prc-install [options]
DESCRIPTION
This manual page documents briefly the plucker-prc-install command. This manual page was written for the Debian distribution because this
program was created for the Debian package.
plucker-prc-install is a program that fetches and installs the Plucker viewer application.
The program uses wget to get the .tar.bz2 archive from the Web. You need to be connected to the Internet and have wget working correctly in
order to use this program. You may have to configure the environment variable http_proxy. You can take a look at the lynx command manpage
to get information about http_proxy.
The program tries to use the correct language version of the viewer according to the environment variable LANG.
The program then uses either gpilot-install-file or pilot-xfer to transfer the three .prc files to the Palm pilot.
With pilot-link 0.12.x it is mandatory to provide a port to use. plucker-prc-install first use the value of the PILOTPORT environment
variable. If PILOTPORT is not defined it uses /dev/pilot. If the file /dev/pilot does not exist it uses usb:.
OPTIONS
This program follows the usual GNU command line syntax, with long options starting with two dashes (`-'). A summary of options is included
below.
--nohires
installs the low-resolution version of the Plucker viewer. If you are using a Palm with a 160x160 screen (Palm m500-series and ear-
lier) you can save approximately 90 KB by installing the low-resolution version of the viewer. Note that the hires version will
still work on older Palms, but will just take up unnecessary space.
-h, --help
Show summary of options.
-v, --version
Show version of program.
SEE ALSO pilot-xfer(1), wget(1), gpilot-install-file(1), lynx(1).
AUTHOR
This manual page was written by Ludovic Rousseau <rousseau@debian.org>, for the Debian GNU/Linux system (but may be used by others).
August 22, 2005 plucker-prc-install(1)