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?
            Asked
            
        
        
            Active
            
        
            Viewed 49 times
        
    0
            
            
         
    
    
        Untitled
        
- 21
- 6
- 
                    Your question is better suited to [Ask Ubuntu](http://askubuntu.com/tour). – Cyrus Jul 16 '22 at 07:26
- 
                    The `cron` manual documents this quite clearly. – tripleee Jul 16 '22 at 07:42