I'd like to find a text match "app1.ear" and print the lines above and below until certain makers/boundaries are found <app-deployment> and </app-deployment>.
Sample search match: app1.ear
Sample Imput Text:
<app-deployment>
<target>AppCluster</target>
<module-type>ear</module-type>...
I have mounted a cd on hpux using the mount command.
The case of all file names has been converted
to lower case. The install program I am trying
to run expects mixed case file names.
How can I force the preservation of case
when I mount a cd?
Thank you,
Robert Robert G. Jordan
Unix Sys Admin...
Hi, I am writing a script
that monitors connections to webserver ports
and I need a better understanding
of the different connection states reported
in plain English.
The following are the different states I can see:
CLOSE_WAIT
ESTABLISHED
FIN_WAIT_2
LISTEN
TIME_WAIT
ESTABLISHED and LISTEN are...
I would like to save the current kernel parameters
in an ascii file to send out in an email.
I think there is way to do this
without running sam but I can't rember how.
Thanks in advance,
Robert Robert G. Jordan
Unix Sys Admin
Sleepy Hollow, Illinois U.S.A.
www.InYourMind.com
FREE Unix Scripts
I am running hp-ux 11.0
How do I see what threads are being used
by the system or an application?
Is there a way to manage or release threads
without rebooting?
Thank you,
Robert Robert G. Jordan
Unix Sys Admin
Sleepy Hollow, Illinois U.S.A.
www.InYourMind.com
FREE Unix Scripts
I am running the gui version of swinstall in hp-ux 11.11
and I would like to select the depot I want
to install from a drop down list,
but this requires the depot files to be registered.
How do I register depot files?
Can this be done from the command line?
Thank you,
Robert Robert G. Jordan...
I posted this question
in the hp-ux forum as well.
Click on the link below.
thread51-236243 Robert G. Jordan
Robert@JORDAN2000.com
www.JORDAN2000.com/scripts
Unix Sys Admin
Chicago, Illinois U.S.A.
[lightsaber]
Trying to compile tcl 8.3.2 on hp-ux 11.0
and running into errors.
I am a novice at compling applications.
Robert
root @ wwhq726a [/home/downloads/expect/tcl8.3.2/unix]
# ./configure
loading cache ./config.cache
checking for ranlib... (cached) ranlib
checking how to run the C preprocessor...
I am familiar with a standard ftp login script
but I am having trouble with one that first requires a login to the firewall first.
I am not sure if I should use the quote command to do this.
I have posted the manual login below that I am trying to automate.
Thanks in advance,
Robert
# ftp...
I am familiar with a standard ftp login script
but I am having trouble with one that first requires a login to the firewall first.
I am not sure if I should use the quote command to do this.
I have posted the manual login below that I am trying to automate.
Thanks in advance,
Robert
# ftp...
I am trying to use this in a script
to analyze what commands another script is using.
Here's a sample script file.
I am trying to write a grep,egrep sed or awk
command that will figure out which of
the lines below is actually a command
#!/usr/bin/ksh
echo "Running wc command"
echo...
Is there a way to make grep match the
absence of a leading character?
Here's an examle.
Say I want to find the string "bcd",
but I don't want to match zbcd, abcd
or any other leading character in front of bcd
except for a blank character or when bcd
starts at the beginning of a row...
I would like to create an html document
that calls a shell script and lists
the standard output in the browser window.
I am not sure of the syntax and/or file naming
standards to do this task.
sample shell script:
#!/usr/bin/ksh
ls -l #list directory contents
Thank you,
Robert
Robert G...
faq80-1606
Create shell menus in minutes or seconds...
note: text below may not align correctly
as it will on a terminal or telnet session.
This sample menu was created with two commands using the
Create_Menu function
ls >> $TMP_LIST.menu
Create_Menu $TMP_LIST.menu "" "Main...
What is the maximum size for single file in unix,
assuming there is unlimited disk space?
Thank you,
Robert Robert G. Jordan
Robert@JORDAN2000.com
www.JORDAN2000.com
Unix Sys Admin
Chicago, Illinois U.S.A.
[lightsaber]
This is from a k shell script.
echo " $LINE\c"|awk '{printf("%-20s",$0)}' # print menu item
As you can see, in the second line of code,
I am trying to make the statement dynamic
by replacing the hard coded 20 with a shell variable.
echo "...
This is from a k shell script.
echo " $LINE\c"|awk '{printf("%-20s",$0)}' # print menu item
As you can see, in the second line of code,
I am trying to make the statement dynamic
by replacing the hard coded 20 with a shell variable.
echo "...
I am looking for the easiest and most generic way
to determine:
System model/class
Number of cpu's
Clock speed of cpu's (ie 550 MHz)
Total Physical Memory (not virtual)
Number of Drives/Drive Size
Thanks in advance,
Robert Robert G. Jordan
Robert@JORDAN2000.com
www.JORDAN2000.com
Unix Sys...
I am trying to AVOID doing a cat of the file
and counting the line numbers until
I find the number I want.
Is there a way to directly print
the line number I want to from a file?
Thanks in advance,
Robert Robert G. Jordan
Robert@JORDAN2000.com
www.JORDAN2000.com
Unix Sys Admin
This site uses cookies to help personalise content, tailor your experience and to keep you logged in if you register.
By continuing to use this site, you are consenting to our use of cookies.