12-10-2012
OK, I see the script is ksh / bash syntax, I had looked at the shebang, which calls /bin/sh
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
When running top, I notice a bit more I/O wait time than usual. Is there a tool or piece of software out there that can me help evaluate the performance of these operations on my machine? Thanks! (5 Replies)
Discussion started by: unavb
5 Replies
2. Shell Programming and Scripting
Hello, I have been trying to figure out why the wait isnt waiting for the sleep process to complete till now and have found out that since sleep runs as different process and not a child process the wait isnt waiting.
script:
cat test|while read i
do
echo $i
sleep 30 &
done
wait
ps... (4 Replies)
Discussion started by: wannalearn
4 Replies
3. Shell Programming and Scripting
I have tracefile of three nodes (0 , 1 and 2 ) as follows:
+ 0.02 0 1 tcp 40 ------- 1 0.0 2.0 0 0
- 0.02 0 1 tcp 40 ------- 1 0.0 2.0 0 0
+ 0.02 2 1 tcp 40 ------- 2 2.1 0.1 0 1
- 0.02 2 1 tcp 40 ------- 2 2.1 0.1 0 1
r 0.025032 0 1 tcp 40 ------- 1 0.0 2.0 0 0
+ 0.025032 1 2 tcp 40 -------... (11 Replies)
Discussion started by: ASAADAOUI
11 Replies
4. Shell Programming and Scripting
Hi,
Here is my code as below:
test.ksh:
=======
#!/bin/ksh
option="${1}"
while
do
case $1 in
-f) FILE="${2}"
echo "File name is $FILE"
;;
-d) DIR="${2}"
echo "Dir name is $DIR"
;;
-*)
echo "`basename ${0}`:usage: | " (5 Replies)
Discussion started by: zaq1xsw2
5 Replies
5. Shell Programming and Scripting
I am getting the following error when I am running a script in ksh when trying to execute an if statement comparing two numerical values
tstmb.sh: 1.5321e+08: 0403-057 Syntax error
Below is my code snippet.
#!/bin/ksh
set -x
TODAY=$(date +%y%m%d)
for file in $(ls -rt *.log | tail... (11 Replies)
Discussion started by: kiran1112
11 Replies
6. Shell Programming and Scripting
The code at the bottom is a simplified example of what we have.
If I use the following:
&& echo "echo failed"
$? returns 1
When I use
if ; then echo "echo failed" ; fi
$? returns 0
Does anyone know what's wrong with this?
Using AIX 6.1 and KSH
for NUM in 1 2 3
do
... (5 Replies)
Discussion started by: jfxdavies
5 Replies
7. Shell Programming and Scripting
I'm looking for some help in figuring why my little bit of code will not process any entries other then the first one in my list.
while read line ;do
hostname=${line//\"}
a=`ssh user@$hostname uptime;echo $?`
if ];then
dt=`date`
touch... (6 Replies)
Discussion started by: whegra
6 Replies
8. Shell Programming and Scripting
I have the following code in bash, however "set red frmt" is not displayed.
echo "iarg_rd = $iarg_rd"
iarg_rd="2"
if ; then
echo "Hello World"
fi
if ; then
frmt="${gap}${!frmt_titl_yl}"
elif ; then
frmt="${gap}${!frmt_titl_bk}"
elif ; then
echo... (2 Replies)
Discussion started by: kristinu
2 Replies
9. Shell Programming and Scripting
Hi All,
I have the requirement that ,i have to write a shell script that job has to wait for a 7 touch files created by another application for 4 hours, if i get all 7 touch files ,i have to send a mail that i jobs are completed, if if it is waiting for more than 4 hours i have to send a mail... (2 Replies)
Discussion started by: Pradeep Shetty
2 Replies
10. Windows & DOS: Issues & Discussions
Hi,
I have run into a problem to which i can't seem to find any solution, posting here is my last resort.
Problem:
I am using plink to access my router and run a few configuration commands. When in enter configurations mode, instead of sending next command plink keeps on waiting for manual... (7 Replies)
Discussion started by: zaainabbas
7 Replies
LEARN ABOUT HPUX
vpardump
vpardump(1M) vpardump(1M)
NAME
vpardump - manage monitor dump files
SYNOPSIS
[vparmon[dumpfile]]
DESCRIPTION
The command is used to create (on PA-RISC systems only) and analyze a virtual partition monitor dump file. vparmon is the image of the
virtual partition monitor and dumpfile is the crash dump file corresponding to that image. is normally run from the rc script to analyze a
crash dump during HP-UX boot. If no options are specified, checks if the dumpfile has been cleared. If not, it analyzes dumpfile and
prints information about the crash to standard out. Then marks the dumpfile as clear. If dumpfile is not specified, the string is
appended to vparmon as in If vparmon is not specified, it defaults to
The dumpfile must exist prior to a vpar monitor crash. On PA-RISC systems, the and options create the dumpfile on PA-RISC. If is used, a
dumpfile is created that is large enough to contain the monitor image. If additional structures are required, such as I/O Page Directo-
ries, the option is used to reserve space for a full monitor crash dump. On Itanium(R)-based systems, the monitor dumpfile is created in
the EFI partition of the monitor's boot disk as needed. It is not necessary to pre-allocate a dump file in A monitor dump typically
requires less than 75 megabytes of free space in the EFI partition. In order to ensure that a complete crash dump can be saved, this much
free space must be maintained in the EFI partition.
Options
recognizes the following command-line options:
Analyze the
dumpfile. This option can be used to force an analysis even if dumpfile has been cleared.
Mark dumpfile as clear. No analysis is performed.
Analyze
dumpfile even if the versions do not match.
Initialize
dumpfile for a full dump. Supported only on PA-RISC systems.
Initialize
dumpfile for a normal dump. Supported only on PA-RISC systems.
Do not analyze the
dumpfile.
Enable verbose output.
The and options are allowed on Itanium-based systems for compatibility. No action is taken for the and options.
Operands
recognizes the following command-line operands:
vparmon The name of the image of the virtual partition monitor. If vparmon is not specified, it defaults to
dumpfile The name of the crash dump file corresponding to the image of the virtual partion monitor. If dumpfile is not specified,
the string is appended to vparmon as in
Security Restrictions
This command is restricted to processes owned by superuser or with the privilege. See privileges(5) for more information about privileged
access on systems that support fine-grained privileges.
RETURN VALUE
returns the following values:
Analyzed
dumpfile successfully.
Created a new
dumpfile.
A dumpfile does not exist.
The dumpfile is cleared, no action taken.
Error attempting to create a
dumpfile.
Error analyzing the
dumpfile.
Command syntax error.
EXAMPLES
Analyze the default dumpfile and create it if it does not exist:
Suppress the analysis of the default dumpfile, and reserve space for a full dump:
AUTHOR
was developed by the Hewlett-Packard Company.
SEE ALSO
vparextract(1M), privileges(5).
vpardump(1M)