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

  • Home
  • SEARCH
  • 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 917101
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 15, 20262026-05-15T18:09:19+00:00 2026-05-15T18:09:19+00:00

I created a windows batch file with the following content: plink -batch PuttySaveSessionName -pw

  • 0

I created a windows batch file with the following content:

plink -batch PuttySaveSessionName -pw thePassword "bash stop.sh"

stop.sh is located in the home directory of the linux machine I log in to, and has the following content:

echo "starting..."
cd //path_to_jboss_dir/jboss/bin
./spcrun.stop
echo "finished"

If I execute the Windows batch file I receive the following output and the server is still running:

starting...
finished
JAVA_HOME system property is undefined.
Please define JAVA_HOME and start JBoss again.

If I use putty to log in, and follow the commands above, the server shuts down.

I need the same behavior using pLink from Windows. Any ideas on what the problem is?

  • 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-15T18:09:20+00:00Added an answer on May 15, 2026 at 6:09 pm

    Executing “bash cmd” starts a non-interactive shell session; not all of your shell setup files will be parsed.

    You can either execute bash -l cmd or move the required settings from your profile (probably $HOME/.profile) to your rc file ($HOME/.bashrc).

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

Using Windows XP, I created a batch-file that takes two files as arguments, and
I want to create a batch file in Windows Server, including the following functions:
Following a blog, I created a batch file, wm.bat: d:\svnroot\external\winmerge\WinMerge.exe /B /WAIT d:\svnroot\external\winmerge\WinMergeU.exe /e
I've created a batch script to automatically update some files using wget for Windows.
I am running a Batch file on Windows that runs an Rscript that creates
I'm writing a batch file on Windows which gets one argument: a zip file
I have created the below batch file but no success. @ECHO OFF @ECHO Backup
In Windows cmd batch, I try to call a batch file: call .\%%R\scenery\list bgl.bat
I have a windows batch file, which iterates over files in a folder and
trying to run a simple batch file in windows 2008 task scheduler call cleanup.bat

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.