-bash: crontab: command not found WebSSH Linux

Aleksandar Simovic 51 Reputation points
2023-02-03T13:19:36.55+00:00

Hello all,

I have problem with cron commands in web ssh interface in azure linux service, I have created script file with following content in it:

root@70a166323001:/home# cat customstart.sh

#!/bin/bash

apt-get update

apt-get install rsync -y

apt-get install mysql-server

apt-get install sshpass

apt-get install cron -yqq

/usr/sbin/apache2ctl -D FOREGROUND

root@70a166323001:/home#

When i save configuration i and when I try for example ssh or rsync commands it works, but when i try crontab -e i am getting -bash: crontab: command not found error.

Any advice? I dont know what more to try.

Thanks in advance :)

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
35,993 questions
0 comments No comments
{count} votes