Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7494553
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 29, 20262026-05-29T17:38:01+00:00 2026-05-29T17:38:01+00:00

From a long time i am struggling for with this program. I am having

  • 0

From a long time i am struggling for with this program. I am having a shell script which accepts parameters as version number and path for the files. then that script creates Zip file with the name of version number congaing all file files to the folder.

I have installed Cygwin on following path D:/cygwin. I am coping required files to same location where cygwin is installed D:\cygwin\bin

Command

D:/cygwin/bin/bash -c ‘/bin/test/app.sh 04.10 D:\cygwin\bin\ Test_files

Or Can any one please suggest how to run shell script in java using Cygwin.

Rewriting the Problem:-

When i am trying to run following Command in command prompt it gives error

sh app.sh AK-RD 02.20 D:\cygwin\bin\Test_files

Error:-C:\Documents and Settings\sh app.sh AK-RD 02.20 D:\cygwin\bin\Test_files

/usr/bin/app.sh: line 51: lib/lib.sh: No such file or directory

But if i run the same command at

D:cygwin\bin\Test>sh app.sh AK-RD 02.20 D:\cygwin\bin\Test_files

It works fine. Can any one suggest me how to avoid this kind of errors.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-29T17:38:08+00:00Added an answer on May 29, 2026 at 5:38 pm
    Runtime run = Runtime.getRuntime();
    Process p = run.exec("D:/cygwin/bin/bash -c \'/bin/test/app.sh 04.10 D:\cygwin\bin\ Test_files");
    p.waitFor();
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

long time lurker, first question! I am struggling to optimize this query, which selects
This question has been puzzling me for a long time now. I come from
I have this doubt from long time, When ever I write the class using
From a long time ago I have a memory which has stuck with me
I am stucked with this problem from long time. Though you will find this
This is one of the problem i have been working from a long time.This
I make an AJAX request to a PHP script which returns a number from
First question from a long time user. I'm writing a Perl script that will
im spawning a script that runs for a long time from a web app
I am reusing a curl function from a long time ago that is now

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.