Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations SkipVought on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Informix : PAssing Paramters to a shell script

Status
Not open for further replies.

Mute

Programmer
May 23, 2001
2
0
0
DE
Does anybody know how to pass paramters to a Shell script . The documentation say use the prepare execute and free statements , but there are no good examples , only one using ESQL .

See example try below

echo 'prepare virt_obj from "unload to filename select * from tablename where colname = ?" '| /usr/informix/bin/dbaccess databasename

echo 'execute virt_obl using $1 " | /usr/informix/bin/dbaccess databasename

And in the same way I have used the free statement , but always get errors , ANYONE OUT THERE WITH SOME HELP !!!
 

make one file contains :-

dbaccess databasename <<!eot
select * from $1
!eot

may it help.

Sanjay

 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top