0

I made a bash script for Ubuntu server with C-style if-then clause if (( $var = 6 )). It works perfectly from command line, but stuck when I made cronjob for this script. I changed it to if [ $var -gt 6 ] and then cron began to work. I assume that cron uses different shell, but what type and what other differences with bash?

Untitled
  • 21
  • 6

0 Answers0