Search Results

Search: Posts Made By: cesarNZ
893
Posted By cesarNZ
getting requestName from xml outout in log file
hi all,
i was wondering if there is an easy and smart way of greping for requestname (in bold below) from xml output from application log file on a solaris 10 system.

The requestName is the...
20,651
Posted By cesarNZ
iterating over results from sqlplus
hi all,
i am writing a ksh script, i am logging into an oracle db via sqlplus and running a select statement but i dont know how i can store the results from the sql so i can iterate over it and...
13,282
Posted By cesarNZ
check if file is readable by others
hi all,
in ksh script how do i detect if a file is readable by others ??

thanks.
4
2,932
Posted By cesarNZ
eval
hi all,
Am trying to add some code to a ksh script and i dont understand how an eval function is used :



_var=$1
_conceal=$2

eval _val=\$${_var}



can someone shed some...
1,877
Posted By cesarNZ
substitute variable for values in perl
hi all,
how do i assign values passed in from command line to and sql statement in perl ?? e.g

i want to assign :name1 and :Name2 to be whatever is passed into the perl script command line
...
1,861
Posted By cesarNZ
identifying duplicate entries
hi all,
have got a large log file and was wondering if there is a easy way on solaris box to grep out duplicate entries based on email address ??

sample log file :

...
3,236
Posted By cesarNZ
OS : SunOS serverName 5.10 Generic_141414-07...
OS : SunOS serverName 5.10 Generic_141414-07 sun4v sparc SUNW,SPARC-Enterprise-T5120

command in the shell to restart server : asadmin start-domain [serverName]
this is a sun one application...
3,236
Posted By cesarNZ
thanks for the reply. Unfortunately i dont have...
thanks for the reply. Unfortunately i dont have expect on the server i need to run my script from.

ta.
3,236
Posted By cesarNZ
thanks for the reply. i am writing a script which...
thanks for the reply. i am writing a script which restarts an app server. when i issue the restart command in this script, it prompts me for username and password.

i know the username and...
3,236
Posted By cesarNZ
Sending values to command prompt
hi all,
in a ksh script, how do i send username and password to the command prompt ??

also is it possible to substitute the password as **** so people running the script cant see the actual...
4,494
Posted By cesarNZ
sending email from a ksh script
hi all,
i have a ksh script which is meant to send an email with an attachment. i use the following command to send email


/usr/bin/uuencode $logFn $logFn | /usr/bin/mail -s "restoration...
7,988
Posted By cesarNZ
ksh - moving cursor position
hi all,
am trying to modify a ksh script to group server names together depending on the cluster they sit in. currently the script does a

find . -name '*.pid'

to find all running...
4,144
Posted By cesarNZ
unique storage structure in ksh
hi all,
is there a storage structure in ksh which only allows unique values i.e overwrites duplicates values ??

am using an array to hold server names from a 'find' command but some of the...
3,245
Posted By cesarNZ
prstat output
hi all,
have a ksh script where i am doing a prstat -m -u osuser 1 1 >> $FILE_NAME but for some reason it only writes 15 lines wheres when i run the same command manually from command prompt it...
2,205
Posted By cesarNZ
Vcx icx scl
hi all,
in ksh script, how do i get the values of VCX, ICX, SCL (all output of prstat -m command) ??

if i do a prstat -m -p <pid> i cant get the prstat process to stop.


ta.
2,397
Posted By cesarNZ
i get a value of '1274496' from the ps -o rss -p...
i get a value of '1274496' from the ps -o rss -p <pid> command and when i add 512 to this and divide by 1024 it comes to '1245.125'

is there a function in ksh to round this up so the value...
2,397
Posted By cesarNZ
calculating in MB
hi all,
have got a ksh script which tries to monitor memory usage of app servers. i do a ps -0 rss -p <PID> to get the memory size in KB but when i divide by 1024 to convert to MB i dont...
Forum: Solaris 09-10-2009
1
6,012
Posted By cesarNZ
prstat
hi all,
was trying to figure out how busy my app was by looking at the performance of the app server. did a 'prstat -s rss' command to find the app servers using most memory.
Found a...
2
12,771
Posted By cesarNZ
ah this command is much better.thanks a million :)
ah this command is much better.thanks a million :)
2
12,771
Posted By cesarNZ
prstat
hi all,
am writing a ksh script on solaris 9 to get the number of threads taken by a process. am using the prstat -p command to do this.

output i get is :

...
8,359
Posted By cesarNZ
but the command works i.e it successfully sends...
but the command works i.e it successfully sends the email out. i dont know how to supress the below message after the email command is issued.

"uuencode: ISO8859-1 to 646 conversion: Invalid...
8,359
Posted By cesarNZ
uuencode error
hi all,
i get the following error when i try and email a file as an attachment on a solaris box. the command is


/usr/bin/uuencode $fileName $fileName | /usr/bin/mailx -s "file" $emailTo

...
3,104
Posted By cesarNZ
format of output is weird
hi all,
have a ksh script which connects to a database and runs a sql and dumps it to a '.csv' file. The problem is the result is in multiple rows with long spaces in between when it should be...
22,251
Posted By cesarNZ
ok got it working, my problem was i didnt have...
ok got it working, my problem was i didnt have 'EOF' at the end !!!
22,251
Posted By cesarNZ
ok have changed the script to : $SQLPLUS...
ok have changed the script to :


$SQLPLUS -s $1/$2@$3 >$gr 2>&1
spool out.sql
select * from dual;
quit



and i get this error now "spool: not found". Do i need to declare some oracle...
Showing results 1 to 25 of 80

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