Crontab -e
Hi
On Solaris Sparc 2.6, when I typed crontab -e
I get a number 1 displayed on the terminal.
When I pressed enter, a question mark is shown. I'm confused.
I am guessing that a VI editor for cron is not set. If this is the case, how can I configure a VI editor for crontab -e
Thank you
Cindy
Hi,
Set and export the EDITOR environment variable to use vi to edit
crontab files.
If you are using the Bourne or Korn shell, enter the following:
# EDITOR=vi
# export EDITOR
If you are using the C shell, enter the following:
# setenv EDITOR vi
Revert back.
Thanks.
Senthilkumar
SUN - DTS
Similar Messages
-
Java running under linux with crontab
I'm having a problem:
i want to run a java program under linux with crontab.
my classes are in a directory and aren't in a package. i run em by invoking ./start which is a small script that i wrote. The script is in the same dir as the classes and invokes java by "java Main >>logjava.txt " but this doesn't seem to work all i get is an empty logfile
i need to run the program every day at 0800 so i inserted the following in crontab:
0 8 * 1-5 /var/"path"/start > logjava (where path is the path to the classes dir)
if i run the cmdline from anywhere on the prompt i get the result i want. I think it's because the cron runs it from the root dir thus making java unable to find the classes
Any suggestions would be welcome. or can some1 tell me how to make linux executables from the java (i usually use jsmooth for the windows exe)You can execute several commands in the process started by cron. You separate them using semicolons.
Have you tried a cron entry like this:
0 8 * 1-5 cd /var/"path";pwd;echo $PATH; ./start > logjavaOr, you may need to make sure the process started by cron gets the same environment as your interactive shells do, by explicitly loading your setup or .login scripts:
0 8 * 1-5 . $HOME/.setup;cd /var/"path";pwd;echo $PATH; ./start > logjava -
How to schedule a crontab job for a script?
Hi,
Can anyone help me in this?
Actually, i want to schedule a crontab job for a script.
the script needs to check for a file in a diectory.
When ever a particular file in a directory is created, then i need to run that script. (creation time of file and execution time of script must be same)
So, how can i do this?
any suggestions?
Thanks,
Suman.crontab manual http://linux.about.com/od/commands/l/blcmdl5_crontab.htm
if you need check files on OS, crontab is good way... to do
Example: checking trace file older 30 days and remove (00.00 -> every days )
file.sh:
........begin file......
#!/bin/sh
find PATH/udump -name '*.trc' -type f -mtime +30 -exec rm {} \;
........end file......
$ chmod 750 file.sh
$ mv file.sh /home/oracle/file.sh
-- edit crontab
$ crontab -e
0 0 * * * /home/oracle/file.sh
-- list crontab
$ crontab -l
0 0 * * * /home/oracle/file.sh
good luck -
Problems of running java program by crontab in Linux
I have a java application program which runs great when started in command line, or in shell script, or Perl. However, when it is started by crontab in Linux, it stops in the middle when images are to be generated. I guess there might be some settings I need to handle in order to run this java application by crontab. We tried to start the shell script or Perl program in which the java program was invoked, but still didn't work.
This may be a littler stretching. Does anyone have similar experience and success?
Thanks in advance.
ljiang006Dear dpz,
We have used JComponents. Here's the error message I got. Could you further suggest what to do in my crobtap (which is "11 14 * * * java -classpath /home/VeggieB VHpack.VegHealthFrac" ). Looking forward to your reply. Thanks. ljiang006.
Generate data and image products ...
Save calibrated (unsmoothed) NDVI and T into Product/NDT/
Save initial early products into Product/Initial/
Save temporary products into Product/Tempo/
Save final update products into Product/Final/
Save calibrated (unsmoothed) NDVI and T into: Product/NDT/ Exception in thread "main" java.lang.NoClassDefFoundError
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at java.awt.GraphicsEnvironment.getLocalGraphicsEnvironment(GraphicsEnvironment.java:62)
at sun.awt.motif.MToolkit.<clinit>(MToolkit.java:70)
at java.lang.Class.forName0(Native Method)
at java.lang.Class.forName(Class.java:130)
at java.awt.Toolkit$2.run(Toolkit.java:712)
at java.security.AccessController.doPrivileged(Native Method)
at java.awt.Toolkit.getDefaultToolkit(Toolkit.java:703)
at java.awt.Component.getToolkitImpl(Component.java:826)
at java.awt.Component.getToolkit(Component.java:810)
at java.awt.Component.createImage(Component.java:2564)
at VHpack.ImageGenerator.createDataImage(ImageGenerator.java:395)
at VHpack.ImageGenerator.makeImage(ImageGenerator.java:288)
at VHpack.ImageGenerator.saveImage(ImageGenerator.java:162)
at VHpack.LVItoProduct.SaveProduct(LVItoProduct.java:146)
at VHpack.LVItoProduct.generateProducts(LVItoProduct.java:61)
at VHpack.NoGuiVeg.<init>(NoGuiVeg.java:94)
at VHpack.VegHealthFrac.main(VegHealthFrac.java:34) -
Solaris 10 zone: root crontab deleted.
Hello,
for a couple of weeks I have notice that one of our solaris zone has its root crontab deleted. the file root on /var/spool/cron/crontabs is simply gone.
I have changed the password so it is somethign inside the OS which is deleting the crontab... i cannot see anything in the cron log.
how can i stop or find the root cause for this..
thank you.This should help you.
https://blogs.oracle.com/zoneszone/entry/who_keeps_removing_that_file
alan -
[SOLVED] Find all users with a MAILTO option in their crontab
Anyone know if this is possible? I have a script that lists all scheduled cronjobs but I need to find out which users have email notifications configured.
If anyone else wants it, here is the script I use to check all user's crontabs. I did not write this.. just found it a while back.
#!/bin/bash
# System-wide crontab file and cron job directory. Change these for your system.
CRONTAB='/etc/crontab'
CRONDIR='/etc/cron.d'
# Single tab character. Annoyingly necessary.
tab=$(echo -en "\t")
# Given a stream of crontab lines, exclude non-cron job lines, replace
# whitespace characters with a single space, and remove any spaces from the
# beginning of each line.
function clean_cron_lines() {
while read line ; do
echo "${line}" |
egrep --invert-match '^($|\s*#|\s*[[:alnum:]_]+=)' |
sed --regexp-extended "s/\s+/ /g" |
sed --regexp-extended "s/^ //"
done;
# Given a stream of cleaned crontab lines, echo any that don't include the
# run-parts command, and for those that do, show each job file in the run-parts
# directory as if it were scheduled explicitly.
function lookup_run_parts() {
while read line ; do
match=$(echo "${line}" | egrep -o 'run-parts (-{1,2}\S+ )*\S+')
if [[ -z "${match}" ]] ; then
echo "${line}"
else
cron_fields=$(echo "${line}" | cut -f1-6 -d' ')
cron_job_dir=$(echo "${match}" | awk '{print $NF}')
if [[ -d "${cron_job_dir}" ]] ; then
for cron_job_file in "${cron_job_dir}"/* ; do # */ <not a comment>
[[ -f "${cron_job_file}" ]] && echo "${cron_fields} ${cron_job_file}"
done
fi
fi
done;
# Temporary file for crontab lines.
temp=$(mktemp) || exit 1
# Add all of the jobs from the system-wide crontab file.
cat "${CRONTAB}" | clean_cron_lines | lookup_run_parts >"${temp}"
# Add all of the jobs from the system-wide cron directory.
cat "${CRONDIR}"/* | clean_cron_lines >>"${temp}" # */ <not a comment>
# Add each user's crontab (if it exists). Insert the user's name between the
# five time fields and the command.
while read user ; do
crontab -l -u "${user}" 2>/dev/null |
clean_cron_lines |
sed --regexp-extended "s/^((\S+ +){5})(.+)$/\1${user} \3/" >>"${temp}"
done < <(cut --fields=1 --delimiter=: /etc/passwd)
# Output the collected crontab lines. Replace the single spaces between the
# fields with tab characters, sort the lines by hour and minute, insert the
# header line, and format the results as a table.
cat "${temp}" |
sed --regexp-extended "s/^(\S+) +(\S+) +(\S+) +(\S+) +(\S+) +(\S+) +(.*)$/\1\t\2\t\3\t\4\t\5\t\6\t\7/" |
sort --numeric-sort --field-separator="${tab}" --key=2,1 |
sed "1i\mi\th\td\tm\tw\tuser\tcommand" |
column -s"${tab}" -t
rm --force "${temp}"
Last edited by thelastknowngod (2011-11-28 22:14:33)Perhaps I'm missing something here, but...
grep -i MAILTO /var/spool/cron/* -
[SOLVED] espeak won't work in crontab
Espeak works fine from my command line.
But I used to use espeak in my crontab to shout at me to take my pills etc etc. However, recently espeak has been generating errors when run by cronie
Subject: Cron <robin@bunyip> sudo espeak 'robin take drugs'
Content-Type: text/plain; charset=UTF-8
Auto-Submitted: auto-generated
Precedence: bulk
X-Cron-Env: <LANG=en_GB.utf8>
X-Cron-Env: <SHELL=/bin/sh>
X-Cron-Env: <HOME=/home/robin>
X-Cron-Env: <PATH=/usr/bin:/bin>
X-Cron-Env: <LOGNAME=robin>
X-Cron-Env: <USER=robin>
Date: Thu, 9 Oct 2014 22:20:02 +0100 (BST)
Status: R
ALSA lib pcm_dmix.c:1022:(snd_pcm_dmix_open) unable to open slave
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.rear
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.center_lfe
ALSA lib pcm.c:2239:(snd_pcm_open_noupdate) Unknown PCM cards.pcm.side
ALSA lib pcm_route.c:947:(find_matching_chmap) Found no matching channel map
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection r
efused
ALSA lib pulse.c:243:(pulse_connect) PulseAudio: Unable to connect: Connection r
efused
ALSA lib pcm_direct.c:1703:(snd1_pcm_direct_parse_open_conf) slave is not define
d
what do I need to do to allow cronie to shout at me?
Edit: I added the sudo in the contab to try and eliminate permissions, but the same kind of errors are present for espeak hello as for sudo espeak hello.
Edit: Seems that cronie can use espeak when vlc is not running.
Last edited by replabrobin (2014-10-11 10:31:40)Spider.007 wrote:Is your user in the 'audio' group? Maybe vlc is somehow claiming the entire device to prevent sounds from distracting you from a movie? FWIW; it works fine here; even with vlc running
Yes the user is in the audio group. I assume that vlc is somehow grabbing the device, but even when I changed to use alsa directly in the VLC audio settings this problem persisted. -
How to pass a variable to the shell script and crontab?
Friends,
here is my script.....
exp userid=username/password@realdb file=/u02/logical_backup/abc_+$date+.dmp log=/u02/logical_backup/abc_+$date+.log owner=oraadmin statistics=none
i want the exported file name as abc_2101.dmp and abc_2101.log (2101 is a date and month)
I want to execute this script daily at 02:00 AM.
so that i edited the crontab -e as....
00 02 * * * ./u02/script/dailybkp.sh
Now what i want is....
1. is the steps are correct for crontab -e?
2. Is the script of the crontab will execute daily at 02:00 AM?
3. how can i rename the .log filename and .dmp file name daily according to the date. for example abc_2001 is today's date and month.how can i replace with the variable.
thanks
sathyguysorry....i tested with cp command it was working fine...
so, i thought it should work for exp command also.
but its not working....also its not throwing any error....
the crontab -e is having...
00 02 * * * exp userid=system/password@realdb file=/u02/test/n22.dmp log=/u02/test/n22.log owner=scott statistics=none
also i have tested by calling the script.
#!/bin/bash
00 02 * * * /u03/script/testbkp.sh
its not working
but the below one is working....
00 02 * * * cp /u02/test.txt /u02/test/test.txt
also this one is working....
#!/bin/bash
00 02 * * * /u03/script/testbkp.sh
i listed the chkconfig --list crond
crond 0,1,6 = off
2,3,4,5 are on
what might be the reason?
thanks
sathyguy -
Scheduling crontab to send an email with an attachement?
(second post, 1st in wrong forum)
Hey everyone,
Does anyone know how to set up a command to send an email with an attachement? From what I've been informed so far, I inputed:
0 22 * * * (cat mailtext; uuencode filename.txt filename.txt) | mail -s 'here is the backup log' [email protected]
#The first filename.txt will also have the file path preceding it.
I done all this and still no email. Do I have to enable smtp or set up the mail server?
Any help would be much appreciated. Thanks!
Xserve Mac OS X (10.4.2)What you're describing doesn't make any use of Automator.
That being said, using command line "mail" does require that the Unix mail system be set up. This site has a utility for doing that.
If you want to use Automator (the subject of this forum), you might try this:
Create a new Automator workflow with these three actions:
Get Specified Finder Items -- put your desired attachment(s) in the list
New Mail Message -- fill in all appropriate fields
Send Outgoing Messages
Once you confirm that the workflow works, save it as an application. Then you can make it repeat with cron like you specified in your posting, but with the Automator task. E.g., if you saved it to the desktop, and with the name AutoSendDailyReport, edit your crontab:
<pre>0 22 * * * ~/Desktop/AutoSendDailyReport.app/Contents/MacOS/AutoSendDailyReport</pre>
Note that in this example, you'll need to be logged in at the time the cron job runs, so that the applications can run. It will automatically launch Mail, if not already running, and send the email.
Alternatively, you can use iCal to schedule the task: set up a repeating event, with the alarm set to open the workflow app created above. Once again, you'll need to be logged in at the time the mail is to be sent.
Titanium PowerBook Mac OS X (10.4.4) -
I'm running 10.3 and I need to automate several tasks in off-peak hours. I'd like to run these tasks around 4am once/week. I've created a shell script that runs fsck, repairs permissions, updates prebindings, cleans some temp directories, and some other misc stuff. The shell script works fine when I run it manually using:
sudo ./myshellscript.sh
As you can notice my script requires elevated privileges to run most of its tasks. The root user is NOT enabled, but I was wondering if I could still run a cronjob as root. I installed Cronnix and opened the root crontab & of course it gave me an error basically saying the root crontab was empty. At this point, I tried scheduling for various times for testing, but no matter what time that I give it the cronjob never runs. Every line of my shell script outputs to a log file, but when the task is scheduled with a root cronjob the log file is never created. If I run it manually, the log file is created just like I want.
My questions are:
1. Can you run a cronjob as root even if the root user is not enabled?
2. Does anyone else have an idea as to how I can get this to work?
I know it must be possible. Doesn't OS X have a daily, weekly, & monthly cronjob that run automatically? I certainly didn't see those listed under root.
Any help is greatly appreciated.i'd advise not running any of those tasks every week.
the periodic tasks run on a schedule anyway. why force them each week? if they're running at times your server is busy or interfere with your ability to access services, change the times they run.
updating prebinding is also unnecessary. here's an old link that explains what the function does: prebinding explained. if an app really needs it, the OS will take care of this for you. how many applications are you installing on your server, and how often?
repairing permissions is the same: don't do it unless something is wrong. specifically, only repair perms when you suspect incorrect permissions are your problem. for more on this, see repairing permissions is useless.
and, like davidh said, you can't fsck your boot drive. that will fail every time, so don't do it.
if you have a need for some maintenance scripts that actually may help, please ask. i think some folks on the boards can help. i'll dig up some, as well.
macbook pro 2.16 ghz, powerbook G4 1ghz, G4 400 mhz, poweredge and some junkers Mac OS X (10.4.9) -
Problem setting up crontab for cyrusimap
Greetings all.
I've just finished setting up OS X Server 10.4.10 on an intel mac, and was trying to setup a crontab for cyrusimap to make sure that all mail for JUNKMAIL and NOTJUNKMAIL users is deleted automatically using ipurge.
I created the following crontab file:
<pre>
0 0 */0 * * /usr/bin/cyrus/bin/cyrus-quota -q
30 1 * * * /usr/bin/cyrus/bin/ipurge -f -d 1 user/junkmail user/notjunkmail
</pre>
And then tried loading it in via:
<pre>
sudo crontab -u cyrusimap <PATHTOCRONTAB>
</pre>
However crontab just hangs hogging 90%+ of the CPU!? The permissions in /var/cron/tabs seem ok, with full read/write for root.
Any ideas? Thanks in advance,
MezzaMezza,
cron is not used by default in OS X although it is certainly supported.
See http://www.afp548.com/article.php?story=20050620071558293
Since you did not explicitly state the "path to crontab"
I wonder if you might be trying to run root's crontab as user cyrusimap, which of course won't work. See the crontab manpage for a possible exception although I wouldn't recommend it.
The crontab file for cyrusimap is empty by default in 10.4 server -
Shell Script to grep Job File name and Log File name from crontab -l
Hello,
I am new to shell scripting. I need to write a shell script where i can grep the name of file ie. .sh file and log file from crontab -l.
#51 18 * * * /home/oracle/refresh/refresh_ug634.sh > /home/oracle/refresh/refresh_ug634.sh.log 2>&1
#40 17 * * * /home/oracle/refresh/refresh_ux634.sh > /home/oracle/refresh/refresh_ux634.sh.log 2>&1
In crontab -l, there are many jobs, i need to grep job name like 'refresh_ug634.sh' and corresponding log name like 'refresh_ug634.sh.log '.
I am thinking of making a universal script that can grep job name, log name and hostname for one server.
Then, suppose i modify the refresh_ug634.sh script and call that universal script and echo those values when the script gets executed.
Please can anyone help.
All i need to do is have footer in all the scripts running in crontab in one server.
job file name
log file name
hostname
Please suggest if any better solution. Thanks.957704 wrote:
I need help how to grep that information from crontab -l
Please can you provide some insight how to grep that shell script name from list of crontab -l jobs
crontab -l > cron.log -- exporting the contents to a file
cat cron.log|grep something -- need some commands to grep that infoYou are missing the point. This forum is for discussion of SQL and PL/SQL questions. What does your question have to do with SQL or PL/SQL.
It's like you just walked into a hardware store and asked where they keep the fresh produce.
I will point out one thing about your question. You are assuming every entry in the crontab has exactly the same format. consider this crontab:
#=========================================================================
# NOTE: If this is on a clustered environment, all changes to this crontab
# must be replicated on all other nodes of the cluster!
# minute (0 thru 59)
# hour (0 thru 23)
# day-of-month (1 thru 31)
# month (1 thru 12)
# weekday (0 thru 6, sunday thru saturday)
# command
#=========================================================================
00 01 1-2 * 1,3,5,7 /u01/scripts/myscript01 5 orcl dev
00 04 * * * /u01/scripts/myscript02 hr 365 >/u01/logs/myscript2.lis
00 6 * * * /u01/scripts/myscript03 >/u01/logs/myscript3.lisThe variations are endless.
When you get to an appropriate forum (this on is not it) it will be helpful to explain your business requirement, not just your proposed technical solution. -
Crontab Entry Problem..Not Initiating Backup
hi!
I have a file which is intiating my db backup. If i run this file through ./radbbackup.sh then its working fine but amazingly if i am making his entry into crontan then its not initiating rman backup.
OS: HP-UX ratest B.11.23 U ia64 3065154095 unlimited-user license
DB: 10.2.0.4.0
----------------- bash script --------------------
#!/bin/sh
#export ORACLE_SID=RAID
#export ORACLE_HOME=/oracle/product/10.2.0
#export RMAN=$ORACLE_HOME/bin/rman
echo "Starting Backup"
sleep 3
#Change Database Mode
#/export/home/oracle/backup/dbmount.sh
sleep 3
echo "Database is mounted"
sleep 2
echo "Starting Backup"
sleep 3
rman target / << EOF
backup database;
exit;
EOF
echo "Backup of Database is Completed"
echo "Send Backup Mail to Users"
echo
echo
sleep 3
---- crontab entry
11 16 * * * sh /export/home/oracle/backup/bakdb.sh
I will highly appreciate your quick response.
regards
irfan ahmadhi!
thanks for your responses.
Actually crontab is running the script correctly but its not intiating the RMAN backup. After running through crontab its just sending me this information.
Starting Backup
Database is mounted
Starting Backup
if run manually through ./file_name.sh then its sending me this information:
Starting Backup
Database is mounted
Starting Backup
Recovery Manager: Release 10.2.0.4.0 - Production on Thu Oct 8 14:52:52 2009
Copyright (c) 1982, 2007, Oracle. All rights reserved.
connected to target database: RAIDDEV (DBID=1621392743)
RMAN>
using target database control file instead of recovery catalog
List of Backup Sets
===================
BS Key Type LV Size Device Type Elapsed Time Completion Time
1 Full 80.00K DISK 00:00:01 11-SEP-09
BP Key: 1 Status: AVAILABLE Compressed: NO Tag: RAIDSPF
Piece Name: /oracle/product/10.2.0/dbs/RAIDSPF_01kp0ujs_1_1_697334396.BAK
SPFILE Included: Modification time: 22-MAY-09
RMAN>
Recovery Manager complete.
Waiting. -
Not getting the complete output in the crontab script
Hi All,
I am running a script to find the CPU and memory utilization of the Oracle 10g server. Script name is atul.sh. When i run this script then it gives the desired output as mentioned below:
bash-3.00$ cat ./SCRIPTS/atul.sh
*A=`date| cut -d" " -f1-9; top -d 1| awk '/^CPU states/ {print $3,$5,$7,$9} /^Mem/ {print $2,$3,$4,$5,$6,$7,$8,$9,$10}'*
echo $A
bash-3.00$
bash-3.00$ ./SCRIPTS/atul.sh >> /oracle/SCRIPTS/toplog
bash-3.00$ cat /oracle/SCRIPTS/toplog
Thu Sep 8 11:43:49 IST 2011 99.5% 0.0% 0.5% 0.0% 2048M phys mem, 77M free mem, 8193M total swap,
bash-3.00$
However, when i run this script through crontab, it gives incomplete output. It only display the date and not the cpu and memory utilization.:
bash-3.00$ crontab -l
* * * * * /oracle/SCRIPTS/atul.sh >> /oracle/SCRIPTS/toplog
bash-3.00$
bash-3.00$ cat /oracle/SCRIPTS/toplog
Thu Sep 8 11:43:49 IST 2011 99.5% 0.0% 0.5% 0.0% 2048M phys mem, 77M free mem, 8193M total swap,
Thu Sep 8 11:44:00 IST 2011
Thu Sep 8 11:45:00 IST 2011
bash-3.00$
Kindly, provide me the soluton.
Edited by: 883925 on Sep 7, 2011 11:24 PM
Edited by: 883925 on Sep 7, 2011 11:29 PMThanks everyone for the reply.
*@DUDE*
Still problem is not solved. I have used the command given by you but problem is same..*its displaying only date when scheduled from crontab*.
bash-3.00$ crontab -l
* * * * * /oracle/SCRIPTS/sm >> /oracle/SCRIPTS/memorylog.csv
* * * * * /oracle/SCRIPTS/sc >> /oracle/SCRIPTS/cpulog.csv
* * * * * /oracle/SCRIPTS/atul.sh >> /oracle/SCRIPTS/toplog.csv
bash-3.00$
bash-3.00$ cat atul.sh
*A=`date| cut -d" " -f1-9; top -d 1 -n 1 | awk '/^Cpu/ {print $3,$5,$7,$9} /^Mem/ {print $2,$3,$4,$5,$6,$7,$8,$9,$10}'`*
echo $A
bash-3.00$
bash-3.00$ cat toplog.csv
Fri Sep 9 10:06:00 IST 2011
Fri Sep 9 10:07:00 IST 2011
Fri Sep 9 10:08:00 IST 2011
bash-3.00$
However, expected output is that it should display the CPU and memory utilization along with the date.
bash-3.00$ ./atul.sh
Fri Sep 9 10:08:52 IST 2011 2048M phys mem, 33M free mem, 8193M total swap,
bash-3.00$
Edited by: 883925 on Sep 8, 2011 9:43 PM -
Problem Crontab vs Java 1 4 2 & Socket
I've created a shell script that calls the java program :
PATH=/usr/lib/java:/usr/lib/java/bin:/usr/java142:/usr/java142/bin:$PATH ; export PATH
cd /usr/dconn
java -cp DConnection.jar DPackage/DConnection
The jar en script file are in the same directory.
In the java program a socket connection is made and communication is started with the remote system.
When executing this script at the prompt, there is no problem. I can send data and receive.
The following step is to schedule this script :
SHELL=/bin/sh
MAILTO=root
# check scripts every minute
*/10 * * * * /usr/dexxconn/startdexx.sh
At first there was java 131 installed on the linux system. And there was no problem with the program. When I began using java 140 (on windows) because I needed some new String methods, the scheduler mycron didn't properly executed my program.
The output of the program is normally seen in the mail of the root. But nothing gets in the mail. So I killed the process for that java program and I got output in the mail from the root.
I can derrive from that mail that the java program makes a socket connection, but does not communicate with the remote system. I can't send data or receive.
Has anyone any idea to solve this problem, is it because of crontab,java 140, java 142?Forgot to mention. When I had these problems with java 131 on linux I installed java 142 and then I got the earlier described problem.
-
[SOLVED] Crontab entry ignored
I'm running cronie. My root crontab has an entry to run tarsnap every night, which is ignored.
The tarsnap line works when run in a terminal and the other entries work as well.
I tested it by altering the time to make it run immediately but nothing happens - no reported errors as far as I can see.
Here is my root crontab:
# backup /etc nightly
30 3 * * * rsync -a /etc/ /databackup/etc
# Correct clock each morning
00 5 * * * rdate -ncv uk.pool.ntp.org ; hwclock --hctosys
# update mlocate database each morning
00 4 * * * updatedb --prunepaths '/tmp /proc /mnt /var/tmp /databackup'
# tarsnap backup
00 3 * * * /usr/bin/tarsnap --exclude /home/ac/.mozilla --exclude /home/ac/.cache -c -f arcadiabackup-`date +%y%m%d` /home/ac
MAILTO=me@mydomain
Last edited by acampbell (2014-06-24 14:16:17)WorMzy wrote:
Are you sure that cronie is running?
# systemctl status cronie.service
Yes.
Also, please use code tags.
Don't know what you mean by this.
Anyway, I found a work-around: I made a bash script in /root and that runs the command without problems.
Last edited by acampbell (2014-06-24 14:18:24)
Maybe you are looking for
-
SAP R/3 ERP 6.0, BI and BO on Sigle Sign On
Hi Experts, We have implemented SAP R/3 ERP 6.0, BI and BO with Crystal Reports. Is it possiable configure Single Sign On for the above servers with sigle point of login. Using NWBC we can connect single inteerface but is it possiable with SSO. Our S
-
When I have two clips, one above the other, I would like to hear the audio from one at a time. How do I suppress temporarily one of that, in a easier way? Thank you.
-
Creative mediasource organizer not recognizing zen microph
I jusr recently had to restore my laptop to factory settings so I had reinstall creative. But now when I open the mediasource to try to get songs off of my microphoto on onto my laptop, it doesn't show my zen in the little dropdown where it shoes pc
-
How do i install a pc game i bought from walmart
i got this Empire Total War game and i dont know how to install it on my new mac book pro
-
Hi Consultants, We have issue with some vendors as vendor type as Employee. i see the employ information from AP it is showing the incorrect location address and one vendor is not having the location and address details. how to update this informatio