Of Interest
Be responsible for your future Enter the USA legally!
Visa, Green Card, Citizenship, Passport Consultation Services
|
Sybase
»
UNIX
»
Commands
»
Running SQL within a script
This script accepts a sybase command as a parameter, and executes it.
#!/usr/bin/ksh
#------------------------------------------------------
# File: sybexec
# Process Sybase command, output goes to std output
# Parameter: SQL command, in quotes
#
# Sample call: sybexec "sp_helpdb billing_db"
#------------------------------------------------------
intfile=/apps/sybase/interfaces
eval /apps/sybase/bin/isql -Sserver -I$intfile -Ujsmith -Pyankees << finis
$1
go
finis
|
|
|
Get the latest Rocket99 news and tech tips via
|