adip
06-04-03, 09:45
| me trying to run a select statment select * from x >a.txt this does not work wheras select * from x works What is teh redirection operator required |
View Full Version : unix shell scripting question
| me trying to run a select statment select * from x >a.txt this does not work wheras select * from x works What is teh redirection operator required |
| In unix shell sript you can do something like this: #!/bin/ksh sqlplus <usr>/<pw> <<! spool a.txt select * from x; spool off exit ! And also like this: #!/bin/ksh sqlplus <usr>/<pw> <<! >a.txt select * from x; exit ! |