Slackware :: Setup A Cron Job Using Crontab Entry
May 31, 2010
I am trying to setup a cron job using crontab entry like this 6,16,26,36,46,56 * * * * /usr/bin/fetchmail -k>/dev/null 2>&1 But nothing is happening This is the first time I have attempted using cron as I have settup mutt for my email which is now working great but I would like to have the mail collected every 10 mins The file is saved as mailcron in my /home folder. When i run crontab -l its listed ok but no mail is appearing in mutt.
View 10 Replies
ADVERTISEMENT
Jun 23, 2011
is it possible disabling a crontab job without deleting the crontab description entry (by crontab -e)?I could also accept to change the entry itself. Now it's:0 0 * * 0-6 /home/me/cron/script.csh
View 4 Replies
View Related
Dec 3, 2010
I'm running a Slackware64 13.0 machine with the following line at the end of crontab -e:
Code:
@reboot rm -rf /tmp/*
Yet /tmp is not clearing.
This exact same setup is working fine for me on two 13.1 boxes and a -current machine; what gives?
View 5 Replies
View Related
Jul 21, 2011
I was trying to write a crontab entry using "crontab -e"
Code:
0 0 * * * cp /var/log/httpd/domains/mydomain.net.log
/home/admin/logs/mydomain.net.log
crontab is giving me this error:
Code:
"/tmp/crontab.XXXXfMOnRS":2: bad minute
errors in crontab file, can't install.
I've tried a dozen different values for the minute, but it's still giving me the same error.
View 5 Replies
View Related
Jun 14, 2010
I just install F-prot software on my Fedora 13. The following entry was added to /etc/crontab16 * * * * <user> /home/<user>/Desktop/f-prot/fpupdate > /dev/null.I tried to use "crontab -e" or "-l" but unable to edit the crontab.
View 7 Replies
View Related
Feb 16, 2010
I have set up a cron in /var/spool/cron/root
*/15 * * * * /usr/bin/phplist.sh
I can see in /var/log/cron that it is running every 15 minutes but it has no effect. It is not doing the commands in the bash script.
If I run /usr/bin/phplist.sh right in the shell it works great.
View 3 Replies
View Related
Feb 19, 2011
I've commented out a line in the crontab on a debian server, which I guess was there by default yet was causing me to get error emails every hour:
# m h dom mon dow user command
17 * * * * root cd / && run-parts --report /etc/cron.hourly
However, the error emails keep coming in as if it hasn't been commented out. The error emails:
Subject: Cron <root@(none)> root cd / && run-parts --report /etc/cron.hourly (failed)
/bin/sh: root: not found
View 2 Replies
View Related
Apr 26, 2011
SHELL=/bin/sh
PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
# m h dom mon dow user command
[code]...
View 7 Replies
View Related
Mar 19, 2011
I am trying to have the files from /user/directory copy every hour to /backup/user/directory. It would seem that cron or crontab is what I need to use. Looking at previous posts and other documentation only shows how much I don't know. When I type crontab -e I get a blank file I can type into, seemingly using vi as the editor. I have no problem with that but when I type cron -l, I get my text after a message about "Do Not Edit this File". What I am reading just makes no sense, I am not understanding even the most fundamental aspects of cron or crontab. Where I can get the most basic of basic instructions to try to understand this function?
View 4 Replies
View Related
Nov 21, 2010
I am trying to run rsnapshot from cron via root's crontab file (crontab -e). If I run rsnapshot from the command line with sudo it works perfectly, however, if I run it from cron:
Code:
* * * * * /usr/bin/rsnapshot hourly >/tmp/crontab.out 2>/tmp/crontab.err
This does not work. The crontab.err file shows:
[Code]....
View 2 Replies
View Related
Oct 14, 2010
I have a requirement that a job run at a particular time every other Friday. I was wondering if I can configure cron to do this - perhaps using the /step feature? For example, can I do the following?
0 21 * * 5/2 /my/command
If this works, how does it decide when to begin skipping? In other words, where is the first Friday? Is it the first Friday of the Year? of the Month? I would just try it, but it would be an awful long time to wait to see whether or not it is working.
View 1 Replies
View Related
Jun 28, 2011
I run a virtual server with a standard minimal openSUSE 11.4 installation (Strato image) and all recent updates installed.
Code:
$ uname -a
Linux servername 2.6.18-028stab089.1 #1 SMP Thu Apr 14 13:46:04 MSD 2011 i686 athlon i386 GNU/Linux
A few days into running the server I found that although /usr/sbin/cron was running it didn't execute the cron scripts. Instead, I find this:
Code:
$ tail -n 3 /var/log/messages
Jun 28 18:00:01 servername /usr/sbin/cron[28590]: pam_warn(crond:session): function=[pam_sm_open_session] service=[crond] terminal=[cron] user=[root] ruser=[<unknown>] rhost=[<unknown>]
Jun 28 18:00:01 servername /usr/sbin/cron[28590]: (root) PAM ERROR (Cannot make/remove an entry for the specified session)
Jun 28 18:00:01 servername /usr/sbin/cron[28590]: (root) FAILED to open PAM security session (Cannot make/remove an entry for the specified session) repeated every 20 minutes.
I have this:
Code:
$ cat /etc/pam.d/crond
# The PAM configuration file for the cron daemon
# No PAM authentication called, auth modules not needed
auth sufficient pam_rootok.so
account sufficient pam_listfile.so item=user sense=allow file=/etc/cron.allow onerr=succeed quiet
auth include common-auth
account include common-account
password include common-password
As per the standard installation and /etc/cron.allow doesn't exist (I tested if it made a difference if it existed with the single line root in it, but there was no effect). I need cron to execute because I want zypper to auto-update my server. On my home openSUSE 11.4 installation the problem doesn't exist. Is it perhaps related to the settings in the yast security center?
View 9 Replies
View Related
Oct 4, 2010
I have the following cron entry but it doesn't seem to be running:
Code:
The script does exist. And so does the directory /home/usr/log and writable. /var/log/syslog only has a bunch of these:
Code:
I don't see any file gets written to the log directory. That suggests to me that cron didn't run the job, as confirmed by /var/log/syslog.
View 9 Replies
View Related
Apr 27, 2010
I am using Linux 64 bit Redhat Linux. I am trying to setup simple crontab as follow...1. Edited crontab file using crontab -e2. Listed the file once to verify it using crontab -l. This will display as.. 18 5 * * 2-3 ksh $HOME/testScript.sh > $HOME/testscript.out3. Logged in a root and restarted cron deamon using "/etc/init.d/crond restart"As per my understanding now my testScript should start running at 5:18 am Thuesday
View 3 Replies
View Related
Aug 13, 2010
I used to get the below when I ran crontab, but now its disappeared and my tasks I set up do not run in the blank crontab
#lxpr weekly cron job - Kickstart generated entry
0 1 * * 0 /opt/lxpr/lxpr -st /var/lxpr
#lxpr monthly job to clear down old dumps - Kickstart generated entry
0 1 28 * * find /var/lxpr -name "lxpr.`uname -n`*" -type d -a -mtime +30 -exec /bin/rm -r {} ;
View 5 Replies
View Related
Jan 24, 2010
I'm trying to take my current windows7 (x64) setup and make it into a dual-boot setup with slackware 13.0 (x32) and am hitting a brickwall. I guess I would like to know if I can salvage the situation without formating my windows drive. I fully intend to, but I had hoped to not do it this month. I'd like to get dual boot going so I can master it and acquire all the files/drivers I'll want and then format and do it 100% right next time.
Currently I have windows setup on a 3x 500gb Raid0 onboard array which itself has been flawless. After I shrunk my current partition size to give me about 25gb of free space I proceeded to setup Linux, and I was unable to perform the cfdisk portion for partitioning the array for Linux.
I tried using cfdisk:
/dev/hdx (a1-a3,b1-b3)
/dev/sdx (a1-a3,b1-b3)
I even attempted to locate with: cat proc/partition and tried using cfdisk on every device it located. It always said it was either an unknown partition table and should I start at zero, or bad partition. I was of course too concerned over my windows setup (which has almost 1tb of stuff I have not backed up) to go any further into the unknown.
PS: I have used Slackware before, back at 8.1, 10, and even a very brief interlude at 12.0, this is my first attempt on this computer however with 13.0, it is currently running fine on my laptop and my PS3 (Laptop is even dual booting 7/Slack13. Albeit without raid)
Phenom 9850
M2N-SLI Deluxe (Nvidia AM2)
4x1gb of 1066 kingston hyperX
3x500gb WD Caviar Black Sata2 3.0
View 3 Replies
View Related
Dec 19, 2009
I am trying to set up an alarm via crontab. I can play music by "/usr/local/bin/mp3blaster /home/burak/Desktop/kemannnnn.mp3" command on terminal. However when I wrote this line in crontab it doesn't play:
04 19 * * * root /usr/local/bin/mp3blaster /home/burak/Desktop/kemannnnn.mp3
View 5 Replies
View Related
Jan 14, 2010
My problem is this, I decided to try Pardus since I had the disk space available and learned that it never created a entry for Ubuntu 9.10 64-Bit. I have tried many different boot options and have only gotten it to show the first black and white bootsplash but never can continue to boot. Is there a option I am forgetting to add via Pardus's GRUB editor or is it something else?
View 3 Replies
View Related
Jun 15, 2011
I've setup a cron job to run every day at 13:00. When I run it manually it works but with the cron it doesn't
this is the log:
Code:
Jun 14 13:00:01 testserver CRON[5662]: (scialom) CMD (lynx http://www.something.com/sms_reminder.php # JOB_ID_4)
Jun 14 13:00:02 testserver CRON[5661]: (CRON) info (No MTA installed, discarding output)
Jun 14 13:00:08 testserver dhclient: DHCPREQUEST of 10.0.0.6 on eth0 to 10.0.0.138 port 67
Jun 14 13:01:14 testserver dhclient: last message repeated 4 times
View 2 Replies
View Related
Jun 20, 2010
I am trying to set up my Ubuntu 10.04 netbook to see my WinXP desktop's files and vice a versa. I followed the steps in this tutorial thread: HOWTO: Setup Samba peer-to-peer with Windows. I got as far as "Time to add yourself as an samba user." at this point I keep getting the following error:
Code:
sudo smbpasswd -L -a WinXP_User_Name
New SMB password:
Retype new SMB password:
Failed to add entry for user WinXP_User_Name.
My WinXP machine has no password.
My conf file is here:
[global]
; General server settings
; netbios name = WinXP_Computer_Name
server string =
; workgroup = WinXP_WorkStation_Name
announce version = 5.0
socket options = TCP_NODELAY IPTOS_LOWDELAY SO_KEEPALIVE SO_RCVBUF=8192 SO_SNDBUF=8192
passdb backend = tdbsam
security = user .....
View 9 Replies
View Related
Oct 30, 2009
Just installed Fedora 11. Like to setup cron job to update everthing on a regular basis. any examples?.
View 4 Replies
View Related
Oct 24, 2010
I was accessing my box externally (ssh) and accidentally deleted my crontab. I never used crontab before and issued the command "crontab -d" instead of "crontab -e" to edit and add my cronjobpretty useless because I had no back up of my crontab of course First question, is there going to be any direct issue on my box because of the crontab being erased ? (I am assuming so but do not know what type of problems..) Lastly, would I be lucky enough so that there is a way to recover my crontab ? (having gone through Google and whatnote, I doubt it)
View 10 Replies
View Related
Jun 7, 2010
I'm trying to setup a cron with screen. the purpose of running screen is because i want to resume to see the status of the job while it is running. anyone can enlighten me how i should setup my cron. I've tested with
00 14 * * * screen [command]
but the cron doesn't create a new screen.
View 4 Replies
View Related
Jun 10, 2010
I'm trying to set up a simple backup script with cron.
In "crontab -e" (and sudo crontab-e - I tried both) I enter "0 22 * * * /home/USERNAME/.backup.sh", with the hope that it will run the script at 10pm each day. The srcipt work fine if I run in a terminal. why it won't work? It's bound to be something obvious....
View 5 Replies
View Related
May 8, 2010
How can I cron jobs for less than a minute for example configuring cron job to do something for each 15 seconds.
View 4 Replies
View Related
Dec 28, 2010
I have this Maxtor USB external HDD which I mount via dolphin-hal when needed. This HDD has a built in feature to 'sleep' if not used for some time, say 20 min. Now I don't want it to sleep because it irritates me to wait everytime for it to be active for use, so I figured crontab job should fulfill my requirement.
*Edit: I think a script needs to be executed every 15 minutes. The script has to do the following(I think):
Check to see if HDD is conected via USB:
If YES then - Do the below things
If NO - Do nothing
"Below Things":
Check if the ext4 fs is mounted on media/Maxtor-C; if yes then check if any file operation is being performed; if yes-do nothing, if no then write and remove an empty file. if hdd is connected but not mounted then hdparm -z /dev/sdxx (read partitions)
View 7 Replies
View Related
Jun 30, 2010
I'm currently dual-booting slack 13.0 and ubuntu 10.04 When slack was originally installed, I had an earlier version of ubuntu on it, and lilo did not pick up the ubuntu. At that time, I didn't care, because I had no use for the 'old' ubuntu. When I installed ubuntu 10.04, the boot config file (/boot/grub/grub.cfg) did include an entry for slackware. Great! I am looking forward to upgrading slack to 13.1, but I want to make sure this time that I can also boot ubuntu, should I need to use it.
1)Slack installation instructions that would enable me to include the other distro in the initial install
2)Instructions on how to edit andprocess lilo.conf after the slack What follows is a dump of df from the ubunutu 'side'..
Code:
tim@bart:~$ df
Filesystem 1K-blocks Used Available Use% Mounted on
/dev/sda6 52866604 6227476 43953640 13% /
none 1478976 300 1478676 1% /dev
[code]....
View 14 Replies
View Related
Feb 2, 2011
I have a new server with AMD Opteron (first time, other server has intel) and slackware 13.1 32 bit installed.
kvm (qemu-system-x86_64) did not start with this error:
kvm: vm entry failed with error 0xffffffff
kvm_run returned -22
Got new kernel from slackcurrent (2.6.35.10) and rebuild qemu tools (qemu-kvm from SlackBuild).
Now kvm starts but I have another issue:
The virtual machine (I take a working image from another server) starts, shows the initial lilo message, "Loading linux ....", "BIOS data check succesfull ..." and then hungs with a black screen.
The command line is:
/usr/bin/qemu-system-x86_64 -hda /tmp/elezioni-ter.qcow2 -m 512 -localtime -k it -vnc 10.2.0.39:1
If I add the '-no-kvm' at the command line the vm boots ok.
View 14 Replies
View Related
Nov 17, 2010
I am trying to use streamer to set up a cron job to take a picture with my webcam once/minute. The image that it is capturing is too dark - does anyone know a way to lighten it? I am capturing the image as JPEG.
View 3 Replies
View Related
Sep 1, 2011
If I wanted to schedule a perl script to run every weekday at 1800 hours, should I setup a cron job. once I do so, if I want to cancel it, how do I undo it. Do I have to just type this at the shell prompt to set up:
Code:
0 18 * * 1-5 root /home/test.pl
View 9 Replies
View Related