Page 1 of 1

View Crontab script

Posted: Wed Jul 05, 2006 6:52 pm
by loveccb
Hello, I host my site with a ISP, and I'm trying to view my crontab script that I created via PLESK. I've been told I can do this via SSH but I'm unsure as to how. I've logged into the server as "admin" in SSH but where do I go from here? Thanks for your help!

Posted: Wed Jul 05, 2006 6:59 pm
by Benjamin
try..

Code: Select all

vi /etc/crontab
It should show something like..

Code: Select all

SHELL=/bin/bash
PATH=/sbin:/bin:/usr/sbin:/usr/bin
MAILTO=root
HOME=/

# run-parts
01 * * * * root run-parts /etc/cron.hourly
02 4 * * * root run-parts /etc/cron.daily
22 4 * * 0 root run-parts /etc/cron.weekly
42 4 1 * * root run-parts /etc/cron.monthly

Posted: Wed Jul 05, 2006 7:03 pm
by Weirdan
You'd better use

Code: Select all

crontab -e

Posted: Wed Jul 05, 2006 7:15 pm
by loveccb
Excellent! Thank you gentlemen.