Search Results

Search: Posts Made By: dstinsman
6,549
Posted By dstinsman
MAILX Body containing SQL results
I have a KSH script that runs a SQL script, then sends an email to me indicating that it's completed. I would like to modify it so that the body of the email will contain a count of the number of...
3,523
Posted By dstinsman
My cron job worked all weekend. Thanks guys!
My cron job worked all weekend. Thanks guys!
3,523
Posted By dstinsman
It already has this line at the top, after the...
It already has this line at the top, after the path:

. /usr/local/bin/TEST.env

PATH=/usr/lbin:/usr/bin:/etc:/usr/sbin:/usr/ucb:/sbin:/bin:/usr/local/bin:$ORACLE_HOME:$ORACLE_HOME/bin:/apps:.; ...
3,523
Posted By dstinsman
Works Manually - not in CRON
I've got a ksh script that works like a charm when I run it manually. When I set it up in a cron, I keep getting this error in my log:

syntax error at line 90: `$' unexpected

Here's my snippet...
10,784
Posted By dstinsman
:D - Many thanks!!!
:D - Many thanks!!!
10,784
Posted By dstinsman
Oh...duh. OK, I did that... Now, the...
Oh...duh. OK, I did that...

Now, the backspace key is working : )
But the prompt is still showing my home directory regardless of where I cd to...
10,784
Posted By dstinsman
OK, in this statement from passwd: ...
OK, in this statement from passwd:

user:pswd:000:00:DevLogin:/u01/app/stg:/usr/bin/ksh

the u01/app/stg is my home directory, correct? There is no .profile in that directory.
10,784
Posted By dstinsman
KSH Terminal Settings
I've been doing a lot of searching through the forums to figure out how to:

1 - get my Backspace key to work in my ksh telnet session
2 - get the PWD to show up as the prompt

Solution to 1 -...
2,020
Posted By dstinsman
Delete filename with month -2
KSH - I've got a script that is generating a number of log files like this:

y=`date +"%y"`
m=`date +"%m"`

$LOG_DIR/tuscprof_tbl_$y$m.log

I only want to keep the current 2 months' worth of...
6,385
Posted By dstinsman
Over the weekend, my DBA pointed out to me that I...
Over the weekend, my DBA pointed out to me that I should not be using that ALTER SYSTEM statement. Don't know why it was added originally, it's not my original code.

Thanks, the date/time...
6,385
Posted By dstinsman
SQL Script run in KSH Script
I've got a SQL script that is executed through a UNIX ksh script. It is working fine, but I wanted to add a line to put a date/time stamp in the log file that it generates.

This is more of a SQL...
29,869
Posted By dstinsman
Aha...when I looked at man ksh for -f, it said: ...
Aha...when I looked at man ksh for -f, it said:
-f file
TRUE, if file exists and is an ordinary file.

What does "ordinary file" mean?
29,869
Posted By dstinsman
But wouldn't that test to true if either: File...
But wouldn't that test to true if either:
File does not exist OR
File exists but is empty

If so, I don't think that would work for me because I want something different to happen for each of...
29,869
Posted By dstinsman
File exists and is empty
I've got a script with this snippet:

if [ -s $DATA_DIR/file.dat ]
then

I know that the -s indicates that the file exists and is not empty. How can I specify that the file exists, but is...
2,222
Posted By dstinsman
KSH...thanks for this, I will play around with it...
KSH...thanks for this, I will play around with it a bit, after I put out some fires.
2,222
Posted By dstinsman
Hmmm...there are other scripts running in cron...
Hmmm...there are other scripts running in cron jobs (which is where I want to put this, when it's working) that have that mailx line and are working as designed. In fact, this script works as...
2,222
Posted By dstinsman
Sleep - Send Email
Working on a script to look in a directory for a certain file. If the file is not there, check the time. If the time is greater than 10:00, send me an email. If it's not, sleep for 15 minutes and...
2,459
Posted By dstinsman
Thanks, I will check those out!
Thanks, I will check those out!
6,543
Posted By dstinsman
Ah...thank you.
Ah...thank you.
6,543
Posted By dstinsman
Thanks...where can I find out more about the...
Thanks...where can I find out more about the flags? I noticed bhargav used -f instead of -s...
6,543
Posted By dstinsman
That worked...thanks for the quick reply!!
That worked...thanks for the quick reply!!
6,543
Posted By dstinsman
Test for file
I have a script that performs certains functions is a file exists in the specified directory:

if [ -s $DATA_DIR/test.das ]
then

How can you do the reverse of this, basically an "if file does...
2,459
Posted By dstinsman
Need *ONLINE* UNIX Scripting Resource
Hello,

Can any of your UNIX gurus recommend a good online resource for learning UNIX scripting? I'll be doing a little bit of it, but not enough for me to feel motivated enough to go out and buy a...
Showing results 1 to 23 of 23

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