I run a encrypted shell script through crontab, while checking for process of script through ps -ef | grep script_name it is showing process along with script code in plain text
# ps -ef | grep test_script.x
root 5134 2901 0 12:16 pts/3 00:00:00 ./test_script.x -c
#!/bin/bash if [ `echo $?` == 0 ]; then echo "This is my test script" apt-get update else echo "This is end test script" fi sleep 3 ./test_script.x
root 5164 15802 0 12:16 pts/0 00:00:00 grep --color=auto test_script.x
0 Answers