Search Results

Search: Posts Made By: nattynatty
3,158
Posted By nattynatty
Issue with cron job
Hi,

I have a script which I am able to run from command line. When I put this in cron, it fails and gives the following message:

ld.so.1: /d00/documentum/product/5.2.5/bin/dmbasic: fatal:...
2,366
Posted By nattynatty
See if this works for you: $ more dup_test ...
See if this works for you:

$ more dup_test
OBJECT="ABC" GFT="JHU"
DESCRIPTION="ABC MNCL JHDG "
OBJECT="ABC" GFT="JHU"
DESCRIPTION="ABC MNCL JHDG "
OBJECT="ABC" GFT="JHU"
DESCRIPTION="ABC...
339,962
Posted By nattynatty
Hi Perderabo, Excellent script. I found...
Hi Perderabo,
Excellent script.

I found one issue though:
When the directory name contains a space, some recursion error occurs and the script goes into an endless loop.

eg: "Directory with...
6,936
Posted By nattynatty
Hi Perderabo, The web cache is cleared only...
Hi Perderabo,

The web cache is cleared only on specific instances like when it is brought out of rotation or when we apply a patch to our database or a new build etc.

Since I do not have any...
6,936
Posted By nattynatty
Running a script on multiple machines
To clear the web cache on my web server, I run this command:

find $APACHE_HOME/cache/plsql/plsql -type d -name "[0-9]*" -exec rm -R {} \;

To clear the cache on all the web servers(we have 4), I...
2,876
Posted By nattynatty
64 bit file using gcc
Hi,

I am compiling a C program using gcc.
gcc -c test.c

The OS is Solaris 2.8 (64 bit). We dont have cc compiler on the box.

When I do a file test.o , I get this:
test.o: ELF...
4,768
Posted By nattynatty
Error when running the make command
Hi,
Not really sure whether this question should go to this forum but am giving it a shot.

I have compiled a simple C program test.c.

#include <stdio.h>
#include <stdlib.h>
#include...
22,281
Posted By nattynatty
Works great, perderabo. Could you pl explain...
Works great, perderabo.

Could you pl explain this elegant one liner to me?
22,281
Posted By nattynatty
This also works on k shell but not on c shell. ...
This also works on k shell but not on c shell.
I get a variable syntax error.
22,281
Posted By nattynatty
sed command in c shell
Hi,

To insert a single quote at the end of every line in a file , I do this:

sed "s:$:':" temp.txt

Works like a charm in k shell, but errors out in c shell.

Any inputs what could be wrong...
4,653
Posted By nattynatty
In K shell , I do $ORACLE_HOME =...
In K shell , I do
$ORACLE_HOME = "/u00/...../8.1.7"
and then
$echo $ORACLE_HOME gives me the desired result. But I wanted to maintain this for each session.

Also, on C Shell, this thing works...
4,653
Posted By nattynatty
set env in login file
Hi,

I have inserted the following line in my local.login file

setenv ORACLE_HOME /u01/app/oracle/product/8.1.7

Then when I do an echo
$ echo $ORACLE_HOME

I get a blank line. Am I...
4
14,373
Posted By nattynatty
Hi RTM, I found 3 files on /etc/skel ...
Hi RTM,

I found 3 files on /etc/skel

local.cshrc local.login local.profile

Could someone tell me the difference between these files?

Thanx
5,443
Posted By nattynatty
Hi Perderabo, Could you pl explain what do #...
Hi Perderabo,

Could you pl explain what do # and ? after x do.

Thanx
9,155
Posted By nattynatty
Thanx for all the suggestions. The exit thing...
Thanx for all the suggestions. The exit thing works perfectly fine.
9,155
Posted By nattynatty
shell script- oracle connection problem
Hi all,

I am having problem with a shell script. I have a couple of csv files. The shell script will do some operation on them, create a sql file which will then be called by sqlplus. The problem...
11,760
Posted By nattynatty
Very cool, Is there any place I can get the...
Very cool,

Is there any place I can get the color codes for different colors?
5,279
Posted By nattynatty
Hi kemisola, I would rather use xargs than...
Hi kemisola,

I would rather use xargs than exec.

xargs rm

By using xargs in this command, I can remove all of the files that end in .NEW, but instead of creating a separate process for each...
5,279
Posted By nattynatty
Got it. The command should be find ....
Got it.

The command should be

find . -name '*.NEW' -ctime +0

Thanx everyone
5,279
Posted By nattynatty
Hi Perderabo, ls -lc returns the files...
Hi Perderabo,

ls -lc returns the files created more than day ago.
Also, I tried mtime but didnt work either.

Strangely when I use

find . -name '*.NEW' -ctime -1 it gives me the correct...
5,279
Posted By nattynatty
I have used both single and double quotes but it...
I have used both single and double quotes but it doesnt work with either. Also I am in the correct directory.
5,279
Posted By nattynatty
Problem with find command
Hi,
I am using the find command to remove all the files in a directory ending .NEW and created more than a day ago.


The command I am using is:

find . -name '*.NEW' -ctime +1 | xargs rm
...
6,708
Posted By nattynatty
Hi Auswipe, I havent yet tested your code...
Hi Auswipe,

I havent yet tested your code but the quotes in D''AGOS is to be two single quotes and not one double quote. The sample usage has one double quotes.

Natty
6,708
Posted By nattynatty
awk command for INSERT statement
Hi,

I sometimes bulk upload data in oracle. The problem is that I sometimes get an INSERT statemnt like this:
INSERT INTO ALL_USER_HOTSPOT_DETAILS...
10,339
Posted By nattynatty
Thanx Hugo and Jimbo. I think I will have to use...
Thanx Hugo and Jimbo. I think I will have to use and a.ascNEW approach here.
Showing results 1 to 25 of 31

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