Comments (3)
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 justscript.x
from shc.
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.
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)
- There is no shc file and ./configure gives error HOT 1
- Compiling jq and its /usr/lib dependencies into single executable
- Release page doesn't contain compiled binary HOT 2
- Use environment commands HOT 1
- SHC binary having problems with jailed user HOT 2
- Is a compiled binary faster than the original script? HOT 1
- confused.
- Compile on arm64 for Intel X86_64 HOT 1
- /bin/csh: Event not found. HOT 2
- the -H argument compatibility
- Argument list too long (maybe caused by a bunch of commented lines) HOT 6
- Unable to run the compiled script on CheckPoint GAIA which is Red Had based
- executable does not run again following reboot HOT 3
- Pipes instead of command line and random locks HOT 5
- All Shellcommands are visible in the processlist HOT 4
- LeakSanitizer: detected memory leaks HOT 1
- Checksum of compiled output changes even if input is exactly the same
- Compiled shc not working on M2 Pro CPU HOT 2
- After using the shc 4.0.3 encrypted shell script in Centos7, running the encrypted script and using ps ax can reveal the source code HOT 2
- pollution of ps / top HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from shc.