Some of you are probably not going to believe this, but I've been using Linux for like four years and have never used cron for task scheduling before. Now I want to and I'm not sure how to do it. Could somebody link me to some good info? The results of a Google search were kinda confusing.
I have two custom tasks running daily. How do you give priority to one over the other?One of them is configured via the logrotate.conf. The other sits directly in cron.daily.I'd like the one in cron.daily to run after the script that is in logrotate.Please can you advise how to do this...
Anybody knows how to fix overlapping tasks in KDE system taskbar?Here System Monitor overlaps with digiKamWorkaround to rearrange icons - start any new task.Sorry for taking real photo of the screen. When I do PrintScreen KSnapShot task appears in the list and makes all task to rearrange. The resulting screenshot contains already fixed view.
After upgrading from 10.10 to 11.04 all of a sudden, the task manager or task bar, keeps changing length. The individual window "buttons" themselves keep changing size - flashing even, and the space between them also changes. It is driving me nuts! The little system tray(?) icons no longer appear in the system tray, but all stacked on top of each other in the top left corner.
How do you launch a task from a terminal command line interface and it not be kill'ed if you close the terminal window. Like if I run jedit I type jedit & which launches jedit as a backgorund task. But, if I close terminal window, jedit dies to. How do I laucnch jedit and completely divorce it from the terminal task?
I'm running Kubuntu 9.10 (Karmic), and my System Monitor (a.k.a. Task Manager) has stopped working. I had been using the graphical version of the app because it was easier and faster for me to deal with. I know that there is a command line solution for this, but I also know it involves having to know the task number of the program I want to kill (I've got a game that I love to play, but only closes cleanly about 10% of the time). I've posted a couple of screen shots to show the errors... The first one is the error message itself (I have to hit 'OK' on this twice to clear it), and the second one is the resulting empty window of the System Monitor
I have a cron job to run every 15 minutes. The cron job is running per /var/log/cron. It lists the job every 15 minutes.
[Code]...
I do not see any errors. I also looked in /var/log/messages for any errors and it does not list any. I added a line to the script that is running to send an email to me to see if it is running or not. When I run the script from the command line, the script runs without error and I get an email. I have searched and can not find what it going on. Is there some where else errors might be? Could there be a permission issue? The cron job is not being added by the root user.
I'm running cygwin 1.7 on a vanilla win2k3 r2 server. I've put together a simple crontab that I'll paste in her in a sec. The crontab entries call several shell scripts that do either scp's or rsync's from linux servers to this win2k3 box under cygwin.
The problem is that the scripts work and run fine from the commandline. Just not when called from the crontab. I'm running from the root equivalent administrator UID. The crontab log files are empty of errors.
crontab is:
Like I said, the scripts execute fine from the command line.
I run a Fedora 9 server at home, to host an "old school" MOO.To back up the database, I scheduled a cron job - and got some help with the script.I don't fiddle with stuff on the server much, because I don't really have a clue - leave well enough alone.But now I'm without backups. (I'd prefer to get this working, as it seemed pretty simple, and worked well for so long).
It is little weird now that cron job is not working as i have set. I have set weekly job to send email but i am receiving multiple emails daily. Below is my code; # sends email every monday at 4:00 am 00 04 * * 1 /usr/bin/ruby /home/mbm/www/current/script/runner /home/mbm/www/current/app/models/add_to_delayed_job.rb -e production
00 -> Minutes 04 -> Hours (0-24) 1 -> Days / 0-6 / Sun - Sat
Sending email is fine but the time is not working so far as set.
I'm creating a script all worked fine in the command line. But not work in the cron. Below you could see the script
[Code]...
So far I found when I use corn following part not working, nothing goes to the processedfiles file. ls -l /var/lct/mou2/processed | grep $TODAY | awk '{print " " $8}' > /home/trans/mou/processedfiles ls -l /var/lct/mou2/processed | grep $YESTERDAY | awk '{print " " $8}' >> /home/trans/mou/processedfiles This work perfect in command line. Corn job and command line use by the same user.
I've read a lot on how to setup a task in crontab. I think I understand how to edit the file, but when I try to save the changes, it says "no crontab for xxx." Then it says that it cannot create a new crontab. I have ubuntu desktop 9 running as a webserver. I've read the details in these posts and it isn't helping.
I make a script to automate burning backup files on dvd. It works fine if I start it from root user, but if I start it. From cronjob do noting. I try on growisofs the option -use-the-force-luke=force but nothing happens. I check the env of cron:
HOME=/root LOGNAME=root PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin PWD=/root SHELL=/bin/bash SHLVL=1 XDG_SESSION_COOKIE=3e0d70f7b71074a0b1fff4bb4aa97d13-1281297181.926502-724038309 _=/usr/bin/env and it seems ok i've got my script in /usr/local/bin and growisofs in /usr/bin
Code of my script below: #!/bin/bash bkup_path='/bkrepo/'; prefix='PAR*'; totdimfile=0 for FILE in $(/bin/ls -r $bkup_path$prefix)
do dimfile=`/bin/ls -l $FILE | /usr/bin/awk -F " " '{print $5}' ` let "totdimfile += dimfile"; if [ "$totdimfile" -lt "4700000000" ] then NAMEFILE=`/bin/ls -l $FILE | /usr/bin/awk -F " " '{print $8}' ` ALLNAMEFILE="$ALLNAMEFILE $NAMEFILE"; fi done
/usr/bin/growisofs -use-the-force-luke=force -Z /dev/scd0 -R -J $ALLNAMEFILE /usr/bin/growisofs -M /dev/scd0=/dev/zero /usr/bin/eject end code of my script
How to schedule a job using cron that shouldn't run between working hrs 9am-5pm, while run in non working hrs every hour, every day of the month, month & week.I tried the following way, not sure I can use logical not operator(!).
Got a small problem, I'm trying to schedule a script to run every Thursday at midday and the scheduled tasks application on Ubuntu doesn't seem to work. The script is fine when I run it from a terminal.I have zero experience using cron at the command line, can anyone tell me what I should do?
I am new to Linux and have done an install of Moodle 1.9.8 on Linux OpenSuse 11.0
I have created my cron via the terminal (crontab -e) root crontab - see below:
When going to /var/log/messages my cron entries appear as they should but my backup does not run and every morning when I go to the Notifications tab it tells me my crom maintenance script has not run in 24hours.
I would also like to get this in a log file and emailed to me.
I have my task list in evolution (mainly so it can sync with my phone and online task list) but I always forget to look at the task list. Is there an application or plugin which periodically displays the contents of the tasklist or even better, it briefly displays the most urgent/important tasks when I login? Or anything else which automatically displays the most important tasks. Currently I have to open the task list and look at them (which I usually forget). I do not mean some kind of alarm when the task is due but more a daily reminder of what to do.
The question - before searching and reading - was "how is it done? (see subject)"The question now is - "am I interpreting it correctly?"It seems that basically 3 things need to be done:place a copy of the startup script in /etc/init.d;in rc?.d, define symbolic links to the startup script run chkconfig or insserv to activate the script.
when i start my skype account after login, I minimize and on the task bar appear the Icon , but few minute after, the icon disappear from the task bar. If I check the process (wy typing ps -aux | grep skype) i found the process of skype, but I'm unable to get it in foreground (nor with alt-tab key. I was unable to see the skype icon).so every time I have to kill the process ad start it again.
We have several systems (DELL-Server PowerEdgde) installed with Debian Jessie 8.4 (physical server and VM) and if the server has big Disk I/O (copy, backup with Backup Exec) the VMs freeze.
Console output: [168960.072192] INFO: task jbd2/xvda2-8:139 blocked for more than 120 seconds. [168960.072209] Not tainted 3.16.0-4-amd64 #1 [168960.072213] "echo 0 > /proc/sys/kernel/hung_task_timeout_secs" disables this message. [168960.072220] jbd2/xvda2-8 D ffff8803e72946e8 0 139 2 0x00000000
[code]....
The system installed: Linux version 3.16.0-4-amd64 (debian-kernel@lists.debian.org) (gcc version 4.8.4 (Debian 4.8.4-1) ) #1 SMP Debian 3.16.7-ckt25-1 (2016-03-06)
I installed Jessie with ext4 and ext3, same error!
BUILD FAILED /root/dawndusk/times_build.xml:25: Unable to create javax script engine for jython at org.apache.tools.ant.util.optional.JavaxScriptRunner.evaluateScript(JavaxScriptRunner.java:86) at org.apache.tools.ant.util.optional.JavaxScriptRunner.executeScript(JavaxScriptRunner.java:69)
I have ant-optional installed. Do I need to register specific languages?
Apache Ant version 1.8.0 compiled on February 20 2010
The back.sh script is being run as user basil, whcih means that when it comes to copying the backup file to the target location you do not have the correct permissions to access the contents of the directory (it is rwx by root only).So, what do we do? Hoping it is ONLY the directory permissions which are fouling things up we have a range of options which, in not particular order of 'good', include:
a) change ownership/permission on target directory. b) have the back.sh script run by the root user c) set up sudo to permit the file copy to be done by root d) use setuid on the back.sh to have it run, effectively, as root
A lot of the answer will depend upon what else the Dropbox directory is for. If it's JUST for your backups for this then I'd be inclined to:
which will permit the basil user full access and thus allow the file operations being done and give root access via the group permissions (not that the root user really needs this).Also, I'd be inclined to: