• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
  • Mikalai Zaikin

Executing shell script from java

Posts: 29
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am trying to execute shell script from java, the shell script interns call the sql file.
When shell script is called it connect to database sucessfully but when sql file is called it is giving below error.
SP2-0310: unable to open file ".sql".
When I run the line explicitly in cygwin it works fine.
sqlplus -s $DBConnect @test.sql. I even given the read/write/execute permission to the sql file still it is not working.
I know this query is not related to Java instead to shell scripting, but i didnt find the correct forum to post.

    Bookmark Topic Watch Topic
  • New Topic