If the mtime shown with ls -l was manipulated, ls -lc will show it (it shows the ctime, the last change of the attributes).
Thanks MadeInGermany.
Thats is the issue. Some process creates the file with date of 1 day ago but is created or modified in all cases the nex day.
This is for the last 5 file
So I think the solution is to change the hour for cron job to run after 10:00 am for example.
Many thanks for all the help to all of you!
--- Post updated at 07:01 PM ---
Quote:
Originally Posted by RudiC
I wouldn't a priori assume the files' time stamps be messed around with. Is it possible files are created with correct time stamps but in a different directory, and copied later than 6:00h to your source directory?
Hi RudiC, what you says is probably what is happenning, but I don't know which would be the other directory where files could be created and the copied to the other directory next day.
For now I think running the cron job later would fix the issue.
i have a script that uses an ant build.xml and its targets to pull a project from a cvs server, attempt to build the project, and then email me the results. When I run the script (either @ CLI or as a cron job) while I am logged in, everything works fine. However, if the script is set up to run... (5 Replies)
I have the following crontab entry to run a shell script for every 30 minutes of every day:
30 * * * * $HOME/main.sh > $HOME/main.log 2>$HOME/error.log
after I created the crontab file I have also done:
$crontab my_crontab
I also check to make sure it exists, by using the following... (11 Replies)
hi guys,
i have a problem.
a week ago i made a successful crontab that execute bash scripting daily, it worked well
but now, it doesn't work at all, in the mail i have:
"
/home/jimmy/cha/scripts/cekpderr
produced the following output:
lagi jalan
/home/jimmy/cha/scripts/cekpderr:... (6 Replies)
I have a script running in the crontab that gets data from a database every hour. Now I would like to execute a fortran routine to process the data in some way, after getting it and saving it locally.
I have added the following commands to my script:
set convert =... (1 Reply)
I wrote a script to shutdown the oracle database. The script works fine when I manually run the script. However, when i schedule a job, i get the following error.
Shutting Down cmismart ....................
ORA-01034: ORACLE not available
ORA-27101: shared memory realm does not exist
SVR4... (6 Replies)
Hi all,
I really need your help ASAP on this. Below is the description of my problem and a sketch of Autosys
Job Activity Console
++++++++++++++++++++++++++++++++
File View Options
+++++++++++++++++++++++++++++++
Job Name Description Status Command Machine... (1 Reply)
The .profile file should be read when the user logs in. So, there should be no need to execute .profile file again in a cron job (since the cron job is run after the user logs in). Doesn't the cron require login from the user. Then, from where does the cron execute? Please help!! (1 Reply)
Hi,
I am trying to execute a script (for once) during the booting time in Ubuntu system. However, the result is only showing the strings without without the variables.
Here is the script:
MgrIp=$(ec2-describe-instances --filter tag:Name=Mgr --filter instance-state-name=running | egrep... (4 Replies)
Dear *nix users.
I'm on Mac OS 10.6 / Terminal and try to use crontab to schedule two scripts every 30 minutes and every 41 minutes.
I followed the man instructions and created / installed a crontab file for the current user:crontab -e
with the following content
*/30 * * * *... (4 Replies)
Dear All,
My server is running crontabs of 4 different users.
I want to develop a script that whenever a particular change occurs in a crontab , it is detected and the particular change is noted into a file.
Kindly let me know of suggestions on how it can be achieved.
My algo would be:
... (1 Reply)
Discussion started by: Junaid Subhani
1 Replies
LEARN ABOUT PLAN9
qer
QER(8) System Manager's Manual QER(8)NAME
qer, runq - queues management for spooled files
SYNOPSIS
qer root tag reply args
runq [ -ad ] root cmd
DESCRIPTION
Qer creates a control and a data file in a queue directory. The control file contents consist of the tag, reply, and args separated by
spaces. The data file contains the standard input to qer. The files are created in the directory root/user, where user is the contents of
/dev/user. Mktemp(2) is used to create the actual names of the control and data file.
Runq processes the files queued by qer. Without the -a option, runq processes all requests in the directory root/user, where user is the
contents of /dev/user. With the -a it processes all requests. Each request is processed by executing the command cmd with the contents of
the control file as its arguments, the contents of the data file as its standard input, and standard error appended to the error file
E.XXXXXX.
The action taken by runq depends on the return status of cmd. If cmd returns a null status, the processing is assumed successful and the
control, data, and error files are removed. If cmd returns an error status containing the word the files are left to be reprocessed at a
later time. For any other status, an error message is mailed to the requester and the files are removed. Runq uses the reply field in the
control file as a mail address to which to send an error notification. The notification contains the contents of the control file to iden-
tify the failed request.
To avoid reprocessing files too often, the following algorithm is used: a data file younger than one hour will not be processed if its
error file exists and was last modified within the preceding 10 minutes. A data file older than one hour will not be processed if its
error file exists and was last modified within the preceding hour.
The -d option causes debugging output on standard error describing the progress through the queues.
Runq is often called from cron(8) by an entry such as
0,10,20,30,40,50 * * * * kremvax
runq -a /mail/queue /mail/lib/remotemail
The entry must be a single line; it is folded here only so it fits on the page.
FILES
root/user
queue directory for user
root/user/D.XXXXXX
data file
root/user/C.XXXXXX
control file
root/user/E.XXXXXX
error file
SOURCE
/sys/src/cmd/upas/q
SEE ALSO mail(1)QER(8)