Home > other > Setting up crontab

Setting up crontab

December 18Hits:1

Hi guys.

First post and first VPS installation over the weekend ever! Stuck in a few places, appreciate the help.

1. I type in crontab -e via Putty and get to my cron file, I am able to paste the link that I want. However, no way that I can save the info. I have tried Ctrl + X as well as :q type stuff. Can anyone tell me what is wrong?

Apologies if this is in the wrong location.


Thanks a lot. This is fixed Setting up crontab


Related Articles

  • Unix Crontab Job Time Conflict? May 8

    This question already has an answer here: Why is my crontab not working, and how can I troubleshoot it? 3 answers I have the following two entries in my Crontab job that are set to start at 10:00am. Job #1 0,20 10 * * 1-5 ./run_program_A Job #2 0,20

  • Making a crontab more efficientMay 8

    I run a relatively simple server with a couple of web sites that I maintain. I set up a crontab to dump the mysql and zip up the PHP daily. Rotating over a week I have 7 increments of whatever has been going on. I then use the same crontab to copy th

  • the error occured a command in sudo from crontabMay 27

    When I execute shell, but it is carried out by cron "sudo: sorry, you must have a tty to run sudo" appears. but how should this have dealt? --------------Solutions------------- You don't need sudo to run programs as other users in cron (at least

  • Change default crontab editor to nano in FreeBSDJune 4

    When I edit the crontab using crontab -e it opens the crontab in vi. I'd prefer it to use nano. How can I change this? EDIT: For some reason the export command returns command not found. And changing the EDITOR env value didn't work for crontab -e. T

  • Override MAILTO for a single crontab entryJune 29

    We have a role account at work that has a pretty big crontab. Its MAILTO is pointed at a shared address, so that a number of us get notified if something fails. I'd like to add an entry to this crontab, but I only want myself to be notified if someth

  • Using Crontab to tar a directory at a regular intervalJune 30

    I want to tar a directory at a regular interval (say every morning at 4am) so I was planning on using crontab. How can I have the date be in the filename ie srcdirectorybackup5-30-09.tar so that I can differentiate between all of the tar files. -----

  • crontab ifconfig outputting nothingJuly 7

    /home/myname/bin/script: #!/bin/bash ifconfig > /home/myname/foo Crontab: * * * * * /home/myname/bin/script ...waits 1 minute... @@ 11:35:51 [[email protected] - ~]$ ls foo -rw-r--r-- 1 myname myname 0 Jul 7 11:35 foo @@ 11:35:55 [[email protected] - ~]$ I can't

  • Difference between using crontab and /etc/cron.hourly,daily,weeklyJuly 9

    I have a scheduled script that does an hourly svnsync backup of our Subversion repositories. I was running it from an entry in the root crontab without problems, but decided I'd like to run it from /etc/cron.hourly instead for extra visibility (and b

  • crontab for mysql database cleanup and backupJuly 10

    On my OpenBSD box I have the following crontab for user _mysql 0 4 * * * /backup/mysql_backup/mysql_backup.sh 0 9 * * 1 mysql -uroot -pMySQLpassword -e "purge master logs before date_sub(now(),interval 5 day);" The first was aimed at backing up

  • Disable crontab mailJuly 16

    By default, crontab on, for example, Debian, will mail any output of a job in your crontab to that user. How would one go about disabling this functionality? --------------Solutions------------- There are two main ways of doing this, as I discovered.

  • Is there a way to validate /etc/crontab's format?July 21

    I prefer to stick scheduled tasks in /etc/crontab so I can see at a glance what's scheduled to run, regardless of which user the task runs as. The only gotcha is that the format isn't validated on save, unlike crontab -e -- so a stray character can q

  • crontab to wake osx from sleepJuly 29

    I have a crontab which will launch a certain program early in the morning (after I have gone to sleep) and close it again later in the morning (before I wake up). But my iMac will not execute the crontab script while it is asleep. I see there is some

  • Crontab running when it pleases (fixed.. in a way)August 6

    I have the following line in the crontab: */30 * * * * /usr/bin/php /home/antoniocs/phpscripts/update-noip/update-noip.php This script updates my no-ip account. It also writes to a log file saying what it did and did not due. This is today's log file

  • Job scheduling using crontab, what will happen when computer is shutdown during that time?August 10

    I schedule some tasks using crontab. What will happen if my computer is shutdown or turned off during the time when cron was scheduled to do something? Does each missed cron job run after computer is turned on, or are missed jobs for that day ignored

  • How to set crontab using command prompt?August 18

    How to set cronjob/crontab in server using command prompt. Give sample command or sample links. --------------Solutions------------- crontab -e edit crontab interactively with your default editor crontab <file> replace crontab with contents of given

  • Fedora Crontab ChangesSeptember 2

    When I make a change to the /etc/crontab file, what service do I need to reload/restart in order for the changes to take effect? service crond restart doesn't work. "crond: unrecognized service" --------------Solutions------------- Looks like yo

  • crontab not running on VirtualBox unless I'm logged inSeptember 3

    I am running Ubuntu Server 9.04 in VirtualBox on my work PC as a development environment. I have some scripts that I've put in my user's crontab that run throughout the day while I'm SSHed into the VM. Last night, I closed PuTTy and all of my other r

  • crontab: login name too longSeptember 9

    When I try to edit do crontab for a user with a long username on solaris 10 I get this error: crontab: login name too long Is this a known problem and is there a solution for it (without changing the username)? The username is 27 characters long. ---

  • Are there any good crontab syntax checkers, or entry tools? September 23

    Recently a user on one of our systems (linux Ubuntu, but any *nix would be the same) had a crontab file missing a terminating newline. It is common for *nix configuration files to require that terminating newline, cron being no different. However, no

  • Running a crontab command on every 59th secondOctober 1

    What is the most convenient way of setting a crontab command to run every 59th second, other than running a sleep 59 in the beginning of my script? If there are no other suggestions, will executing sleep 59 delay all my other cron entries scheduled f

Copyright (C) 2018 ceus-now.com, All Rights Reserved. webmaster#ceus-now.com 14 q. 0.318 s.