Search Results

Search: Posts Made By: haadiya
8,753
Posted By haadiya
Check for “errors” or “ORA-”
I want to check for "errors" or "ORA-" in Y.if there is an error then exit

Y=`sqlplus -s user/passwd<< EOF
exec test_Proc;
exit;
EOF`

if [ echo $Y | awk '/ERROR/ || /ORA-/' ] ; then
exit 1...
1,723
Posted By haadiya
Checking plsql flag status in UNIX
Hi,I have a stored procedure to verify no of months since current fiscal.I want a shell script to exit with returtn code when the verification fails,I have shell script below but this doesnt work
...
Forum: HP-UX 03-20-2015
9,379
Posted By haadiya
Hello RudiC, Yeah you are right,im saw few...
Hello RudiC,

Yeah you are right,im saw few threads using touch and -newer option,the thing is, im not suppose to create any file in that dir,thats the reason i didnt go for that.

Hello Ravi,...
Forum: HP-UX 03-20-2015
9,379
Posted By haadiya
Hello Ravi, Im on hp unix which doesn't...
Hello Ravi,

Im on hp unix which doesn't support mmin option ,and my filename is dynamic i dont know the file name.what im trying to do is

1) Run the script every 2 hours and check if the last...
Forum: HP-UX 03-20-2015
9,379
Posted By haadiya
Comparing the timestamp of the file to current time
I have a file like this

-rwxr-xr-x 1 rewq other 168 Jan 13 07:05 check_files.sh

I want to compare (check_files.sh time) with the current time to see if its is older than 2...
2,048
Posted By haadiya
Thanks for the reply .I couldnt use -mmin along...
Thanks for the reply .I couldnt use -mmin along with find in HP-UX

find: bad option -mmin
2,048
Posted By haadiya
Hi,thanks for replying to my post.the above...
Hi,thanks for replying to my post.the above script will return files which is older than 2 hours or empty.I want a script to monitor a folder for new incoming files. if the folder has...
2,048
Posted By haadiya
hi dave,how can i check that the file existence...
hi dave,how can i check that the file existence with time .if file not received for more than 2 hrs ie current time - 2 hrs.
2,048
Posted By haadiya
Hi, I want to check the file existence for...
Hi,

I want to check the file existence for last 2 hrs ie.current time-n hrs
2,048
Posted By haadiya
File existence
Hope someone can help me on this

In a directory ,files are dynamically generated.I need a script to do the following
if files are not received for more than 2 hours or if the received file is...
Showing results 1 to 10 of 10

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