Search Results

Search: Posts Made By: ssmith001
6,827
Posted By ssmith001
SQLPLUS error
I am running a script that invokes SQLPLUS. During the execution I get the following:

SQL*Plus: Release 9.2.0.8.0 - Production on Mon Jun 11 16:12:50 2007

Copyright (c) 1982, 2002, Oracle...
28,795
Posted By ssmith001
I just figured it out. The problem was that I was...
I just figured it out. The problem was that I was trying to use the text of the file as the email message body (user@xyz.com < ${f1}) and it was having problems finding the file in another directory...
28,795
Posted By ssmith001
There is no other process that is removing the...
There is no other process that is removing the file. Both files are still there after this script runs.
28,795
Posted By ssmith001
I get the same "cannot open" error and no email...
I get the same "cannot open" error and no email is sent
28,795
Posted By ssmith001
Here it is... + dirname=/opt/manu/srv +...
Here it is...

+ dirname=/opt/manu/srv
+ f1=manumgrmdip2_7600.log
+ f2=manumgrmdip2_7600.pid
+ hostname
+ export HOST=itdt02hp
+ typeset -i f1size f2size
+ [ ! -r...
28,795
Posted By ssmith001
I realize that, but it cannot find the files, no...
I realize that, but it cannot find the files, no matter what I call them. I have made sure that whatever the filename is that I am looking for actually exists in the correct directory.

I did some...
28,795
Posted By ssmith001
Now I get this: ./manusrv_watch.sh[34]:...
Now I get this:

./manusrv_watch.sh[34]: manumgrmdit2_7600.log: cannot open


even though I know the file exists.
28,795
Posted By ssmith001
I get this... typeset: not found and ...
I get this...

typeset: not found

and

syntax error at line 38 : `fi' unexpected

and line 38 is the last line
28,795
Posted By ssmith001
I keep getting an error of "unknown test...
I keep getting an error of "unknown test operator"

These are the conditions that need to send the email:

1) file1 or file2 do not exist
2) file1 and file2 exist but are not readable
3) if...
28,795
Posted By ssmith001
Thanks. That's close, but the filesize check...
Thanks. That's close, but the filesize check needs to check if the size is 0 or >6
28,795
Posted By ssmith001
check for "cannot open file"
I have a small script that checks to see if a file exists and that it has data in it. I also need to check if the file can be opened. I had an issue today where the file it checks could not be opened...
3,039
Posted By ssmith001
Word count problem
I have a text file that has 5719 rows when I open it up in a text editor. When I do a wc -l in Unix however, it says that I have 5718 rows. What could be causing this difference?
2,456
Posted By ssmith001
never mind. I had a typo. Thanks
never mind. I had a typo. Thanks
2,456
Posted By ssmith001
I still get the same message. find: cannot...
I still get the same message.

find: cannot stat /opt/manu/batch/mdip2/outgoing

I do have the proper permissions as shown below:

drwxrwxr-x 2 manumgr manu 131072 Sep 30 10:42...
2,456
Posted By ssmith001
Help w/ find
I am trying to run this find:

find /opt/batch/mdic2/outgoing -name MAFRA*.txt -mtime +7


and I keep getting the following error:

find: cannot stat MAFRA*.txt

What's happening?
1,452
Posted By ssmith001
Need help with script
I am attempting to write a script that will capture a runaway java process on our server, which occasionally reaches 99%. I am using the following script.

#!/usr/bin/ksh
...
Forum: AIX 09-27-2005
8,820
Posted By ssmith001
Help with nmon utility
We have processes that run on our AIX box that sometimes run away and end up consuming 99% of the CPU. I'd like to create a script that would attempt to monitor when this happens and send an email...
5,766
Posted By ssmith001
If the size of file1 <> 0 or the size of file2 <>...
If the size of file1 <> 0 or the size of file2 <> 6, then send the mail
5,766
Posted By ssmith001
Thanks for your feedback. Perhaps I should have...
Thanks for your feedback. Perhaps I should have given you more info to begin with. These are the two files I have:

-rw-r--r-- 1 manumgr manu 0 Sep 6 07:45 manumgrmdft1_7900.log...
5,766
Posted By ssmith001
OK...here's what I get: $ [[-s...
OK...here's what I get:

$ [[-s "manumgrmdft1_7900.log"]] && echo ">0"
ksh: [[-s: not found
5,766
Posted By ssmith001
What? I just need to know how to use it. Do I...
What? I just need to know how to use it. Do I assign this to a variable?
5,766
Posted By ssmith001
It's just a variable. How do I use the command...
It's just a variable. How do I use the command that you suggested?
5,766
Posted By ssmith001
Would that go after the VAR1= ?
Would that go after the VAR1= ?
5,766
Posted By ssmith001
Help with checking file size
I need to check the size of a log file. If the size is anything but zero, I need to send an email. I'm using this syntax:

SIZE=0
VAR1=`wc -c $DIRNAME/$FILENAME1 | awk -F" " '{print $1}' `

echo...
2,876
Posted By ssmith001
Help with mailx
I want to send a message with an attachment from Unix using the following command:

uuencode $DIRNAME/$FILENAME1 | mailx -s "test subject" xyz@xyz

I need to attach the file and I also want a...
Showing results 1 to 25 of 25

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