Search Results

Search: Posts Made By: potro
Forum: Web Development 09-08-2009
4,964
Posted By potro
Allow multiple users to start/stop tomcat
Hi,

I have the user who runs tomcat: tomcat:tomcats

I want to have another user who will be able to start and stop tomcat process.

Is this possible?

Thanks,
Bianca
Forum: Solaris 05-28-2009
8,854
Posted By potro
Unable to release package administration lock for this system
Hi,

I created a Solaris package, but at the end of installation (on a Solaris 10 sparc) I get :
#pkgadd -d MyApp_version__SunOS_sparc.pkg

...

Installation of <MyAppName> was successful....
2,171
Posted By potro
Hi, The modification is done during the...
Hi,

The modification is done during the installation process from a bash script, this is why I cannot use an editor.

For the second issue I read 2 variables from user input and I need to...
2,171
Posted By potro
XML file modifications using sed
Hi,

During an installation process in a bash script I need to do 2 things with 2 XML files. Does the use of sed affect in any way the XML file ?

1.Add to a section in <ServerListeners> section...
10,456
Posted By potro
I would use bash but how? The script is run by...
I would use bash but how? The script is run by /bin/sh (this is out of my control) so I can't change that to bash.

PS: Thanks a lot for your time.
Bianca
10,456
Posted By potro
I removed the -e parameter. Still .. If I hit...
I removed the -e parameter. Still .. If I hit ENTER the variable maintains the it initial value, if I enter a new value it generates errors:


bash-3.00# ./test1.sh
Please type the Log Directory:...
10,456
Posted By potro
Thanks for the solution. But still how could...
Thanks for the solution.

But still how could I fix the read problem, as I read a lot of parameters like this:


APPLOGDIR1="${DIR}/log"
echo "Please type the XAC Log Directory: (current...
10,456
Posted By potro
Hi, Of course that I tried your suggestion....
Hi,

Of course that I tried your suggestion. Your code generates errors as well because of read parameters.

But you might be right about the fact that the script is not run by bash.
My...
10,456
Posted By potro
Hi bash-3.00# /bin/bash --version GNU...
Hi

bash-3.00# /bin/bash --version
GNU bash, version 3.00.16(1)-release (sparc-sun-solaris2.10)
Copyright (C) 2004 Free Software Foundation, Inc.
bash-3.00# /usr/bin/bash --version
GNU bash,...
10,456
Posted By potro
I set #!/bin/bash in the scripts. In a...
I set #!/bin/bash in the scripts.

In a separate script it works .. and in the request script doesn't work that's why is so frustrating.
10,456
Posted By potro
For this I get Do you want to configure...
For this I get

Do you want to configure Cache Manager? [Y/N] /var/tmp//installltaiLW/checkinstallotaiLW: -sn1: is not an identifier
pkgadd: ERROR: request script did not complete successfully
...
10,456
Posted By potro
Solaris "read -e"
Hi,

Why does this piece of script work on a Solaris 10 test.sh script but if I include it in the request script of packaging generates errors?


until [ -n "$CONFIGCACHE" ] && [ -n...
Forum: Solaris 02-26-2009
4,746
Posted By potro
Thanks. I really thought that I had an older...
Thanks. I really thought that I had an older version ... as I didn;t know how Solaris updates are named.

Bianca
Forum: Solaris 02-25-2009
4,746
Posted By potro
Cannot read MAC in a Zone Container
Hi,

I have an app which reads MAC address. I read that Solaris 10 8/07 offers the solution to set MAC address for each container but I cannot find how to do that in any docs I found on Sun :( do...
Forum: Solaris 11-20-2008
6,207
Posted By potro
libstlport.so.1
Hi,

I need to include libstlport.so.1 in a build (to have it installed on the machine where I deploy the build).
As far as I know this is only included in sun studio and I can't seam to find it...
2,969
Posted By potro
USER1="root" echo "Please enter the user to run...
USER1="root"
echo "Please enter the user to run the XSS process (press ENTER for $USER):"
read USER
if [ "${USER}" = "" ]
then
USER=$USER1
fi

This would be a way but is not so...
2,969
Posted By potro
Solaris request script
Hi,

In the request script I need to read user input and store to variable to use it later in postinstall script.

e.g.
LOGDIR=/app/log

echo "Please type the Log Directory : (current...
3,345
Posted By potro
It works ... what is the meaning of moving the ^...
It works ... what is the meaning of moving the ^ character ?

Thanks a lot for your help,
Bianca
3,345
Posted By potro
But the sed still doesn't /usr/xpg4/bin/sed...
But the sed still doesn't

/usr/xpg4/bin/sed -e "s-\(^LogDIR=\)\([^#]*\)-\1$INSTALLDIR/log-" server.ini

Doesntt generate errors but doesn't replace the values in the config file.

Bianca
3,345
Posted By potro
Radoulov, I didn't understood your...
Radoulov,

I didn't understood your suggestion !!! OHH !!

/usr/xpg4/bin/awk -F"=" -v gr="888" '/RTSPPort/{$2=gr;}1' OFS="=" server.ini

This works.

Thanks a lot,
Bianca
3,345
Posted By potro
If I try this nawk -FS"=", -v OFS="=", -v...
If I try this

nawk -FS"=", -v OFS="=", -v gr="888" '/RTSPPort/{$2=gr;}1' server.ini

I get
# Port(s) for accepting client connections
RTSPPort=554 888


It adds the value to the...
3,345
Posted By potro
Hi Radoulov, I use this in the postinstall...
Hi Radoulov,

I use this in the postinstall class ... so you say to add this line
PATH="`getconf PATH`:$PATH"
before the awk and sed commands ?
But the awk throw those errors. Sed doesn't just...
3,345
Posted By potro
Sed problem
Hi,

On Solaris 10 I have some problems with awk and sed which work on Linux scripts:

Config file:
# Port(s) for accepting client connections
RTSPPort=554
DefaultStorageFolder=/app/cdr

...
Forum: Solaris 09-11-2008
8,246
Posted By potro
Sed problems on Solaris 10
Hi,

The config file:
# Port(s) for accepting client connections
RTSPPort=554


bash-3.00# awk -F"=" -v gr="888" '/RTSPPort/{$2=gr;}1' OFS="=" server.ini
awk: syntax error near line 1
awk:...
Forum: Solaris 09-10-2008
2,067
Posted By potro
Modify a config file during installation (package developing)
Hi,

In the package I have a config file which after requesting some user input I need to modify accordingly.

I created a build file in which I wrote the script to modify the config file (using...
Showing results 1 to 25 of 61

 

Featured Tech Videos

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