Search Results

Search: Posts Made By: progkcp
Forum: Programming 02-12-2015
3,783
Posted By progkcp
Thank you, that was a great answer. I'm...
Thank you, that was a great answer.

I'm trying to get the truncated maximum single value from the above query.

I"m trying to find this:BOB_DATA_2010 7
I tried using order by and...
Forum: Programming 02-04-2015
3,783
Posted By progkcp
Sql ORA-00937: not a single-group group function
I'm trying to return only one row with the highest value for PCT_MAX_USED. Any suggestions?

When I add this code, I get the ORA-00937 error.
trunc(max(decode( kbytes_max, 0, 0,...
8,643
Posted By progkcp
Someone kindly gave me the solution to this. ...
Someone kindly gave me the solution to this.

Thank you.

#!/usr/bin/expect -f
spawn ./emocmrsp
expect {
"Email address/User Name:"
{
send "\n"
exp_continue
}
"Do you wish to...
8,643
Posted By progkcp
As suggested, I've enlisted the help of Expect. ...
As suggested, I've enlisted the help of Expect.

The Expect program works for the first input (Line Feed) but I"m still getting a problem with the second input.


First Input:

Email...
8,643
Posted By progkcp
Tried with a small y, but I get the same results....
Tried with a small y, but I get the same results.


./emocmrsp <<EOF
>
> y
> EOF
OCM Installation Response Generator 10.3.4.0.0 - Production
Copyright (c) 2005, 2010, Oracle and/or its...
8,643
Posted By progkcp
Same error: $ ./emocmrsp <<EOF > > Y >...
Same error:

$ ./emocmrsp <<EOF
>
> Y
> EOF
OCM Installation Response Generator 10.3.4.0.0 - Production
Copyright (c) 2005, 2010, Oracle and/or its affiliates. All rights reserved.

Provide...
8,643
Posted By progkcp
Here's the output of the script running in...
Here's the output of the script running in interactive mode. When it asks for an email address, I press enter to get past it. Then I press Y at the last line.

$ ./emocmrsp
OCM Installation...
8,643
Posted By progkcp
$ (echo ; echo Y) | ./emocmrsp $ (echo -e "\n"...
$ (echo ; echo Y) | ./emocmrsp
$ (echo -e "\n" ; echo -e "Y\n") | ./emocmrsp

Both commands returned this error:


OCM Installation Response Generator 10.3.4.0.0 - Production
Copyright (c)...
8,643
Posted By progkcp
How to pass arguments to an interactive script?
I've tried to find a solution to this, but I"m stumped.

OS - RH Linux 5.9

I have a bash script <myProgram.sh> that gets executed manually and creates a small response file. I'm trying to...
9,282
Posted By progkcp
This was perfect. The READ command was what I...
This was perfect. The READ command was what I was looking for.

Thanks again.
9,282
Posted By progkcp
TCL logging
I'm using TCL to execute a shell script.

This shell script creates output that I want to capture into a log
file.


my script looks something like this:


set f [open...
5,304
Posted By progkcp
tcl command to supply a carriage return
I have a java program that runs on a unix server that prompts the user for input and provides a default value to the user.

So it does something like this:

Enter source server name...
2,133
Posted By progkcp
This worked out very well for me. Thanks again.
This worked out very well for me. Thanks again.
2,133
Posted By progkcp
Thank you. It might take me a some time to digest...
Thank you. It might take me a some time to digest this, but I'll get back to you when I get it figured out.
2,133
Posted By progkcp
tcl problem
I'm trying to write a script that will do the following:

Open a text file for reading/writing.

Read each line.

When I find a specfic value in a line, append something to the end of that...
5,382
Posted By progkcp
I'm new to tcl, here's how I did it. set...
I'm new to tcl, here's how I did it.


set pwd [pwd]

set y [split $pwd "/"]

puts $pwd
puts "/[lindex $y 1]/[lindex $y 2]/[lindex $y 3]"
puts "/[lindex $y 1]/[lindex $y 2]"
puts "/[lindex...
15,591
Posted By progkcp
This works perfectly, thank you!
This works perfectly, thank you!
15,591
Posted By progkcp
Script to add a single line to middle of text file.
I've got a configuration file that is filled with xml text statements for example:

<...../>
<...../>
<...../>
<data id="java-options" value="-server -Djava.security.policy..../>
<...../>...
11,022
Posted By progkcp
I wanted to thank those who responded to my...
I wanted to thank those who responded to my question. I ended up using a derivation of this solution:

-------------
find . -type f |\
while read file
do
{ rm "${file}"; sed -e...
11,022
Posted By progkcp
Unix script to do a global change
I want to write a script to go into a unix directory and recursively change all the instances of a word in every file in every directory and sub directory.

Here's where I am now:

I can execute ...
Showing results 1 to 20 of 20

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