<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: crontab in Operating System - HP-UX</title>
    <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2440018#M768964</link>
    <description>sam, I see a lot of people trying to help you and they are being very patient with you.  If you accept and appreciate the help while reading the responses people are giving you, why are deciding to skip the points?&lt;BR /&gt;&lt;BR /&gt;Tony</description>
    <pubDate>Tue, 29 Aug 2000 16:57:45 GMT</pubDate>
    <dc:creator>Anthony deRito</dc:creator>
    <dc:date>2000-08-29T16:57:45Z</dc:date>
    <item>
      <title>crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439968#M768914</link>
      <description>i just typed as:&lt;BR /&gt;&lt;BR /&gt;#./crontab -l&lt;BR /&gt;[result is: /sbin/sh: ./crontab: not found.]&lt;BR /&gt;&lt;BR /&gt;what's wrong!?&lt;BR /&gt;&lt;BR /&gt;i am trying to create crontab.&lt;BR /&gt;how to create a crontab ??&lt;BR /&gt;very step-by-step pls!!!</description>
      <pubDate>Fri, 25 Aug 2000 14:30:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439968#M768914</guid>
      <dc:creator>sam kim_1</dc:creator>
      <dc:date>2000-08-25T14:30:20Z</dc:date>
    </item>
    <item>
      <title>Re: crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439969#M768915</link>
      <description>Hi Sam&lt;BR /&gt;Create your cronfile &lt;BR /&gt;and then to activate crontab cronfile&lt;BR /&gt;crontab -l  will display what scheduled&lt;BR /&gt;crontab -r will remove&lt;BR /&gt;crontab -e if you wish to modify (I prefer editing cronfile..)&lt;BR /&gt;Regards&lt;BR /&gt;Victor</description>
      <pubDate>Fri, 25 Aug 2000 14:39:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439969#M768915</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2000-08-25T14:39:02Z</dc:date>
    </item>
    <item>
      <title>Re: crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439970#M768916</link>
      <description>Because you typed './crontab', the shell is looking in the current directory for the crontab command.&lt;BR /&gt;&lt;BR /&gt;Just try 'crontab -l' to list your current crontab.&lt;BR /&gt;&lt;BR /&gt;To create a crontab, use your favourite editor to create a file containing your cron information. (see the man pages for crontab and cron). Then just type 'crontab &lt;FILE&gt;'.&lt;BR /&gt;&lt;BR /&gt;You can also use the 'crontab -e' command to edit the current crontab file.&lt;BR /&gt;&lt;BR /&gt;cron keeps crontab files in the directory &lt;BR /&gt;/usr/spool/cron/crontabs.&lt;BR /&gt;&lt;BR /&gt;It is worth having a set procedure for editing crontab files, saving the previous version is a good idea.&lt;BR /&gt;&lt;BR /&gt;Regards,&lt;BR /&gt;John&lt;/FILE&gt;</description>
      <pubDate>Fri, 25 Aug 2000 14:39:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439970#M768916</guid>
      <dc:creator>John Palmer</dc:creator>
      <dc:date>2000-08-25T14:39:09Z</dc:date>
    </item>
    <item>
      <title>Re: crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439971#M768917</link>
      <description>To create a crontab file....(I store mine under /var/spool/cron/crontabs..)&lt;BR /&gt;You would enter:&lt;BR /&gt;crontab -e     (you can now key the when/what you want to run)&lt;BR /&gt;     Quick example:&lt;BR /&gt;&lt;BR /&gt;     00 1 * * 1,2,3,4,5 /usr/local/bin/startup_oracle.sh&lt;BR /&gt;&lt;BR /&gt;                This would kick off the job startup_oracle.sh at 1 minute past midnight every Monday-Friday.&lt;BR /&gt;&lt;BR /&gt;Then save the file. And run:&lt;BR /&gt;    crontab 'your_new_file'                   to start your file to run.&lt;BR /&gt;&lt;BR /&gt;To display what is set to run/cron:&lt;BR /&gt;crontab -l              &lt;BR /&gt;To start or run the cronfile&lt;BR /&gt;crontab /full_path/cronfile_name&lt;BR /&gt;&lt;BR /&gt;Hope this helps,</description>
      <pubDate>Fri, 25 Aug 2000 14:42:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439971#M768917</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2000-08-25T14:42:02Z</dc:date>
    </item>
    <item>
      <title>Re: crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439972#M768918</link>
      <description>cd /var/spool/cron&lt;BR /&gt;ls -al crontab.root    (if exists, go to the next)&lt;BR /&gt;cd crontabs&lt;BR /&gt;cp /var/spool/cron/crontab.root /var/spool/cron/crontabs/root&lt;BR /&gt;(copy the crontab.root example file one lever down in crontabs directory with the name as root.&lt;BR /&gt;vi root&lt;BR /&gt;add your modifications.&lt;BR /&gt;/sbin/init.d/cron stop&lt;BR /&gt;/sbin/init.d/cron start&lt;BR /&gt;crontab -l &lt;ENTER&gt;&lt;BR /&gt;That's it.&lt;/ENTER&gt;</description>
      <pubDate>Fri, 25 Aug 2000 14:43:17 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439972#M768918</guid>
      <dc:creator>Antoanetta Naghiu</dc:creator>
      <dc:date>2000-08-25T14:43:17Z</dc:date>
    </item>
    <item>
      <title>Re: crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439973#M768919</link>
      <description>i logged in this server as root.&lt;BR /&gt;&lt;BR /&gt;And, what i did:&lt;BR /&gt;# cd /var/spool/cron/crontabs&lt;BR /&gt;# ls&lt;BR /&gt;[result : there is nothing]&lt;BR /&gt;&lt;BR /&gt;this means there is no user ???&lt;BR /&gt;&lt;BR /&gt;1)as far as know, in order to use 'crontab' command, i have to know username, is that right??&lt;BR /&gt;2)in order to check username, i can check from #cd /vsr/spool/cron/crontabs then #ls,&lt;BR /&gt;is that right??&lt;BR /&gt;3)once i know the username, then i can do&lt;BR /&gt;# ./crontab -l username,&lt;BR /&gt;is that right???&lt;BR /&gt;&lt;BR /&gt;pls, give a clue, thanks!&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Aug 2000 14:43:51 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439973#M768919</guid>
      <dc:creator>sam kim_1</dc:creator>
      <dc:date>2000-08-25T14:43:51Z</dc:date>
    </item>
    <item>
      <title>Re: crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439974#M768920</link>
      <description>Well if /var/spool/cron/crontabs is empty , then you have no cron running Its time to create one...&lt;BR /&gt;Good luck</description>
      <pubDate>Fri, 25 Aug 2000 14:46:10 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439974#M768920</guid>
      <dc:creator>Victor BERRIDGE</dc:creator>
      <dc:date>2000-08-25T14:46:10Z</dc:date>
    </item>
    <item>
      <title>Re: crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439975#M768921</link>
      <description>If you want to create a cron tab for different user then root (let's say oracle), under /var/spool/cron/crontabs, create a file with that user's name ( vi oracle). Record the info, chown oracle:dba oracle, chomd 444 *, stop and restart the cron (see my previous post).&lt;BR /&gt;Abd do not forget to go to &lt;BR /&gt;cd /var/adm/cron&lt;BR /&gt;vi cron.allow&lt;BR /&gt;add the user name (you'll have &lt;BR /&gt;root&lt;BR /&gt;oracle&lt;BR /&gt;..</description>
      <pubDate>Fri, 25 Aug 2000 14:49:09 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439975#M768921</guid>
      <dc:creator>Antoanetta Naghiu</dc:creator>
      <dc:date>2000-08-25T14:49:09Z</dc:date>
    </item>
    <item>
      <title>Re: crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439976#M768922</link>
      <description>crontab entries can be for the individual users as well. Can do a &lt;BR /&gt;find / -name cron.allow -print to see which users have acess to the cron facilities. If there are users in the cron.allow these users will be allowed to make-modify their own cron entries. &lt;BR /&gt;&lt;BR /&gt;In the same directory as the cron.allow is a cron.deny file. Users in this file do not have access to the cron facilities.&lt;BR /&gt;&lt;BR /&gt;To create/modify cron entries, can use the 'crontab -e' command. This will place you in the crontab file for that particular user. Typically the EDITOR is vi so editing is done via the vi commands. Doing a :wq at the end of modifications will write the crontab file and the will be a message that states the cron will be using /bin/sh (something to that effect.)&lt;BR /&gt;&lt;BR /&gt;Doing the modifications directly to the crontab files requires that  the cron process be killed and restarted so that the modifications will be re-read. The 'crontab -e' command will automatically re-read the crontab file without having to bounce the cron process.</description>
      <pubDate>Fri, 25 Aug 2000 14:51:02 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439976#M768922</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-08-25T14:51:02Z</dc:date>
    </item>
    <item>
      <title>Re: crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439977#M768923</link>
      <description>Sam, go just to /var/spool/cron and copy crontab.root there (see above)</description>
      <pubDate>Fri, 25 Aug 2000 14:51:37 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439977#M768923</guid>
      <dc:creator>Antoanetta Naghiu</dc:creator>
      <dc:date>2000-08-25T14:51:37Z</dc:date>
    </item>
    <item>
      <title>Re: crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439978#M768924</link>
      <description>i just did:&lt;BR /&gt;&lt;BR /&gt;# cd /var/spool/cron &lt;BR /&gt;# ls -al crontab.root&lt;BR /&gt;# cd crontabs &lt;BR /&gt;# cp /var/spool/cron/crontab.root &lt;BR /&gt;         /var/spool/cron/crontabs/root &lt;BR /&gt;# vi root &lt;BR /&gt;&lt;BR /&gt;[here i met an obtacle. how to add&lt;BR /&gt;modifications??]&lt;BR /&gt;--------------------------------------&lt;BR /&gt;&lt;BR /&gt;my current screen (after 'vi root') is like:&lt;BR /&gt;&lt;BR /&gt;# @(#) $Rivision: 72.1 $&lt;BR /&gt;# &lt;BR /&gt;# This is a sample crontab file for the super-user.&lt;BR /&gt;# &lt;BR /&gt;# log kernel diagnostic messages every ....&lt;BR /&gt;# sample nightly ......&lt;BR /&gt;# just uncomment .....&lt;BR /&gt;#0 4 *** exec /usr/bin/calendar -&lt;BR /&gt;~&lt;BR /&gt;~&lt;BR /&gt;~&lt;BR /&gt;......&lt;BR /&gt;&lt;BR /&gt;------------------------------&lt;BR /&gt;if i can add modifications successfully, then i have to do this:&lt;BR /&gt;&lt;BR /&gt;# /sbin/init.d/cron stop&lt;BR /&gt;# /sbin/init.d/cron start &lt;BR /&gt;# crontab -l &lt;ENTER&gt; &lt;BR /&gt;&lt;BR /&gt;is that right??&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/ENTER&gt;</description>
      <pubDate>Fri, 25 Aug 2000 15:27:22 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439978#M768924</guid>
      <dc:creator>sam kim_1</dc:creator>
      <dc:date>2000-08-25T15:27:22Z</dc:date>
    </item>
    <item>
      <title>Re: crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439979#M768925</link>
      <description>After you do your modifications and save your new file...you called root.&lt;BR /&gt;Just enter:&lt;BR /&gt;crontab root&lt;BR /&gt;&lt;BR /&gt;This kicks off the root file to run at the times scheduled within your 'root' cronfile.&lt;BR /&gt;&lt;BR /&gt;You do not run cron stop or cron start.....the command crontab will execute the file you specify.&lt;BR /&gt;&lt;BR /&gt;Regards,</description>
      <pubDate>Fri, 25 Aug 2000 15:37:54 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439979#M768925</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2000-08-25T15:37:54Z</dc:date>
    </item>
    <item>
      <title>Re: crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439980#M768926</link>
      <description>...ps....plenty of folks have given great answers here..please don't forget to give them some points..&lt;BR /&gt;&lt;BR /&gt;Tx,</description>
      <pubDate>Fri, 25 Aug 2000 15:39:05 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439980#M768926</guid>
      <dc:creator>Rita C Workman</dc:creator>
      <dc:date>2000-08-25T15:39:05Z</dc:date>
    </item>
    <item>
      <title>Re: crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439981#M768927</link>
      <description>If you vi the crontab, first and formost, make a copy of the file. 'cp crontab crontab.mine'.&lt;BR /&gt;&lt;BR /&gt;Next, if you editing the file with vi, the command to make a new line (below the cursor)&lt;BR /&gt;is the letter 'o'.</description>
      <pubDate>Fri, 25 Aug 2000 15:40:12 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439981#M768927</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-08-25T15:40:12Z</dc:date>
    </item>
    <item>
      <title>Re: crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439982#M768928</link>
      <description>thanks again!&lt;BR /&gt;however, my current screen after '#vi root'&lt;BR /&gt;is:&lt;BR /&gt;&lt;BR /&gt;my current screen (after 'vi root') is like: &lt;BR /&gt;&lt;BR /&gt;-------------------------------&lt;BR /&gt;# @(#) $Rivision: 72.1 $ &lt;BR /&gt;# &lt;BR /&gt;# This is a sample crontab file for the super-user. &lt;BR /&gt;# &lt;BR /&gt;# log kernel diagnostic messages every .... &lt;BR /&gt;# sample nightly ...... &lt;BR /&gt;# just uncomment ..... &lt;BR /&gt;#0 4 *** exec /usr/bin/calendar - &lt;BR /&gt;~ &lt;BR /&gt;~ &lt;BR /&gt;~ &lt;BR /&gt;"root" [Read Only] 11 lines, 342 characters&lt;BR /&gt;-------------------------------------&lt;BR /&gt;&lt;BR /&gt;from this screen,&lt;BR /&gt;what do i have to add/modify ???&lt;BR /&gt;(for instance,&lt;BR /&gt;do i have to add something like this??)&lt;BR /&gt;&lt;BR /&gt;====================================&lt;BR /&gt;&lt;BR /&gt;# @(#) $Rivision: 72.1 $ &lt;BR /&gt;# &lt;BR /&gt;# This is a sample crontab file for the super-user. &lt;BR /&gt;# &lt;BR /&gt;# log kernel diagnostic messages every .... &lt;BR /&gt;# sample nightly ...... &lt;BR /&gt;# just uncomment ..... &lt;BR /&gt;#0 4 *** exec /usr/bin/calendar - &lt;BR /&gt;root, oracle &lt;BR /&gt;~ &lt;BR /&gt;~ &lt;BR /&gt;====================================&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Aug 2000 15:47:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439982#M768928</guid>
      <dc:creator>sam kim_1</dc:creator>
      <dc:date>2000-08-25T15:47:43Z</dc:date>
    </item>
    <item>
      <title>Re: crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439983#M768929</link>
      <description>The entries in the cron are as follows:&lt;BR /&gt;minute hour day-of-month month-of-year day-of-week&lt;BR /&gt;minute 0-59&lt;BR /&gt;hour 0-23&lt;BR /&gt;day-of-month 1-31&lt;BR /&gt;month-of-year 1-12&lt;BR /&gt;day-of-week 0-6 (0 is Sunday)&lt;BR /&gt;&lt;BR /&gt;Example&lt;BR /&gt;0 22 1-15 9 0 /usr/local/bin/&lt;SOME_COMMAND&gt;&lt;BR /&gt;&lt;BR /&gt;This says to run &lt;SOME_COMMAND&gt; at 2200 hrs on the 1st to 15th day of Sept. and only on Sundays.&lt;BR /&gt;&lt;BR /&gt;&lt;/SOME_COMMAND&gt;&lt;/SOME_COMMAND&gt;</description>
      <pubDate>Fri, 25 Aug 2000 15:58:20 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439983#M768929</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-08-25T15:58:20Z</dc:date>
    </item>
    <item>
      <title>Re: crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439984#M768930</link>
      <description>what do i have to add or modify at 'vi editor'!?&lt;BR /&gt;can i see any detail sample (after added modifications) ?!</description>
      <pubDate>Fri, 25 Aug 2000 16:01:59 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439984#M768930</guid>
      <dc:creator>sam kim_1</dc:creator>
      <dc:date>2000-08-25T16:01:59Z</dc:date>
    </item>
    <item>
      <title>Re: crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439985#M768931</link>
      <description>Not entirely sure of what you are asking.&lt;BR /&gt;&lt;BR /&gt;To modify the cron, invoke the following command (using root account as example)&lt;BR /&gt;# crontab -e&lt;BR /&gt;&lt;BR /&gt;This will place you in the crontab file for the root account.&lt;BR /&gt;&lt;BR /&gt;Assuming that your editor is vi, the standard vi commands will allow you to make the modifications. After completion, use the vi commandd of ':wq' to write and quit the file.&lt;BR /&gt;&lt;BR /&gt;To view the modifications, you can issue the command 'crontab -l'&lt;BR /&gt;&lt;BR /&gt;Again, make a copy of the file before doing the making modifications.&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Aug 2000 16:10:43 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439985#M768931</guid>
      <dc:creator>Rick Garland</dc:creator>
      <dc:date>2000-08-25T16:10:43Z</dc:date>
    </item>
    <item>
      <title>Re: crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439986#M768932</link>
      <description>vi root&lt;BR /&gt;mm hh dm mo wd command&lt;BR /&gt;&lt;BR /&gt;where &lt;BR /&gt;mm -2 digits for the minute that to what to have it executed(00-59)&lt;BR /&gt;hh -2 digits for hour (military time, e.g. 5 pm=17 (0-24)&lt;BR /&gt;dm-month day-2 digits -01-31&lt;BR /&gt;mo-month-1-12&lt;BR /&gt;wd-day of the week,  1-digit 0-Sun, 1-Monday, and so on (0-6) &lt;BR /&gt;Command- thatever command you like to execute.&lt;BR /&gt;See man crontab for details or crontab.root example.</description>
      <pubDate>Fri, 25 Aug 2000 16:17:44 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439986#M768932</guid>
      <dc:creator>Antoanetta Naghiu</dc:creator>
      <dc:date>2000-08-25T16:17:44Z</dc:date>
    </item>
    <item>
      <title>Re: crontab</title>
      <link>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439987#M768933</link>
      <description>Sam,&lt;BR /&gt;The above contributions are good. Create a cron.allow file in /var/adm/cron and include root, adm, uucp and any user name eg oracle.&lt;BR /&gt;Create your cron file with crontab -e.&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;Cheers!&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;</description>
      <pubDate>Fri, 25 Aug 2000 17:03:45 GMT</pubDate>
      <guid>https://community.hpe.com/t5/operating-system-hp-ux/crontab/m-p/2439987#M768933</guid>
      <dc:creator>CHRIS_ANORUO</dc:creator>
      <dc:date>2000-08-25T17:03:45Z</dc:date>
    </item>
  </channel>
</rss>

