?
Solved

IRIX cron, How do I set one up?

Posted on 1997-09-29
11
Medium Priority
?
464 Views
Last Modified: 2013-12-16
Hiya...
I need to set a cron entry for root on an IRIX system.
How do I go about this? I already got my script that I want to run at midnight every day except Saturday. It is to perform an rdump to a Solaris Tape Server.

regards.
0
Comment
Question by:rickyr
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 5
  • 3
  • 3
11 Comments
 
LVL 84

Expert Comment

by:ozo
ID: 1812701
(crontab -l; echo '0 0 * * 0-5       script') | crontab
0
 
LVL 4

Expert Comment

by:jlms
ID: 1812702
You can also type
crontab -e
and edit what appears including a line like the suggested in the comment by ozo.
Be sure to set the environmenr variable EDITOR like this Assuming your favorite editor is emacs, if not put vi or whatever you use):
EDITOR=emacs or setenv EDITOR emacs
I dont know how complicated is you script, but if it includes only one dump command you can include this directly in the crontab.
0
 
LVL 84

Expert Comment

by:ozo
ID: 1812703
What version of IRIX are we talking about?
crontab -e
works with a sufficiently recent IRIX.
I'd pesonally prefer to edit in any version,
(but then that makes the answer harder to explain:-)
0
Independent Software Vendors: We Want Your Opinion

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

 
LVL 4

Expert Comment

by:jlms
ID: 1812704
It is IRIX 6.2 ...
0
 
LVL 84

Expert Comment

by:ozo
ID: 1812705
jlms, I'm curious, how did you determine that? I don't see how to tell from the question.
Did rickyr mention it in a previous question?
Or have you had personal contact with rickyr?
0
 
LVL 3

Author Comment

by:rickyr
ID: 1812706
Hiya jlms...
Sorry, I should have said that I got IRIX 5.3. I tried what you said....
# crontab -e
      usage is:
      crontab [ file | -l -r ]
also tried...
# crontab root
      usage is:
      crontab [ file | -l -r ]
also tried...
# crontab root -l
      usage is:
      crontab [ file | -l -r ]

The script does the following....
for i in dumpvol1 dumpvol2
do
rdump......etc
done

regard
0
 
LVL 4

Expert Comment

by:jlms
ID: 1812707
Then the comment of ozo should be the right answer! Did you try it?
0
 
LVL 84

Expert Comment

by:ozo
ID: 1812708
`man crontab` could tell you even more about the usage
But even in absence of a -e flag, I think I'd prefer to edit:

su
emacs /var/spool/cron/crontabs/root
crontab /var/spool/cron/crontabs/root
crontab -l
0
 
LVL 3

Author Comment

by:rickyr
ID: 1812709
Hiya....
I did

#crontab -l > root.cron
#vi root.cron
--->edit file here<---
#cat root.cron | crontab

the last bit was from ozo's comment,
so you can come back for your points.

regards
0
 
LVL 84

Accepted Solution

by:
ozo earned 120 total points
ID: 1812710
#crontab -l > root.cron
#vi root.cron
--->edit file here<---
#crontab root.cron
0
 
LVL 3

Author Comment

by:rickyr
ID: 1812711
Hiya...

You're original comment was the one that
put me in the right direction as to how IRIX handles cron entries.

Thanks for your time ozo! yours too jlms.

regards
0

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Hello fellow BSD lovers, I've created a patch process for patching openjdk6 for BSD (FreeBSD specifically), although I tried to keep all BSD versions in mind when creating my patch. Welcome to OpenJDK6 on BSD First let me start with a little …
I promised to write further about my project, and here I am.  First, I needed to setup the Primary Server.  You can read how in this article: Setup FreeBSD Server with full HDD encryption (http://www.experts-exchange.com/OS/Unix/BSD/FreeBSD/A_3660-S…
Learn how to find files with the shell using the find and locate commands. Use locate to find a needle in a haystack.: With locate, check if the file still exists.: Use find to get the actual location of the file.:
In a previous video, we went over how to export a DynamoDB table into Amazon S3.  In this video, we show how to load the export from S3 into a DynamoDB table.
Suggested Courses
Course of the Month8 days, 19 hours left to enroll

764 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question