• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Liutauras Vilda
  • Bear Bibeault
Sheriffs:
  • Jeanne Boyarsky
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Piet Souris
  • salvin francis
  • Stephan van Hulst
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Jj Roberts

java : shell scripts for local host

 
Ranch Hand
Posts: 41
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello All,

We are setting up local test server (WPS 6.1 with WAS 7) to run our application on local host.
Our existing code file execute some shell scripts (*.sh) kept at apps server at /home directory. So in code files to call that shell script we use the path as-

private static final String REPORTADMIN_DELETEFILE = "/home/<application_name>/product/bin/reportadmin_removefile.sh";

but to run the script from local host we need to put script in our respective PCs. So is there any other way that we keep the script in any server and or project user area and specify the path in code files.

We have tried keeping the scripts at C:\ drive and specified the path in code file as-
private static final String REPORTADMIN_DELETEFILE = "C:\\FILEUPLOAD\\reportadmin_removefile/.sh";

But the page is hanging. Can anyone guide?


Thanks,
Manisha
 
author & internet detective
Posts: 40286
819
Eclipse IDE VI Editor Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Manisha,
I'm not clear on what you are trying to do. .sh scripts don't run on Windows.
 
Wait for it ... wait .... wait .... NOW! Pafiffle! A perfect tiny ad!
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic