shc
shc copied to clipboard
Argument list too long: /bin/bash
I am getting the warning that call sysconf(_SC_ARG_MAX) returns -1 bytes when ARG_MAX is 4611686018427387903. My script is is 133040 bytes length and its not running.
Hey, could you post the output of getconf -a | grep LONG
please.
Hi, I also had a problem with the script size 230790 bytes.
./myscript.bin: Argument list too long: / bin / bash
$ lsb_release -a No LSB modules are available. Distributor ID: Debian Description: Debian GNU/Linux 9.6 (stretch) Release: 9.6 Codename: stretch
$ getconf -a | grep LONG LONG_BIT 64 ULONG_MAX 18446744073709551615
What is the reason for this error and how can it be corrected?
Hey, could you post the output of
getconf -a | grep LONG
please.
Hello there,
Sorry I didn't see you requested, here it is the output:
LONG_BIT 64 ULONG_MAX 18446744073709551615
Hi, I have the similar problem.
If I run the shell, its OK. after compile using shc ./shc -r -T -f xxxx.sh
Argument list too long: /bin/ksh
[root@db1 shc-3.8.9b]# getconf -a | grep LONG LONG_BIT 64 ULONG_MAX 18446744073709551615
Any workaround?
with strace,
execve("/bin/ksh", ["xxxxxxxx"..., "-c", " "..., "xxxxxxxxxx/"...], [/* 27 vars */]) = -1 E2BIG (Argument list too long)
@ramivis
Hi,
Did anyone get a workaround on this?
Solution is the pending https://github.com/neurobin/shc/issues/51
Did this every get resolved ? I have the same issue.
shc have limit size with text that can obfuscate.
I am struggling with this one too. Any help would be much appreciated.
@htpcBeginner Take a look at my variant which uses pipe instead of command line: https://github.com/liberize/ssc