For Example: Compile my 4os-update.sh file to /usr/bin/4os-update.x (Termianl --> sudo 4os-update)
Using binary executable files will make sure that no changes have been made to script downloaded from official source.
Thanks for your help,
Bobby
This is what I tried but it failed:
installed shc package & libc6-dev
sudo apt-get install libc6-dev
sudo apt-get install shc
===================
created bash script to run apt-get update --> 4os-update.sh
sudo nano 4os-update.sh
#!/bin/bash
# launch apt-get-update
sudo apt-get update
clear
exit
===================
use shc to try and compile bash shell file to an executable
shc -T -f script.sh
============ERROR========
sh: 1: cc: not found
shc: Success
==========================
The C file was created but, the *.x file is missing.
bobby@q4osdev:~/Documents/shcdev$ ls
4os-update.sh 4os-update.sh.x.c