#!/bin/sh
if ps aux | grep telescope | grep -v grep ; then
    exit 0
else
    cd "$1" && php artisan telescope:clear & >> "$1/cron/logs.log" 2>&1;
    exit 0
fi

#!/bin/sh
if ps aux | grep cache | grep -v grep ; then
    exit 0
else
    cd "$1" && php artisan cache:clear & >> "$1/cron/logs.log" 2>&1;
    exit 0
fi

#!/bin/sh
if ps aux | grep cache | grep -v grep ; then
    exit 0
else
    cd "$1" && php artisan cache:clear & >> "$1/cron/logs.log" 2>&1;
    exit 0
fi

#!/bin/sh
if ps aux | grep clear | grep -v grep ; then
    exit 0
else
    cd "$1" && php artisan log:clear & >> "$1/cron/logs.log" 2>&1;
    exit 0
fi

