Search Results

Search: Posts Made By: usfrog
Forum: HP-UX 04-04-2007
40,785
Posted By usfrog
Thank you blowtorch, that's exactly what I was...
Thank you blowtorch, that's exactly what I was looking for.
Forum: HP-UX 04-03-2007
40,785
Posted By usfrog
Thank you, yes it worked; I ended up with the...
Thank you, yes it worked; I ended up with the following syntax:

/usr/ucb/ps -ex -awww

Thanks a lot vgersh99! :)
Forum: HP-UX 04-03-2007
40,785
Posted By usfrog
Thanks for the quick reply. Didn't work on this...
Thanks for the quick reply. Didn't work on this system:

$ uname -a
SunOS zcsapp01 5.10 Generic_118822-25 sun4v sparc SUNW,Sun-Fire-T200
$ ps -awww
ps: illegal option -- w
ps: illegal option --...
Forum: HP-UX 04-03-2007
40,785
Posted By usfrog
Extended process list on Solaris?
Seems that the forum server got extremely slow and my post came through twice. Removing duplicate.
Forum: HP-UX 04-03-2007
40,785
Posted By usfrog
Extended process list on Solaris?
Thanks a lot for the replies. Glad to see such old threads still alive!

Now I try to code some other process monitoring this time on Sun Solaris! :D

And this "ps -efx" syntax sure doesn't...
Forum: Solaris 03-07-2007
16,065
Posted By usfrog
extended process list on Solaris?
Hello All,

I am quite new to Solaris.

Can someone tell me what's the equivalent of HP-UX ps -efx on Solaris? It basically displays the whole command, instead of te first 80 characters of the...
Forum: HP-UX 04-04-2003
40,785
Posted By usfrog
Good to know - thanks!
Good to know - thanks!
Forum: HP-UX 03-31-2003
40,785
Posted By usfrog
Nope - on HP-UX "x" is an illegal option :( ...
Nope - on HP-UX "x" is an illegal option :( Thank you for your post.....
Forum: HP-UX 03-31-2003
40,785
Posted By usfrog
get whole command arguments in ps -ef?
Hello All,

I want to build some monitoring of processes in HP-UX 11.x.

Is there any way to get the whole set of commands and arguments instead of the first 60 characters? I read that there's a...
8,018
Posted By usfrog
If the list is that huge you might need to go...
If the list is that huge you might need to go through a text file, as an input. Won't speed up the execution, though.

I can't think about something other than what Perperado already suggested:
...
8,018
Posted By usfrog
My 2 cents here: I notice that the logical...
My 2 cents here: I notice that the logical condition "a not equal dhgsf or a not equal hdhdhss or a not equal zxhcgvxhsg (etc)" is ALWAYS TRUE :-)

You probably meant -a (and) instead of -o (or) ...
4,493
Posted By usfrog
You can try something very simple, like: ...
You can try something very simple, like:

again=1
while [ $again -eq 1 ]
do
echo "1 - Option A"
echo "2 - Option B"
echo "3 - Option C"
echo "Enter your...
2,308
Posted By usfrog
echo "Hello - enter your string: \c" read...
echo "Hello - enter your string: \c"
read string
echo "Entered: $string"
27,183
Posted By usfrog
Oops you are right: when sourcing my script, the...
Oops you are right: when sourcing my script, the os sees only -ksh as $0 during execution, w/o any $1 etc.... :(
2,975
Posted By usfrog
sort will do (look at the man page for more...
sort will do (look at the man page for more options):

cat myFile | sort -u > myFileNoDup # create 2nd file
mv myFileNoDup myFile # replace first file
1,699
Posted By usfrog
You can call functions, with or without...
You can call functions, with or without arguments, like in (ksh syntax):

#!/usr/bin/ksh
myFunction() {
p=$1
banner $p
}
echo before
myFunction "Hi"
myFunction "there!"
echo after
18,784
Posted By usfrog
Usually when I need to convert a string into a...
Usually when I need to convert a string into a numeric value for arithmetic reasons, I do the following:

(( myNum=$myNum+0 ))

Hope it helps.
27,183
Posted By usfrog
The following works fine for me on hp/ux - ksh: ...
The following works fine for me on hp/ux - ksh:


if [[ $0 != "/"* ]]; then
myPath=`pwd`
else
myPath=`dirname $0`
fi
echo $myPath


Maybe I missed something ;)
2,763
Posted By usfrog
If this doesn't work, try: find / -name...
If this doesn't work, try:

find / -name tppfis59r_[0-9][0-9][0-9]_job
3,050
Posted By usfrog
I personaly like sed and its placeholders -...
I personaly like sed and its placeholders - although it's an external program :)

Would look like:

#!/usr/bin/ksh
x="asdfghbqwerty"
y=`echo $x| sed "s/\(......\)\(.\)\(.*\)/\2/"`
echo $y
5,075
Posted By usfrog
You can also indicate the spaces by escape...
You can also indicate the spaces by escape characters, like in:

grep This\ is\ my\ sentence *
17,293
Posted By usfrog
I'm afraid you might have to build such array...
I'm afraid you might have to build such array through logic, at least in Korn Shell (ksh).

As you mentionned, here's what's truly available:

# Arrays : one dimensional arrays of integers or...
4,263
Posted By usfrog
Only problem with the grep -c, it'll count the...
Only problem with the grep -c, it'll count the number of lines (not occurences), so if you have a html file with more than one href per line (very probable) you won't get your number right :(

If a...
5,313
Posted By usfrog
For an exhaustive answer I'd suggest that you...
For an exhaustive answer I'd suggest that you give a look at crontab documentation by typing: man crontab

Typically:
crontab -e edits cron jobs on that host and for that user
crontab -l lists...
8,594
Posted By usfrog
Hi Jacob, Try something like: ...
Hi Jacob,

Try something like:

numberOfProcesses=`ps -ef|grep myProcessName|grep -v grep|wc -l`
if [ $numberOfProcesses = 0 ]
then
( echo "From: missingProcesses@yourHostName"
echo "To:...
Showing results 1 to 25 of 31

 
All times are GMT -4. The time now is 12:12 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy