How to take the cron job log in HP UX?

Hi,
How to take the cron job log in HP UX
I need to run a backup and other stuff everyday. How do I check and start cron service under HP-UX UNIX operating system? How do I write cron jobs?
A. Cron service is required to run jobs and tasks such as backup.
You must login as the root to run following commands. Each user that is using the cron service must have a cron configuration file in the /var/spool/cron/crontab directory. Also users are permitted if their name appeared in /var/adm/cron/cron.allow file
Task: Find out if cron is running under HP-UX
Type the following command at a shell prompt
# ps -ef | grep cron
Open /etc/rc.config.d/cron file
vi /etc/rc.config.d/cron
Set control variable to 1 to enable cron: CRON=1
Set control variable to 0 to disable: CRON=0
Close and save the file. To start or stop cron you can type the following command:
# /sbin/init.d/cron start <-- start cron
# /sbin/init.d/cron stop <-- stop cron
Task: HP-UX Start cron service
If cron is not running, simply type:
# cron
Task: Edit / create cron jobs
Type the following command to submit a cron job:
# crontab -e
List your cron file:
# crontab -l
Backup all your cron jobs:
# crontab -l > ~/backup.cron.jobs
Remove ALL cron job:
# crontab -r
Task: Crontab file format
Cron file format is as follows:
MIN HOUR DATE MONTH DAY /PATH/TO/COMMAND
0-59 0-23 1-31 1-12 0-6 /root/scripts/backup2tape.shEasy to remember crontab file format:
* * * * * command to be executed
| | | | |
| | | | ----- Day of week (0 - 7) (Sunday=0 or 7)
| | | ------- Month (1 - 12)
| | --------- Day of month (1 - 31)
| ----------- Hour (0 - 23)
------------- Minute (0 - 59)To run /root/script/backup at 23:00, every day, enter:
# crontab -e
Append following
0 23 * * * /root/script/backupRun foo job very weekday (MON-Fri) at 6am, enter:
0 6 * * 1-5 /root/script/backupFor more information refer to cron and crontab man pages.
Subscribe to our free e-mail newsletter or RSS feed to get all updates. You can Email this page to a friend.
Related Other Helpful FAQs:
What is Cron?
Linux Start and stop the cron or crond service
Run crontab Every 10 Minutes
Linux / UNIX Setup and run php script as a cron job
Stop Ubuntu / Debian Linux From Deleting /tmp Files on Boot
Discussion on This FAQDavid Says:
January 15th, 2008 at 12:21 am
You might note that all files normally found in /etc/init.d, /etc/rc*.d, and others are all in /sbin in HP-UX 10.20 and up.
Note too that your formatting is off in the description of the /etc/rc.config.d/cron file. Also, if you run /usr/bin/cron instead of /sbin/init.d/cron start, the /etc/rc.config.d/cron file is not used.
Regards,
Satya

I guess it would :)
btw, how did this piece miss from the contents pasted by the OP ?
The doc has given all details of CRON and missed where to see the logfiles. :)
****Added****
I tried man crontab in windows, i dont see it.i overlook most of the things, i would have done the same ;)
Edited by: Bobcatalog on Oct 23, 2008 9:40 AM

Similar Messages

  • How to debug the background job in ABAP

    Hi Guys,
    Can anyone let me know how to debug the background job in ABAP.
    Thanks in advance
    peter

    Hi,
    Goto SM37 and see the log if any is there and based on that you can check the code.
    you can't debug background job.
    Create a Variant for the Program and
    Schedule JOB in background:
    Go to SM36 create a Job
    enter Program and Variant for that program in STEP..
    click on Start Condition
    Click on DATE and TIME enter date scheduled Start and END times
    click on Period Values
    Click on HOURLY/WEEKLY etc
    CLick on RESTRICTIONS also to use further criteria.
    so your job will be scheduled and run as per your requirement.
    and in SM37 Transaction check the status of that JOB
    Check this link for scheduling jobs..
    http://help.sap.com/saphelp_nw2004s/helpdata/en/c4/3a7f87505211d189550000e829fbbd/content.htm
    Check this
    http://jplamontre.free.fr/SAP/Debug%20background%20process.htm
    https://www.sdn.sap.com/irj/sdn/wiki?path=/display/abap/abap+debugger&
    Regards,
    Padmam.

  • How to schedule the back job scheduling

    how to schedule the back job for bdc , can we use it for both call transaction and session method . how to schedule the back job schedulinng for lsmw

    hi,
    Use t-code SM36 for scheduling.
    <b>Do reward.</b>

  • How to schedule the background job using current selection screen field val

    Hello Friends,
    How to schedule the background job using current selection screen field values.
    after completion of the job the spool should be sent as a mail to SAP Inbox.
    Is there any way to create the variant dynamically by reading the current selection screen values.
    Thanks,
    Ravi

    Hi,
    To get the variant details you can use teh following FM.
    'RS_VARIANT_CONTENTS'.
    Regards,
    Ankur Parab

  • How to schedule the background job daily twice?

    Hi,
    How to schedule the background job daily twice? any conditions?
    Regards,
    Srihitha

    see the step by step procedure.
    Scheduling Background Jobs:
    1. Background jobs are scheduled by Basis administrators using transaction SM36.
    2. To run a report in a background, a job needs to be created with a step using the report name
    and a variant for selection parameters. It is recommended to create a separate variant for each
    scheduled job to produce results for specific dates (e.g. previous month) or organizational units (e.g.
    company codes).
    3. While defining the step, the spool parameters needs to be specified
    (Step-> Print Specifications->Properties) to secure the output of the report and help authorized users
    to find the spool request. The following parameters needs to be maintained:
    a. Time of printing: set to “Send to SAP spooler Only for now”
    b. Name – abbreviated name to identify the job output
    c. Title – free form description for the report output
    d. Authorization – a value defined by Security in user profiles to allow those users to access
    this spool request (authorization object S_SPO_ACT, value SPOAUTH). Only users with matching
    authorization value in their profiles will be able to see the output.
    e. Department – set to appropriate department/functional area name. This field can be used in
    a search later.
    f. Retention period – set to “Do not delete” if the report output needs to be retained for more
    than 8 days. Once the archiving/document repository solution is in place the spool requests could
    be automatically moved to the archive/repository. Storage Mode parameter on the same screen
    could be used to immediately send the output to archive instead of creating a spool request.
    Configuring user access:
    1. To access a report output created by a background job, a user must have at
    least access to SP01 (Spool requests) transaction without restriction on the user
    name (however by itself it will not let the user to see all spool requests). To have
    that access the user must have S_ADMI_FCD authorization object in the profile with
    SPOR (or SP01) value of S_ADMI_FCD parameter (maintained by Security).
    2. To access a particular job’s output in the spool, the user must have
    S_SPO_ACT object in the profile with SPOAUTH parameter matching the value used
    in the Print Specifications of the job (see p. 3.d above).
    3. Levels of access to the spool (display, print once, reprint, download, etc) are
    controlled by SPOACTION parameter of S_SPO_ACT. The user must have at least
    BASE access (display).
    On-line reports:
    1. Exactly the same configuration can be maintained for any output produced
    from R/3. If a user clicks “Parameters” button on a SAP Printer selection dialog, it
    allows to specify all the parameters as described in p. 3 of
    “Scheduling background jobs” section. Thus any output created by an online report
    can be saved and accessed by any user authorized to access that spool request
    (access restriction provided by the Authorization field of the spool request
    attributes, see p. 3.d of “Scheduling background jobs” section).
    Access to report’s output:
    1. A user that had proper access (see Configuring user access above) can
    retrieve a job/report output through transaction SP01.
    2. The selection screen can be configured by clicking “Further selection
    criteria…” button (e.g. to bring “Spool request name (suffix 2)” field or hide other
    fields).
    3. The following fields can be used to search for a specific output (Note that
    Created By must be blank when searching for scheduled job’s outputs)
    a. Spool request name (suffix 2) – corresponds to a spool name in p. 3.b in
    “Scheduling background jobs” section above).
    b. Date created – to find an output of a job that ran within a certain date range.
    c. Title – corresponds to spool Title in p. 3.c in “Scheduling background jobs”
    section above).
    d. Department - corresponds to spool Department in p. 3.e in “Scheduling
    background jobs” section above).
    4. Upon entering selection criteria, the user clicks the Execute button to
    retrieve the list of matching spool requests.
    5. From the spool list the user can use several function such as view the
    content of a spool request, print the spool request, view attributed of the spool
    request, etc. (some functions may need special authorization, see p.3 in
    Configuring user access)
    a. Click the Print button to print the spool request with the default attributes
    (usually defined with the job definition). It will print it on a printer that was
    specified when a job was created.
    b. Click the “Print with changed attributed” button to print the spool request
    with the different attributes (e.g. changing the printer name).
    c. Click the “Display contents” button to preview the spool request contents. A
    Print and Download functions are available from the preview mode.

  • How to take the Backup of all XI-Design Objects(Repository, Directroty,SLD)

    Deal All,
          Actually I am facing problems with XI Server.
    we have decided to reinstall the server. So, please tell me how to take the back up for all the scenarios that has been created in that. And also tell me how to take the back up for all the things.
    Then how the backups can be used in Newly initialed XI-Sys.
    Please help me.
    Thanks in advance.
    Danab

    Hi,
    In your IR and ID , you can export the Objects as TPZ files which can be reimported later.
    To expoert, select the SWCV in your IR or the Configuartion Scenario in ID and then Tools --> Export and then specify the directoy in your XI server to which export should be done and then export the same.
    Now, they will be available as TPZ files. When you need to reimport, tools --> Import and you can import.
    Regards,
    Bhavesh

  • How to take the data from sage system to sap r/3

    hi expects,
              how to take the data from sage system to sap r/3? which adapter is to be used?what is the format of data in sage system?how the scenarios will work ? please help me in solving this problem?

    hi rohit,
    the data transfer can be done by using SOAP adapter
    do chk this link
    http://www.sage.org/lists/sage-members-archive/2001/msg01718.html
    http://www.sage.org/lists/sage-members-archive/2001/msg01739.html
    thanx
    Sampath

  • How to stop the background job "Sap_collector_for_job_statistic"

    Dear All,
    Kindly let me know how to stop the Background job "Sap_collector_for_job_statistic" which is running everyday.
    We want to stop this background job.
    Kindly suggest.
    Regards,
    Mullairaja

    Select the Job using SM37 transaction. In the Menu Choose
    Job ---> Cancel Active Job.
    Before you do this it may be good idea to check the pid using SM50.
    It will be using a Background work process. Check the pid and the status.
    Select the same and in the Menu Choose Process --> Cancel with Core.
    Refresh and check in SM37 for the Active and Cancelled Jobs.

  • How to stop the v3 jobs?

    how to stop the v3 jobs?

    Goto SM37... Give Job Name as LIS. User  *.
    Enable Scheduld, Released and Active Check boxes...execute.
    check job belongs to your Application.
    You cancel the Active Job if you stop the Job.
    or
    You can make Released Job to Scheduled (Menu option Job --< Released --> Scheduled.).
    Hope this helps.
    Nagesh Ganisetti.

  • How to take the screen shot of my computer page by using Labview.... is there any funtions available in Labview?

    How to take the screen shot of my computer page by using Labview.... is there any funtions available in Labview?

    Another thread about this theme.
    Waldemar
    Using 7.1.1, 8.5.1, 8.6.1, 2009 on XP and RT
    Don't forget to give Kudos to good answers and/or questions

  • Please help me how to take the "Spot Color" in illustrator?

    Hi,
    Please help me how to take the "spot color in illustrator CS" using vb script (or) java script.
    Regards,
    Prabudass E.

    Prabudass,<br /><br />If you are just wanting to see if the illustrator file uses spot colors - run the Delete Unused Panel items from the default actions. then view the swatch palette in small or large List View. The color names that have a square containing a gray circle (spot) to the right of their color names are spot colors. <br /><br />The following will get the spot color name of an existing swatch named "Color1" and change it to "Nicks Swatch" and will assign the CMYK values stated.<br /><br />if (app.documents.length > 0){<br />var swatches = app.activeDocument.spots;<br />for(i=0;i<swatches.length;i++){ var currSwatch = swatches[i]; if(currSwatch.name == "Color1")<br />{currSwatch.name = "Nicks Swatch";<br />     var newColor = new CMYKColor(); <br />     newColor.cyan = 35; newColor.magenta = 0; <br />     newColor.yellow = 50; <br />     newColor.black = 0; <br />     currSwatch.color = newColor; } }}<br /><br />When this script has run the swatch palette will not immediately reflect the changes to the swatch name until you double click on a swatch and click OK or Cancel in the Edit Swatch dialog.<br /><br />I hope that I have understood your question correctly and that these responses are helpful.<br /><br />Good Luck<br /><br />Nick

  • How to cancel the background job?

    Hi,
        I have schedule the backgroud job.How to cancel the background the job.
    When i select the job and click on stop button, iam getting message "job is not active - cancellation not possiable".How to schedule the background job.
    Regards,
    T.suresh

    goto sm37
    SM36 Define Background Job
    SM37 Background Job Overview
    SM39 Job Analysis
    U can Moniter the background Jobs through T code SM37
    In the Simple Job Selection window enter the name of the Job and User of that Job and u can check the status of that Job like “JobName, Job CreatedBy, Status, Start date, Start time Duration(sec.) Delay (sec.).

  • I have been getting this message " no sim installed " too many times then my phone goes off , its iphone 4S , its really a problem i cant get calls or anything and im not sure how to take the SIM out then insert it again , what to do ??

    i have been getting this message " no sim installed " too many times then my phone goes off , its iphone 4S , its really a problem i cant get calls or anything and im not sure how to take the SIM out then insert it again , what to do ??

    Use the sim tool that came with your phone or a safety pin and just insert it into the hole at the side of the sim tray and push it in and then pull it out.  It is no more difficult than that and then just close it again.

  • How to take the mis reports in sap

    how to take the mis reports in sap

    Your question of this general type is discouraged here on SDN-BPX.  Please reaquaint yourself with the the [rules of engagment|https://www.sdn.sap.com/irj/sdn/wiki?path=/display/home/rulesofEngagement].
    [Jeffrey Holdeman|http://wiki.sdn.sap.com/wiki/display/profile/Jeffrey+Holdeman]
    SAP Labs, LLC
    BusinessObjects Division
    Americas Customer Solutions Adoption (CSA) team

  • How to take the back up of  MPOS and planning area

    Hi Gurus ,
    i am using apo dp version 5.0 .We are trying to adding a new key kigfigures in our planning object structure and planning area .
    so,we are trying  take a back up of our Planning objects structure and planning Area .
    1.How to take the back up of MPOS and Planning area  ?
    2. How loading back the data in to the same MPOS and Planning area after adding some keyfigures to MPOS and planning area.?
    I gone  thru the www.help.sap.com but i did not understand properly .
    I would really appreciate if somebody clearly eleborate  the procedural steps .
    Thanks!
    Kriss.

    Hi Kriss,
      First let me clear you some points.
    1. MPOS always contain characteristcis only not the key figures.
    2. Planning area always contain Key figures.
    3. When you create planning area at that you have to assign MPOS & Storage bucket Profile. So Automatcially Characteristcis, Key figures & Time charcteristics realetion mentained.
    Come to your point.
    1. Before creating data source which is depend up on Planning area, you should sure that your basic structure get finalized say, MPOS, Planning area & rest configuration setting. So if you think there will be some extra key figure required after finalizing planning area then in that case you can creat some extra key figure & adding to planning area before finalizing it. So that you can use these key figure in future also.
        What ever data you want to extract from planning area you required whole data extraction process. So whenever you create data source depend up on planning area then automatcially all the info Objects( Char. key figures, time char. ) come in to data source by default. So further you have to replicate it in to APO BW & create rest data extraction process depneds up on data source. So automatcially all the info objects come in to an Info Cube & your extraction process will wrk fine.
    2. Relignment can effect on data transfer from Info Cube to Planning area becz previously your charcteristcis values are different & you had taken back with those characteristcis values, now if you did relignment then charcteristcis values are suppose to be changed, so while loading data from Info cube to Planning area your charcteristcis values will not match & data will not load for those char. values only.
        See, Data always stored in to planning area ( Live cache) against characteristcis, Key figures & time characteristcis. Data is not stored in to MPOS.
    Hope this will help you
    Regards
    Sujay

Maybe you are looking for

  • Delete key lack of functionality

    Im running a Macbook pro with VM fusion when running windows software the lack of a real delete key is really irittating i know i can use back space + FN and then click to conifrm ....but agggg As the full size macs have a full keyboard i dont see wh

  • Hr report using pch not working

    I am trying to create a report using logical database pch.here is the code TABLES: objec,         gdstr. INFOTYPES: 0002,            1003. GET objec.   LOOP AT p1003      WHERE begda LE pc-begda      AND   endda GE pc-begda.      write: / p1003-abtel

  • A bug in the Music App in iOS 6.1

    I'm on an Iphone 5 running iOS 6.1. Is this happening only to me? I'm looking for a song by Janis Ian on the Music App, and as you can see in the capture, there aren't any songs by her in the library (after Janet Jackson is Jarcha)... but if I search

  • BADI on BP

    does anyone know if there is a badi during opening a Business Partern (BP transaction). I've to make an authority check on the BP. Thanks to all. Enzo

  • Applet in IE, deformed/unreadable text

    Hi all I have got a problem with a reporting software, which publishes reports via an applet. The applet works fine so far, but all the text (on buttons, text-field etc.) is hardly readable. This happens not just on reports build by myself, but also