Search Results

Search: Posts Made By: melanie_pfefer
1,464
Posted By melanie_pfefer
Hi I want to transform this file ...
Hi

I want to transform this file

[JUPITER]
master=NLWNSCK,jupiter,6500
query=NLWNSCK,jupiter,6500

[ZEUS1]
master=NLWNSCK,zeus,3000
query=NLWNSCK,zeus,3000


to

dn:...
1,464
Posted By melanie_pfefer
help in script
Hi,

I have a log file with this format

field1 - field2 field3 ....field9 field10


I need to do the following:

Select lines matching a specific pattern in field8
If field9 equals 111,...
Forum: Solaris 08-24-2009
2,160
Posted By melanie_pfefer
logger + filter
Hi,

I have an application log file and I am redirecting it to syslog
...| logger -p user.err


Howver, the size redirected is too arge and I am seeking a way to filter what to redirect to...
1,634
Posted By melanie_pfefer
remove a line in files
Hi

I have 3 files and I want to remove 1 line in each file. This line correposnds to the occurrence of a specific pattern

any idea how to do this in shell?

thx
1,661
Posted By melanie_pfefer
grep question
Hi

I want to issue a one-time grep for a sentence like this


XXX AAAA ZZZZ (whatever goes here) BBBB LLLL


How to do this in grep or egrep

thank you
4,450
Posted By melanie_pfefer
I tried another approach fct1 while [ ! -f...
I tried another approach

fct1
while [ ! -f $ORACLEHOME/root.sh ]
do
sleep 200
done
fct2

still fct2 runs without waiting for fct1 to end
6,627
Posted By melanie_pfefer
mailx and hostname
Hi

how to include the hostname in the subject of an email send by mailx?

mailx -s "here goes the subject `uname -n`" abc@xyz.com

or `hostname` list the words as is


thank you
4,450
Posted By melanie_pfefer
hi can you please help in this? thanks
hi

can you please help in this?

thanks
4,450
Posted By melanie_pfefer
Hi Currently I am using this: Fct1() ...
Hi

Currently I am using this:

Fct1()
{
touch /tmp/lock$$
...
rm /tmp/lock$$
}
Fct2()
{
while [ -f /tmp/lock$$ ]
do
sleep 30
done
...
}
Forum: Solaris 05-04-2009
5,581
Posted By melanie_pfefer
Resource management (projadd)
Hi

When I create a new project:

For example: projadd -K "project.max-shm-memory=(priv,16GB,deny)" project_name

I need to associate this project to a user in /etc/user_attr:
...
4,450
Posted By melanie_pfefer
sequential running for 2 scripts
Hello

I have a script that has 2 scripts that must be executed one after the other.
however, when I run the script, the 2 sub-scripts are run in parallel.

any idea how to fix this without...
1,658
Posted By melanie_pfefer
get the part of log between 2 string
Hi

Let's say I have a log file with this format:

Marker1
End of Marker1

....


Marker1
End of Marker1
....


Marker1
End of Marker1

how to get the last part between End of...
1,595
Posted By melanie_pfefer
exit status depending on output
Hi

I have a script that does a select from a table. I want the script to return a 0 status if a specific column has 'OK' value or return 1 if this column returns 'NOT OK'.

The output now is...
Forum: Solaris 04-09-2009
2,886
Posted By melanie_pfefer
not executable when put in cron
Hi,

I have a script that is executed perfectly.
When I put it in cron, it is not executed.
What could be the reason?

thanks
Forum: AIX 03-26-2009
2,845
Posted By melanie_pfefer
telnet and cut
Hi

In my script I am using a command that is executed on a telnet'ed server. This command works well if it does not have cut in it

but If I execute the command using cut -d\":\" -f2, the output...
Forum: Solaris 03-24-2009
2,202
Posted By melanie_pfefer
yes this edits the crontab file but I do not want...
yes this edits the crontab file but I do not want to do this.

I need a command that change the crontab file without editing it manually on all servers

thank you
Forum: Solaris 03-24-2009
2,202
Posted By melanie_pfefer
crontab
Hi

I have an entry in the cron file.
10 3 * * * /usr/bin/test.sh

I want to change it to:
00 11 * * * /usr/bin/test.sh

how to do this without entering the crontab file and edit the change?...
2,002
Posted By melanie_pfefer
check if a variable is not affected
Hi all,

to check that a variable is not empty, I usually do:

if [ -z "$a" ]; then...
or
if [ -n "$a" ]; then...


what if I have a serie of variables and want to do the same test on all of...
1,899
Posted By melanie_pfefer
sed 's_\(variable=\).*_\1'$A'_' filename ...
sed 's_\(variable=\).*_\1'$A'_' filename

sed: command garbled: s_\(variable=\).*_\1/tmp/anything_


moreover, I prefer to use sed -e since I have several other subsitutions and I want to add...
1,899
Posted By melanie_pfefer
I tried this so far (the line after variable=...
I tried this so far (the line after variable= should be replaced with /tmp/anything):

sed -e "/^variable=/s/=.*$/=\/tmp\/anything\//" filename

this works.

But I can't make it when I replace...
1,899
Posted By melanie_pfefer
sed question
hi

i have a file with this line:

variable=/export/home/oracle

I want to change the file so that the path is replaced with the value of another variable

var2=/tmp/anything.

how to do...
Forum: Solaris 02-20-2009
55,513
Posted By melanie_pfefer
Hi, cd /destinationfolder && pax -r <...
Hi,

cd /destinationfolder && pax -r < files.tar

has one inconvenient:

it does a cd to destinationfolder.


I want to stay where the script was executed.

thanks
Forum: Solaris 02-20-2009
55,513
Posted By melanie_pfefer
extract tar.gz under a specific folder
Hi,

How to extract a tar.gz file and put it under a designated folder that I specify in a one line command?

thank you in advance.
Forum: Solaris 02-13-2009
8,585
Posted By melanie_pfefer
well yes but the output will be redirected then...
well yes but the output will be redirected then to nohup.log whereas I want the scripts redirects to a specific file and this is not working when using nohup


thanks
Forum: Solaris 02-13-2009
8,585
Posted By melanie_pfefer
background process
Hi

When I run ./script.sh &
the script runs in bg


But when I close the telnet session, the script is killed also.

any idea how to keep this script running?

thx
Showing results 1 to 25 of 234

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