Solved

IRIX cron, How do I set one up?

Posted on 1997-09-29
11
456 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 40 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

[Webinar] Code, Load, and Grow

Managing multiple websites, servers, applications, and security on a daily basis? Join us for a webinar on May 25th to learn how to simplify administration and management of virtual hosts for IT admins, create a secure environment, and deploy code more effectively and frequently.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
llcommand 6 109
Skill Development 15 201
Access Required to Read Linux Security Settings and User Permissions 13 156
How to calculate the current use of PVU on my TSM server. 4 104
Using libpcap/Jpcap to capture and send packets on Solaris version (10/11) Library used: 1.      Libpcap (http://www.tcpdump.org) Version 1.2 2.      Jpcap(http://netresearch.ics.uci.edu/kfujii/Jpcap/doc/index.html) Version 0.6 Prerequisite: 1.      GCC …
Every server (virtual or physical) needs a console: and the console can be provided through hardware directly connected, software for remote connections, local connections, through a KVM, etc. This document explains the different types of consol…
Learn several ways to interact with files and get file information from the bash shell. ls lists the contents of a directory: Using the -a flag displays hidden files: Using the -l flag formats the output in a long list: The file command gives us mor…
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.:

731 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