I tried to convert shell script to binary using shc that I installed with ports.
When I execute the script, it is immediately killed.
Content of test.sh:
Any help would be appreciated. Thanks
When I execute the script, it is immediately killed.
Code:
$ shc -f /test.sh
$ ldd /test.x
/test.x:
libc.so.7 => /lib/libc.so.7 (0x2808f000)
$ file /test.x
/test.x: ELF 32-bit LSB executable, Intel 80386, version 1 (FreeBSD), dynamically linked (uses shared libs), for FreeBSD 8.0 (800107), stripped
Content of test.sh:
Code:
#!/bin/sh
echo "wow" >/file ;
cat /file;
Any help would be appreciated. Thanks