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

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 20, 20262026-05-20T11:04:46+00:00 2026-05-20T11:04:46+00:00

I run a script which calls another script through a ssh connection. My script

  • 0

I run a script which calls another script through a ssh connection.

My script executes the following command:

ssh $cluster "bash $create 2 2 $parts"

where $cluster is the ssh string and $create is the absolute path of the bash script on the target machine. I run ssh $cluster "mkdir $serialized/$number" a few lines earlier, which works just fine.

However this command returns me:

bash: /data/.../create.bash 1 2 8: No such file or directory

The file is on the machine and I can execute the command there, but I can’t figure out how to do it from within of a script over ssh. I tried different command, always receive this exception.

Thanks for your help!

  • 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-20T11:04:46+00:00Added an answer on May 20, 2026 at 11:04 am

    Generally you shouldn’t need to call bash in the first place. Even if the shell used by the remote machine isn’t bash by default, you should set up the create.bash script such that the top of it looks like:

      #!/bin/bash
    

    and it’ll already invoke bash.

    Other things to consider:

    1. put in the full path to bash in case the path is problematic.

    2. make sure bash exists on the remote host, otherwise try ‘sh’ instead.

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

Sidebar

Related Questions

I am writing a bash script that calls some apps that run in their
I've created a script that uses psexec to call another script which calls psexec
I have a python script which uses subprocess.Popen to run multiple instances of another
I have a script which will be run interactively by non-technical users. The script
I want to write a script which cleans the 'run' dialogue automatically every log
Hi I have a shell script which should run based on the return of
I have a VBS script which I need to run on a monthly basis
I would like to be able to run a nose test script which accepts
I want to run a standalone ruby script in which I need my RoR
A colleague has a batch script program which needs to to run on a

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.