Search Results

Search: Posts Made By: JamesByars
1,808
Posted By JamesByars
sorry, i was not clear. i have a properties...
sorry, i was not clear.

i have a properties file, that has some variables, and that file is sourced into another one.

the property file has been set up incorrectly.

it contains
...
1,808
Posted By JamesByars
how can i change value of incorrect env variable?
Hi,

I have

ORACLE_HOME=

This is wrong, and I want to find this in the file, and replace it with

ORACLE_HOME=/home/oracle/product/10.2

can anyone please assist?

thanks
Forum: Red Hat 11-07-2010
7,077
Posted By JamesByars
excellent. that explains it, we're passing in 1,...
excellent. that explains it, we're passing in 1, and i did not know why, now i do.

thanks
Forum: Red Hat 11-07-2010
15,221
Posted By JamesByars
ok, thanks for that
ok, thanks for that
Forum: Red Hat 11-07-2010
7,077
Posted By JamesByars
how can i know what arguments are passed to a pre install rpm script?
hi,

i have an rpm, and i am looking at the presinstall script. i can see it takes in an argument, but what i do not know is how this argument is passed to the script? is there something that...
Forum: Red Hat 11-07-2010
15,221
Posted By JamesByars
im not going to get into a tit for tat argument. ...
im not going to get into a tit for tat argument.

What I asked before was
"can you please let me know if rpm --justdb actually just makes rpm think it has installed something when in fact it...
Forum: Red Hat 11-06-2010
15,221
Posted By JamesByars
why do people have to try and act like such smart...
why do people have to try and act like such smart a**es?

I did google, and I did go to that page.

And on that page it said



So from this it is apparent that it is updating the database...
Forum: Red Hat 11-06-2010
15,221
Posted By JamesByars
rpm --justdb
hi,

can you please let me know if rpm --justdb actually just makes rpm think it has installed something when in fact it installs nothing and executes nothing inside the rpm?

thanks
3,165
Posted By JamesByars
great answers guys, thanks
great answers guys, thanks
3,165
Posted By JamesByars
sorry, i am confused, if ip is empty and we did...
sorry, i am confused, if ip is empty and we did the check, it would fail anyway, so why would we worry about this x stuff?

thanks
4,114
Posted By JamesByars
thanks guys
thanks guys
4,114
Posted By JamesByars
ksh: what does var=$(command) mean?
hi,

i can see in a script

it contains

var=$(
myFile | grep -i err
)

why has this person done it like this? why not just

var=`myFile | grep -i err`

thanks
3,165
Posted By JamesByars
ksh: what does x in front of something mean?
hi,

i have stuff like

if [[ x$ip = x127.0.0.1 ]]; then

what does the x mean?

also, what does -z variable mean in an if statement>

thanks
Forum: Red Hat 09-27-2010
2,227
Posted By JamesByars
many thanks for your reply, I will google around...
many thanks for your reply, I will google around for more stuff on the spec file, and if stuck, come back.

thank you
Forum: Red Hat 09-27-2010
2,227
Posted By JamesByars
What exactly does an rpm do?
Hi,

I have a questions. Does installing an rpm do more than simply extracting stuff onto the filesystem and registering the rpm as installed? Can it do stuff like kick off scripts and update...
2,981
Posted By JamesByars
wonderful - thanks
wonderful - thanks
2,981
Posted By JamesByars
Getting cntrl-c entered inside a ksh script
hi guys,

my ksh script is calling another script. The other script expects user to press CNTR-C, and does not return to the prompt.

in my script, I want to call the other script, but somehow...
87,017
Posted By JamesByars
brilliant, thanks
brilliant, thanks
87,017
Posted By JamesByars
awk search and replace and overwrite file
hi,

i am doing

awk '{gsub("hello", "bye", $0); print}' test.dat

but I want to actually store the results of this global change into the file test.dat itself, i.e. I don't want the results...
5,843
Posted By JamesByars
im working on Sun using ksh. I can have 10...
im working on Sun using ksh.

I can have 10 different copies of the same script in different locations. When the script executes, it needs to find it's location where it is.
5,843
Posted By JamesByars
$PWD won;t work. That would give me the directory...
$PWD won;t work. That would give me the directory from where I am executing the script, not where the script is.
5,843
Posted By JamesByars
which wont work, because there will be many...
which wont work, because there will be many scripts with the same name in different locations and they will be executed using many different ways.

Surely there must be a way to execute a script...
5,843
Posted By JamesByars
pwd gives the location of where I am executing...
pwd gives the location of where I am executing the script from.

My users can execute it from anywhere, so I cant force them to put the absolute path

thanks
5,843
Posted By JamesByars
How can I get the directory of my executing script?
hi,

I tried whence $0, but that just gives me the filename relative to where I am executing the script from. I need to get the full pathname.

thanks
2,970
Posted By JamesByars
many thanks, that helped, and I also found out my...
many thanks, that helped, and I also found out my version is Version M-11/16/88i :)
Showing results 1 to 25 of 153

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