cron job

im using a sun server and
someone did a cron job that
puts all the info on the server
onto a tape at 11pm every night
when i come in in the mornings
i get a cron output file in my
/tmp dir
would anyone know if this is ok?
i remove the file every it ok to do that?
would anyone know where the cron file is so that i can edit it to
remove this file in /tmp?

Who is Participating?
RandybConnect With a Mentor Commented:
more typically in /usr/spool/cron/crontabs/<username>

(This is the default Solaris location FYI)

You must only modify the file named after the user you are logged in as, and after modifying it you must execute the command "crontab <filename> in order for cron to re-schedule the new file.
NOTE: If you are logged in as root and modify say the LP cronfile you will over write the existing root crontab file !! The file is named AFTER THE USER RUNNING THE CRONTAB COMMAND (no matter its previous name) becareful about overwriting exosting files ... always safe at first to copy them into a svae directory.
who owns the file.

File should be created by the user that runs the
cron job.

You can typically see the cron jobs using the command  "crontab -l <username>"
you can edit the cron jobs using crontab -e  comand.

Cron jobs are stored in the spool at

file names are same as login ids.

boofullsAuthor Commented:
is still get an error every morning saying that
i should remove files from tmp when tmp is almost empty....

it says it cant spawn a new process as tmp is full and it needs more swap space

Keep up with what's happening at Experts Exchange!

Sign up to receive Decoded, a new monthly digest with product updates, feature release info, continuing education opportunities, and more.

How did you modify your cron file ?
and which user were you, and did you look at the rest of the files in the crontab directory ?
Cut and paste the file here so we can see it. You most likely havent edited it correctly or missed another file that has nightly jobs scheduled.
Cron is a little tricky at first but once your used to it then you should have no trouble.

ALSO ... do you schedule nightly backups/archives manually ?? if so this may be where the dump is coming from.
boofullsAuthor Commented:
How did you modify your cron file ?
using the editor "vi"
                         and which user were you, and did you look at the rest of the files in the crontab directory ?
root, i just modified the root file....and here it is
#ident  "@(#)root       1.19    98/07/06 SMI"   /* SVr4.0       */
# The root crontab should be used to perform accounting data collection.
# The rtc command is run to adjust the real time clock if and when
# daylight savings time changes.
10 3 * * 0,4 /etc/cron.d/logchecker
10 3 * * 0   /usr/lib/newsyslog
15 3 * * 0 /usr/lib/fs/nfs/nfsfind
1 2 * * * [ -x /usr/sbin/rtc ] && /usr/sbin/rtc -c > /dev/null 2>&1
30 3 * * * [ -x /usr/lib/gss/gsscred_clean ] && /usr/lib/gss/gsscred_clean
55 11 * * 1,2,3,4,5  /usr/bin/backup
56 11 * * 1,2,3,4,5  /usr/bin/backup2

also the atpe device seems to be accessed every few minutes....
i hear a clicking sound....
is this due to the cron job?

Well it's the last two lines that have me curious, backup and backup2.

These are custom scripts I would imagine that backup your system. Now you either have a VERY small system or you need to space these out some as they one starts only one minute after the other. can you look at those two files and if they are small (a few lines) then paste them here.

Most likely all that has to be done is to add > /dev/null 2>&1 to the end of these two lines in the cron file but I want to look first. What I think is happening is that the output list of your backups is being dumped to /tmp (not the backup itself but the output list) this is a very common mistake.

Also ...what Database do you use ??? If your tape is being hit consistently you may be sending logical logs to it...something you need to be very aware of !
PS ...wanted to add a comment regarding the post from chintu above. Yes you were correct that /var/spool/cron/crontabs is the location of the cronfiles. It is also dynamically linked to /usr/spool/cron/crontabs ...both end up in the same place. It's just that /usr/spool is a more global directory and seems to be used by more unix vendors ... varies by system I am sure...but I wanted to clarify and offer credit for that !
boofullsAuthor Commented:
sorry for the confusion
i didnt reschedule the cron job
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.