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 8396387
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 9, 20262026-06-09T20:31:24+00:00 2026-06-09T20:31:24+00:00

The idea is to run remote python or bash script by clicking run button

  • 0

The idea is to run remote python or bash script by clicking run button in eclipse.

I found something very close here:
https://stackoverflow.com/a/5979831/932965

Then execute external tool: ssh user@rometesite -c “java -Xdebug -Xrunjdwp:server=y,transport=dt_socket,address=4000,suspend=n Main”

But I don’t know how to run some remote script by external tool. Maybe there is other way then external tool…
Anyway I can run script by ssh command:

ssh user@server ‘bash ~/workspace/testscript.sh’

But I’m not able to run it by external tool.
I set
Location: /usr/bin/ssh
Arguments: “user@server ‘bash ~/workspace/testscript.sh'”

I got connected but testscript.sh didn’t do anything.

testscript.sh source:

#!/bin/bash

touch testfile
  • 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-06-09T20:31:25+00:00Added an answer on June 9, 2026 at 8:31 pm

    I tried it locally and I believe it might be related to the working directory in the remote machine.

    First, I changed the command as suggested by Swiss:

    Location: /usr/bin/ssh

    Arguments: user@server ~/workspace/testscript.sh

    (Note I didn’t put double quotes since the user/host is one argument and the command to execute is another argument.)

    Try using the following script to print the working directory and then check if no file has been created in the displayed directory:

    testscript.sh source:

    #!/bin/bash
    
    echo "$PWD"
    touch testfile
    
    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a script in remote host which I run as ./test /a/b/c/f and
I'm toying with the idea of adding a remote-run (personal build) for Mercurial ability
I am very new to python and have no idea what I'm doing but
When I attempt to run the following test in IntelliJ IDEA I get the
I am trying to run the Andengine examples in the IntelliJ IDEA. I managed
I'd like to run my Spring application using STS, but I have no idea
According to this post , IDEA uses Osmorc to run OSGi frameworks. It, in
I can't understand this... Cannot get this code to run and I've no idea
Currently, I want a remote machine (Amazon EC2 instance) to run a batch file
I'm trying to test an Android app following the instructions here: http://www.jetbrains.com/idea/webhelp/testing-android-applications.html and here

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.