View Crontab script

Need help installing PHP, configuring a script, or configuring a server? Then come on in and post your questions! We'll try to help the best we can!

Moderator: General Moderators

Post Reply
loveccb
Forum Newbie
Posts: 10
Joined: Wed Jul 05, 2006 6:48 pm

View Crontab script

Post 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!
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post 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
User avatar
Weirdan
Moderator
Posts: 5978
Joined: Mon Nov 03, 2003 6:13 pm
Location: Odessa, Ukraine

Post by Weirdan »

You'd better use

Code: Select all

crontab -e
loveccb
Forum Newbie
Posts: 10
Joined: Wed Jul 05, 2006 6:48 pm

Post by loveccb »

Excellent! Thank you gentlemen.
Post Reply