Search Results

Search: Posts Made By: valluvan
5,467
Posted By valluvan
Well that too essentially means it has to be...
Well that too essentially means it has to be updated every time the cron jobs gets migrated across intances is'nt it...a reference to $XXINT_TOP would elminate that...is there no other way out...why...
5,467
Posted By valluvan
Well yes,If I do that it works fine,but I don't...
Well yes,If I do that it works fine,but I don't really like it.

You know this cron job will be propagated across various environements and each time it is done I don't want the admin to update...
5,467
Posted By valluvan
Hi Franklin, Sorry could'nt follow what you...
Hi Franklin,
Sorry could'nt follow what you said..But I will explain my problem again.

there is a custom top(path) set for customizations of Oracle applications in the Unix box.It is called as...
5,467
Posted By valluvan
Cron Job and Environement Variables
Hello all,
One more Cron job Query!!

Ok I have a cron job which calls a shell script.The shell scripts uses 11 parameters whose values are set up in a config file and this file is sourced using...
10,349
Posted By valluvan
Moving Cron Jobs Across various Machines
How do I migrate this crontab of mine across various environments?
My colleague says it has to be manually typed into various unix boxes.Can't we have a cronjob script/file that we can install or...
7,280
Posted By valluvan
Hi, thanks very much and it worked. Now...
Hi,
thanks very much and it worked.
Now another question:

How do I migrate this crontab of mine across various environments?
My colleague says it has to be manually typed into various unix...
7,280
Posted By valluvan
Ok.I have placed all the paremeters as variables...
Ok.I have placed all the paremeters as variables in a filecalled as CONFIG.cfg and assigned them the relevant values.

Then I have added this portion to the top of my crontab
#! ....
7,280
Posted By valluvan
Hi, thanks for the reply.I see what you are...
Hi,
thanks for the reply.I see what you are saying.But my issue is slightly different.My shell script takes 11 params and the shell script is run as a cron job.So instead of hard coding the values...
7,280
Posted By valluvan
Cron Job Config files
Hi All,
I have created 2 shell scripts and set Cron jobs which runs it at various frequencies.The first one which runs every 2 minutes Monday to Friday and another cron job runs at 11PM on the last...
3,519
Posted By valluvan
Thanks..How do i do it..when I say 'crontab -e'...
Thanks..How do i do it..when I say 'crontab -e' it always brings up my first cronjob related file.How do i set up the 2nd cronjob and where?
3,519
Posted By valluvan
Setting up More than One Cron Job
Hello,
it is possible to setup two cron jobs to run at different frequencies?
I have a cron job which runs from monday -friday every 5 mins .I also want to have one more cron job which runs on a...
16,860
Posted By valluvan
Ok.. {} around the variable did the trick...
Ok.. {} around the variable did the trick...
16,860
Posted By valluvan
Wow that worked...thank u very much Frank... ...
Wow that worked...thank u very much Frank...

I have yet another problem...sorry to be deluging you with questions....My shell script takes 11 parameters

when I assign $10 and S11 to different...
16,860
Posted By valluvan
Sorry to be a bother again I am using the...
Sorry to be a bother again

I am using the below code to select only files of .out extension whose names don't start as given in the variables $FTPED_FILE_PREFIX and
$ERRORED_FILE_PREFIX

...
7,630
Posted By valluvan
Hi, There was some problem which the admin...
Hi,
There was some problem which the admin corrected and i am getting the mails now.however there is a slight problem


echo -e "$FTPERROR1" "\n" "$FTPERROR2" "\n" "$MAILFOOTER" | mailx -s...
7,630
Posted By valluvan
Thank you very much.It worked... I assume [ !...
Thank you very much.It worked...
I assume [ ! -z $PRECHECK ] means does the variable precheck exist??

One more thing is that I need to email the file log contents to a user.
I am using the...
7,630
Posted By valluvan
One more question: I want to compare the...
One more question:

I want to compare the value of the variable against a string and i am using the below code,but doe's'nt seem to do it...is there anything wrong with it??

if echo...
7,630
Posted By valluvan
Thats correct Zaxxon. Adding sftp -b $SCRIPT...
Thats correct Zaxxon.
Adding
sftp -b $SCRIPT $DESTUSERNAME@$DESTHOSTNAME > $SESSIONLOG 2>&1
did the trick....thanks a lot guys
7,630
Posted By valluvan
Log File Writing and Reading
Hi all,
I have the following shell script code which tries to sftp and writes the log into the log file.

TestConnection ()
{
echo 'Connection to ' $DESTUSERNAME@$DESTHOSTNAME
$SETDEBUG
...
16,860
Posted By valluvan
Surprisingly I just flipped some of the...
Surprisingly I just flipped some of the components as below and it worked!!


FILELIST=`ls -l |awk '/^-/ && $NF ~ /.out/ && $NF !~ /^FTPED/ && $NF !~ /^ERROR/ {print $NF}'`
echo $FILELIST
16,860
Posted By valluvan
-rwxrwxrwx 1 oratest4 dba 8 2008-11-24...
-rwxrwxrwx 1 oratest4 dba 8 2008-11-24 09:45 ERROR_ESRC_CHQ_GBP_1234.out
-rwxrwxrwx 1 oratest4 dba 8 2008-11-20 15:27 ESRC_CHQ_GBP_1234.out
-rwxrwxrwx 1 oratest4 dba 8878 2008-11-21...
16,860
Posted By valluvan
Thanks Frank when I assign this code to a...
Thanks Frank when I assign this code to a variable and try to print the variable contents it just prints nothing.

I do this:

FILELIST=`ls -l |awk '/^-/ && $NF !~ /^abc/ && $NF !~ /^efg/ &&...
16,860
Posted By valluvan
Sorry Frank ...If i have to elimiate more than...
Sorry Frank ...If i have to elimiate more than one name in the file how do i do it?

i mean don't select files whose name starting with abc or efg

ls -ld !(abc*,efg*)|awk '!/^d/{print $NF}'...
16,860
Posted By valluvan
Perfect Franklin...Thank You very much
Perfect Franklin...Thank You very much
16,860
Posted By valluvan
Listing all the files names not starting as
hello all,
iam new to shell scripting.I have searched the forum and could'nd find a close enough answer and hence this post:

I want to list all the file names whose names don't start as abc.
...
Showing results 1 to 25 of 27

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