Solved

Need a Script to check the sybase database connectivity from Unix

Posted on 2003-12-11
3
771 Views
Last Modified: 2012-08-14
Hi,

I am working on Websphere 4.x which sits on AIX 5.1

I have a  Sybase 12 databse configured as application database.

I need a script, to check the database connectivity from the AIX 5.1.
So that i will run the cron job everyday morning.So it will generate a mail.

thanks in advance...
0
Comment
Question by:katta1976
3 Comments
 
LVL 2

Accepted Solution

by:
ianmb earned 250 total points
ID: 9921330
Try the following:

echo "exit" | isql -S<servername> -U<username> -P<password>        \
                                                        2> /dev/null             \
                              && echo success | mailx "email_addr"       \
                               || echo fail | mailx "email_addr"

Cheers,
Ian
0

Featured Post

How your wiki can always stay up-to-date

Quip doubles as a “living” wiki and a project management tool that evolves with your organization. As you finish projects in Quip, the work remains, easily accessible to all team members, new and old.
- Increase transparency
- Onboard new hires faster
- Access from mobile/offline

Join & Write a Comment

Suggested Solutions

In this article, I will show you HOW TO: Install VMware Tools for Windows on a VMware Windows virtual machine on a VMware vSphere Hypervisor 6.5 (ESXi 6.5) Host Server, using the VMware Host Client. The virtual machine has Windows Server 2016 instal…
For cloud, the “train has left the station” and in the Microsoft ERP & CRM world, that means the next generation of enterprise software from Microsoft is here: Dynamics 365 is Microsoft’s new integrated business solution that unifies CRM and ERP fun…
In this seventh video of the Xpdf series, we discuss and demonstrate the PDFfonts utility, which lists all the fonts used in a PDF file. It does this via a command line interface, making it suitable for use in programs, scripts, batch files — any pl…
This demo shows you how to set up the containerized NetScaler CPX with NetScaler Management and Analytics System in a non-routable Mesos/Marathon environment for use with Micro-Services applications.

758 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

20 Experts available now in Live!

Get 1:1 Help Now