Creating a background program...?

Right now, I want to create a background program which monitors certain folder. What I mean by background is that, I want create a program that will continue running on myLinux Machine whether I log on or off (of course the computer willl be on). Also, the program must be executing while I ssh onto the machine or do other command line on the screen.
How would I create the program so that it remains executing in background ?
Thank You

Create a shell script any start you backgound process in your .cshrc

Similar Messages

  • How to send background program output to a printer

    Hi !
    I created a background report,running via a job in background. I need to display the output of the background report via two channels : a printer and an e
    mail. I created the output of the report by using the command Write, and the output is printed to screen. However this solution is good for an online report and not for background report ? and my question is how to send the background report output to a printer in background .
    Thanks
    Moshe

    Hi,
    If you are using JOB_OPEN, JOB_SUBMIT & JOB_CLOSE to execute the program in background, then in the FM JOB_SUBMIT you have a parameter PRIPARAMS for which you need to pass a value.
    Before that get all the Print Parameters using FM GET_PRINT_PARAMETERS. Then pass the same to PRIPARAMS.
    This would solve the problem.
    Best regards,
    Prashant

  • How to create a background job without a variant ?

    How to create a background job without a variant ?

    Hi,
    Go to se38.. specify the program name and execute Or use Tcode
    On the selection screen specify the variant...
    Then from the menu options choose program->excute in background...
    In this way we can crate a backgroup job with out crateing any varinat for the report...
    Satya.

  • How to identify what are all the events are created in background jobs?

    Hi all,
    how to identify what are all the events are created for  background jobs. And what events gets triggered for a particular job.
    thanxs
    haritha

    Hi Haritha,
    JOB is a program which starts to a determined point of time and executes some standard programs in the system. JOBs can be planed to a determined point of time on the regular basis (every night, for example) or to some discret time moments. So, the JOB can be planed and then will be started automatically without the manual start.
    Realtime programs are understood in the most cases as actual program execution which is started by somebody to the actual moment of time.
    Typically per JOBs some special processes will be started that should be executed automatically and regularly: for example, IDOC application, some correction reports, statistic updates etc.
    Standard jobs are those background jobs that should be run regularly in a production SAP System These jobs are usually jobs that clean up parts of the system, such as by deleting old spool requests.
    Use
    As of Release 4.6C, the Job Definition transaction ( sm36 ) provides a list of important standard jobs, which you can schedule, monitor, and edit.
    Standard jobs are those background jobs that should be run regularly in a production SAP System. These jobs are usually jobs that clean up parts of the system, such as by deleting old spool requests.
    for more information you can go thru the following thread:
    http://help.sap.com/saphelp_nw70/helpdata/en/24/b884388b81ea55e10000009b38f842/frameset.htm
    About Events:
    Events have meaning only in the background processing system. You can use events only to start background jobs.
    Triggering an event notifies the background processing system that a named condition has been reached. The background processing system reacts by starting any jobs that were waiting for the event.
    Types of Events:
    There are two types of events:
    1.)System events are defined by SAP. These events are triggered automatically when such system changes as the activation of a new operation mode take place.
    2.)User events are events that you define yourself. You must trigger these events yourself from ABAP or from external programs. You could, for example, signal the arrival of external data to be read into the SAP system by using an external program to trigger a background processing event.The event scheduler processes an event if the event is defined in the system.
    For example, if a system (System 1) receives an event from another system (System 2), the event scheduler of System 1 processes the event only if it is defined in System 1. That event does not need to be defined in System 2 (the sending system).
    You define an event by assigning a name (EVENTID) to it. When defining an event, you do not define the event arguments.
    for more information you can go thru the following thread:
    http://help.sap.com/saphelp_nw04s/helpdata/en/fa/096e2a543b11d1898e0000e8322d00/frameset.htm
    When you schedule the process chain or infopackages the jobs associated with it run in the background mode. In case you want to create a job for a specific activity you can do so in SM36. You would be creating jobs that would get executed in any one of the options:
    1. Immediate
    2. Date & Time
    3. After event.
    4. After job.
    5. At Operation mode.
    In case you want to view the job logs go to sm37.
    Also Pls check DB02 for database performance and ST03 for workload .
    Analyse u will have an idea ,
    *pls assign points,if info is useful**
    Regards
    CSM reddy
    null

  • VF04 - SDBILLDL - Invoices not created in background

    A batchjob has been created for the program SDBILLDL.
    The variant has been setup properly when testing it in the foreground.
    A list of sales orders is displayed in the billing due list and it is possible to perform billing in foreground.
    When running the program in background with the same variant, the invoices are not created.
    This was not a problem a few days ago, but at some time, the background billing stopped working.
    Do you have any idea on what might have caused this problem?
    The sales orders have deliveries and delivery related billing is used.
    I have also tested to use the old program SAPMV60S with a similar variant, which works fine in foreground.
    But when running it in background, the invoices are not created.
    Spool problem?

    Hi,
    Background jobs for creating billing docs has to be done using tcode VF06.
    Check the following [thread|Background for billing job in VF06; for more info.
    Regards,
    Amit

  • Is it possible for a background program to produce TIME_OUT Dump?

    Hello Experts,
    When i have analyzed the Dumps using Tcode ST22 in my production system, I found many dumps.
    My doubt is that, is it possible for a program scheduled to run in background to produce TIME_OUT dump?
    I faced a scenario like this. What could be done to avoid this?
    Can this be because of some settings problem? If so, what kind of settings has to be changed?
    Thanks and Best Regards,
    Suresh

    Hi,
    As far as time out for Background programs are concern I think there is no time out for programes executing in background
    First try to improve performance of your program like read with binary search , create table index etc.
    Then consult basis ppl in this regard they can set big time out slot so that your probram will not go into dump.
    Regards
    Bikas

  • Reworded: Running a background program

    For example, I have a java program that checks the database if there are any new insertions. The question I want solved is that I want my java program to be executing in the background whether there is another thread or process being executed in my Linux machine. Basically, I want the java program to poll for new insertions. I heard of a command called Thread.Sleep(1000) which pauses the process for 1 second. IS there any other solutions for creating a background polling thread?

    The other question is "What do you mean by background?" Runs at system startup time? Runs when you explicitly invoke it? There are several Linux/GNU utilities which will run programs (like the JVM) without interaction, but you have to be a bit more explicit in what you want to do with the program. And, no, Thread. sleep() does not put the task "in the background" - it just suspends it for the specified time period.

  • Calling smartform in a background program

    Hi Experts,
    I want to call one smartform in a background program, i am very new to smartform .Can anybody help me to do this?
    I want to suppress the dialog box appearing while directly executing the smartform?
    Also please tell me how i can give the smartform data to spool?
    Regards,
    Ratheesh

    Hi Ratheesh,
    First you create Form . in print program you have to read the data from data bace table table "nast". and Based on the  NAST-OBJKY retrive your data.
    DATA : RETURN_CODE TYPE SY-SUBRC,
           US_SCREEN TYPE C,
           P_ORDER LIKE NAST-OBJKY.
    DATA: RETCODE   LIKE SY-SUBRC.         "Returncode
    DATA: XSCREEN(1)  TYPE C.              "Output on printer or screen
    DATA: REPEAT(1) TYPE C.
    DATA : LT_TEXT LIKE TLINE-TDLINE.
      CLEAR RETCODE.
      XSCREEN = US_SCREEN.
      SELECT SINGLE *
                     FROM NAST INTO NAST WHERE OBJKY = NAST-OBJKY.  "P_VBELN.
      PERFORM GET_DATA.
      CASE RETCODE.
        WHEN 0.
          RETURN_CODE = 0.
        WHEN 3.
          RETURN_CODE = 3.
        WHEN OTHERS.
          RETURN_CODE = 1.
      ENDCASE.
    FORM GET_DATA .
      P_ORDER = NAST-OBJKY.
      SELECT VBELN
             AUDAT
             WAERK
             KUNNR
             VDATU
             FROM VBAK
             INTO TABLE TB_VBAK
             WHERE VBELN = P_ORDER.
      IF NOT TB_VBAK[] IS INITIAL.
        SELECT VBELN
               POSNR
               MATNR
               KWMENG
               NETPR
               NETWR
               BRGEW
               GEWEI
               VOLUM
               VOLEH
               CHARG
               WERKS
               POSEX
               KDMAT
               FROM VBAP
               INTO TABLE TB_VBAP
               FOR ALL ENTRIES IN TB_VBAK
               WHERE VBELN = TB_VBAK-VBELN.
      ENDIF.
    endform.
    After complete this go through NACE transaction in that select required out put type and give you form name and Program name.
    then go through the transaction in display mode and select the print preview. you will get your lay oput.
    here You must give output type in proper.

  • Inbound background program

    hi all,
    may i know for inbound in WE20, when we choose trigger by background program in inbound options tab under processing by function module, how to know the background program?
    thanks

    If you are opting the option process in the background in the inbound side for particular message type.
    Then you check all the idocs in transaction we02, you will see all idocs of that particular message type are in 64 status.
    To process these idocs in background just execute the program RBDAPP01 and create a variant with these idocs and schedule the background job in SM36 with the variant.

  • CS3 - creating a background

    Hi, I'm using InDesign CS3 and trying to create a background/border that will appear on all pages of a 20 page document. If possible, so the graphics won't move when I add text etc. Any advice? I'm new to this program, so it's taking me time to figure out. Any help is greatly appreciated!

    All new documents start with a master page called A-Master. Any new pages added are based on that master unless you specify otherwise. As a new user I expect you didn’t spend much time changing this, so all 20 pages in your document are based on A-Master. You can easily check this by looking in the Pages panel. Do all 20 apge thumbnails have an A on them? Good.
    Double-click on the master page and open the Layers panel. Create e new layer named “Background” and drag it to the bottom of the layer stack. Add your background and make sure it bleeds if necessary. Lock the Background layer. Done.

  • Background program is not working properly,when i am using job_open ,submit

    hai ,
    i am using job_open ,submit and job_close for scheduling one program background and use submit to another program ,all are working properly but it is working as a forground program not as abackground program. i want to work it as a background program.
    plz give a solution.

    Hi,
    Please find a sample program format for executing a submit program in background.
    DATA: number           TYPE tbtcjob-jobcount,
          name             TYPE tbtcjob-jobname VALUE 'JOB_TEST',
          print_parameters TYPE pri_params.
    CALL FUNCTION 'JOB_OPEN'
      EXPORTING
        jobname          = name
      IMPORTING
        jobcount         = number
      EXCEPTIONS
        cant_create_job  = 1
        invalid_job_data = 2
        jobname_missing  = 3
        OTHERS           = 4.
    IF sy-subrc = 0.
      SUBMIT submitable TO SAP-SPOOL
                        SPOOL PARAMETERS print_parameters
                        WITHOUT SPOOL DYNPRO
                        VIA JOB name NUMBER number
                        AND RETURN.
      IF sy-subrc = 0.
        CALL FUNCTION 'JOB_CLOSE'
          EXPORTING
            jobcount             = number
            jobname              = name
            strtimmed            = 'X'
          EXCEPTIONS
            cant_start_immediate = 1
            invalid_startdate    = 2
            jobname_missing      = 3
            job_close_failed     = 4
            job_nosteps          = 5
            job_notex            = 6
            lock_failed          = 7
            OTHERS               = 8.
        IF sy-subrc <> 0.
        ENDIF.
      ENDIF.
    ENDIF.
    Thanks & Regards,
    Harish

  • How to create a background image for each item in a List object

    Hello.
    I am trying to create a background image that displays whenever a user posts something to a list.  For example when a user posts text it would appear in a list.  The new item in the list would contain a specific background image with the users text appearing on top of the background image.  I do not want a background image for the entire list, rather each item within the list.
    I am not sure how clear this is so I added an image below.  When a user enters text in and clicks the "post-it" button their text would appear below with the sticky note background. 
    I am not sure which list type would be best for this problem or how to create insert the image, so I am open to suggestions. 
    Thank you for your help.  Any advice or guidance will be greatly appreciated!

    Hi
    the easiest way would be with itemRenderer.
    You have to do two things:
    1. In your list declaration use a item renderer: <mx:List itemRenderer="myRenderer"/>
    2. create a flex component myRenderer that will be the single item. This can be a canvas with a background image and a text field on it.
    When you add a new item to the list, a new myRenderer item will be created and the data property will be passed to it. So you have to put "data" in your textField.
    If you need more help try looking at Tour de Flex samples, they're pretty easy.
    Andrei

  • Problem in creating a BDC program for transaction cj20n(project sytem)

    Hi all,
    I am trying to create project,WBS element ,network and activity using a BDC program,
      I am able to create to a recording for the transaction cj20n using tcode shdb but when i run the recording it doesnt run properly i am not able to create any thing.
    I get error saying that a particular field doesnt exist on the screen.
    Is possible to create a BDC program for transaction CJ20N ?
    Also is there any other alternative  apart from using a BAPI or a function module.
    Thanks,
    Nishant

    Hi,
        Check below link for BAPIs of transaction cj20n.
    [BAPI for cj20n|BAPI for CJ20N transaction]
    Thanks,
    Asit Purbey.

  • How to show the first page and then rest will be created in background

    Dear Friends,
    I am suffering from some seriouse issue of slow opening of report....
    I am using vs2005 and asp.net 2.0 and crXI R2 sp4,
    using oledb for getting data from ms sql server 2005.
    Now my one report called accounts ledger
    when i execute the report query it takes 1.03 mins for 515000 records..no issue with it ,
    when i execute the report from report desginer for 515000 records its taking 26 mins . It is generating all
    32000 pages.
    Now same report i run from my web based erp application it takes 30mins to execute 32000 pages now
    this is too much time it is taking and now our client is fedup of ussss..
    So is there any way that we can show First page at the earliest and rest of the pages willl be getting created in background? is it possible ?
    We have to give them the solution as sson as possible...
    can anyone suggest the diff ways to get out of this problem .......
    Please ur co operation will be appriciated....
    thansk

    Hi Mithun,
    Here are a few points related to performance issue. These might be helpful.
    The performance of a report is related to:
    External factors:
    1. The amount of time the database server takes to process the SQL query.
    ( Crystal Reports send the SQL query to the database, the database process it, and returns the data set to Crystal Reports. )
    2. Network traffics.
    3. Local computer processor speed.
    ( When Crystal Reports receives the data set, it generates a temp file to further filter the data when necessary, as well as to group, sort, process formulas, ... )
    4. The number of records returned
    ( If a SQL query returns a large number of records, it will take longer to format and display than if was returning a smaller data set.)
    Report design:
    1. Where is the Record Selection evaluated?
    Ensure your Record Selection Formula can be translated in SQL, so the data can be filter down on the server, otherwise the filtering will be done in a temp file on the local machine which will be much slower.
    They have many functions that cannot be translated in SQL because they may not have a standard SQL for it.
    For example, control structure like IF THEN ELSE cannot be translated into SQL. It will always be evaluated
    in Crystal Reports. But if you use an IF THEN ELSE on a parameter, it will convert the result of the condition to
    SQL, but as soon as uses database fileds in the conditions it will not be translated in SQL.
    2. How many subreports the report contains and in section section they are located.
    Minimise the number of subreports used, or avoid using subreports if possible because
    subreports are reports within a report, and if you have a subreport in a details section, and the report returns 100
    records, the subreport will be evaluated 100 times, so it will query the database 100 times. It is often the biggest
    factor why a report takes a long time to preview.
    3. How many records will be returned to the report.
    Large number of records will slow down the preview of the reports. Ensure you only returns the necessary data on the report, by creating a Record Selection Formula, or basing your report off a Stored Procedure, or a Command Object that only returns the desired data set.
    4. Do you use the special field "Page N of M", or "TotalPageCount"
    When the special field "Page N of M" or "TotalPageCount" is used on a report, it will have to generate each page
    of the report before it displays the first page, therfore it will take more time to display the first page of the report.
    If you want to improve the speed of a report, remove the special field "Page N of M" or "Total Page Count" or formula that uses the function "TotalPageCount". If those aren't use when you view a report it only format the page requested. It won't format the whole report.
    5. Link tables on indexed fields whenever possible.
    6. Remove unused tables, unused formulas, unused running totals from the report.
    7. Suppress unnecessary sections.
    8. For summaries, use conditional formulas instead of running totals when possible.
    9. Whenever possible, limit records through selection, not suppression.
    10. Use SQL expressions to convert fields to be used in record selection instead of using formula functions.
    For example, if you need to concatenate 2 fields together, instead of doing it in a formula, you can create a SQL Expression Field. It will concatenate the fields on the database server, instead of doing in Crystal Reports.
    SQL Expression Fields are added to the SELECT clause of the SQL Query send to the database.
    11. Using one command as the datasource can be faster if you returns only the desired data set. It can be faster if the SQL query written only return the desired data.
    12. Perform grouping on server
    This is only relevant if you only need to return the summary to your report but not the details. It will be faster as less data will be returned to the reports.
    Regards,
    Shweta

  • Creating a service program in inventory results in 'no data found error'

    Hi,
    i tried creating a service program as was given in the sep 2001 issue of the crm newsletter. While saving the item it results in the following error:
    FRM-40735 ON-INSERT trigger raised unhandled exception ORA-01653
    ORA-01403 No data Found
    What could be the possible cause for the occurrence of this error?
    Thanks & Regards,
    Nithya

    You're doing a lot of unnecessary conversion of dates into character strings and back into dates again.
    Keep it simple and just use dates as-is:
    SQL> select * from T_REC_PER;
                     VAL START_PERIOD         END_PERIOD
                       5 15-OCT-2008 00:00:00 30-OCT-2008 00:00:00
                       6 31-OCT-2008 00:00:00 06-NOV-2008 00:00:00
                       8 07-NOV-2008 00:00:00 12-NOV-2008 00:00:00
    SQL> declare
      2     ls_per   date := to_date('17-OCT-2008','DD-MON-YYYY');
      3     ln_val   number;
      4  begin
      5     select t.val
      6     into   ln_val
      7     from   T_REC_PER t
      8     where  ls_per between t.start_period and t.end_period;
      9     dbms_output.put_line(ln_val);
    10  end;
    11  /
    5
    PL/SQL procedure successfully completed.
    SQL> declare
      2     ls_per   date := to_date('09-NOV-2008','DD-MON-YYYY');
      3     ln_val   number;
      4  begin
      5     select t.val
      6     into   ln_val
      7     from   T_REC_PER t
      8     where  ls_per between t.start_period and t.end_period;
      9     dbms_output.put_line(ln_val);
    10  end;
    11  /
    8
    PL/SQL procedure successfully completed.

Maybe you are looking for

  • Context-sensitive help breaking in RoboHelp 8

    Peter - you're a lifesaver and I hope you're out there today . . . or somebody's out there who can help . . . I shouldn't have said that in my last post about something being the "wackiest" thing I'd ever seen in RoboHelp. Now we have a new problem t

  • Connecting two monitors

    ok so the mac pro has two different monitor ports after about an HOUR of searching i finally figured out the second port is an ADC port. now i want to hook up a vga monitor to it. is there and ADC to vga adapters out there. I have only found ADC to D

  • Downloaded Library Content still not showing up

    Okay, so in the middle of a huge project I was watching a online tutorial on Encore CS6 about building a dvd menu. Well, the guy goes to his library and has all kinds of options for pre-made menus and buttons etc. etc. These buttons are missing for m

  • I am using ION U Record EZ vinyl/tape converter and cannot upload content onto itunes

    I am using ION U Record vinyl/tape converter which uses itunes.  I can record the track but it does not upload content onto itunes. I have successfully transferred many songs but have now updated to a later version of itunes and can no longer upoload

  • Help - How to stop Bluetooth on BB10 from repeatedly trying to connect to unknown device

    Hi,  So about a week ago I was trying to connect my Q10 to a Bluetooth speaker. In the process of this (and rather stupidly) I tried to connect to some unknow device that is not mine (nor was it the bluetooth speaker). I quickly deleted this connecti