Code Monkey home page Code Monkey logo

Comments (3)

neurobin avatar neurobin commented on August 28, 2024

This is a test:

$ cat >script1
#!/bin/bash
echo running script 2
./script2.x
$ cat >script2
#!/bin/bash
echo this is script 2
$ shc -f script1
$ shc -f script2
$ ./script1.x
running script 2
this is script 2
  • Make sure the path is correct
  • If it's in the same directory, make sure you use ./script.x not just script.x

from shc.

syamalach avatar syamalach commented on August 28, 2024

Thanks for your comment, i will add more detail of my question,here i am not directly calling one script from other but i am calling function in one script in another by importing one in another using source. please find my detailed script and question below
http://stackoverflow.com/questions/38568553/unable-to-run-shell-script-compiler-binary-which-having-dependency-internally-wi

from shc.

neurobin avatar neurobin commented on August 28, 2024

You can not source binary files. If you want to source it, you will need to source it as a normal script which is a text file i.e compile only one an keep the other as it is.

from shc.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.