How do run any vi as background process

Hi,
Thanks for your replies to my earlier queries. I have completed the VI project for UPS. Now I want to make this VI to run in background process, means we have to give a one installable file to the user, when he/she installed this file, the VI has to run as background process and it has to start whenever PC boots up. And also VI icon for displaying front panel has to go to system tray (where time is displayed). Can you please let me know how to do this.
Regards
Shivakumar Singh

I just did a quick search on the knowledge base and found a couple of examples for you wanted to do. I would suggest doing a quick search on there.
Knowledge Base Example
Knowledge Base
Joe.
"NOTHING IS EVER EASY"

Similar Messages

  • How to run weblogic server in background process on Windows XP 2002 ?

    Hi,
    I have installed weblogic server 9.2 in Windows XP 2002, I want to start my weblogic server and instances in background and keep running .
    Can anybody please provide information on the same ?
    Thanks in Advance,
    Kartheek.

    Hi Kartheek,
    If you're new to running WebLogic as a Windows service, you'll probably find it a bit tricky at first. I found troubleshooting problems, especially start-up and process-crashes, awkward at first. If you have time, you may want to check these out:
    [ http://connectionserver.blogspot.com/2009/06/weblogic-as-windows-service.html|http://connectionserver.blogspot.com/2009/06/weblogic-as-windows-service.html]
    [http://e-docs.bea.com/wls/docs81/adminguide/winservice.html|http://e-docs.bea.com/wls/docs81/adminguide/winservice.html]
    -Jones

  • How run a report in background process ?

    Hi Experts,
    I wrote a code in which I am have multiple selection screens....means in first screen there will 3 radio buttons.
    So, depending upon the radio button selected, the other selction screen will be displayed...
    So, here i want to run a report in background process...But in menubar im not able to find 'program'.
    So, please help me this to run my report in background process.. with any simple code...
    Thanks,
    Rocky.

    Hi,
    Try to see this example and adapt it for your case:
    constants :   c_jobname  like tbtcjob-jobname  value 'ZRFC_CM_38',
                  c_jobclass like tbtcjob-jobclass value 'A',
                  c_x        type c                value 'X',
                  c_msgclass type arbgb            value 'ZXXXSD',
                  c_error    type bapi_mtype       value 'E',
                  c_status   type bapi_mtype       value 'S',
                  c_msg1     type msgnr            value '177',
                  c_msg2     type msgnr            value '178'.
    data : v_jobcount like tbtcjob-jobcount.
    ranges:
      r_auart    for vbak-auart,
      r_wbstk    for vbuk-wbstk,
      r_mtart    for mara-mtart,
      r_reswk    for ekko-reswk,
      r_vtweg    for vbak-vtweg.
      call function 'JOB_OPEN'
        exporting
          jobname          = c_jobname
        importing
          jobcount         = v_jobcount
        exceptions
          cant_create_job  = 1
          invalid_job_data = 2
          jobname_missing  = 3
          others           = 4.
      if sy-subrc = 0.
      Assignment of Ranges
        append lines of:
           distribution_channel to r_vtweg,
           order_type_range     to r_auart,
           status_range         to r_wbstk,
           material_type_range  to r_mtart,
           plant_range          to r_reswk.
      Submit program in background
        submit z_beve_salesorder_list
          with p_spart   = division
          with p_file    = file_name
          with p_land1   = country
          with s_vtweg   in r_vtweg
          with s_auart   in r_auart
          with s_wbstk   in r_wbstk
          with s_mtart   in r_mtart
          with s_reswk   in r_reswk
           via job c_jobname
        number v_jobcount
           and return.
      Close the Job
        call function 'JOB_CLOSE'
          exporting
            jobcount             = v_jobcount
            jobname              = c_jobname
            strtimmed            = c_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
            invalid_target       = 8
            others               = 9.
        if sy-subrc = 0.
        Status Message
          return-type  =  c_status.
          message id c_msgclass
             type c_status
           number c_msg1
             into return-message
             with c_jobname
                  sy-datum
                  sy-uzeit.
        else.
        Error Message
          return-type  =  c_error.
          message id c_msgclass
             type c_error
           number c_msg2
             into return-message
             with c_jobname.
        endif.
      endif.
    Regards.

  • How to make a .EXE file run always as a BACKGROUND PROCESS ???

    I have a .EXE file that i want to run always on STARTUP.
    And it should run only in the BACKGROUND PROCESS LIST in TASK MANAGER.
    It should not show up on the TASKBAR or NOTIFICATION TRAY.
    Plz Help !!!! Thnx in advance

    What is the need for such a security?
    If you are an administrator and you want to run the EXE file in background in all other user accounts (which are non-admins), you can simply add the file path under the run key in registry. The registry entry is HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Run
    The EXE file is not visible to non-admin users (of course, visible to administrators), even in Task Manager.
    Depending on the application behaviour and the way it works, it may or may not be visible in system tray or task bar.
    Balaji Kundalam
    some where i read to add the path in inverted commas followed by -auto
    Eg : "C:\Users\GAURAV\Documents\****.exe" -auto
    i added it and it ran on startup but it showed on my desktop !!! i dnt want it to show on desktop !

  • How to run a job in background programatically after 10 sec

    Hi Forum,
    Can anyone tell me How to run a job in background programatically after 10 sec..
    Thanks in advance

    Hi,
    Here is the example code
    *Submit report as job(i.e. in background) 
    data: jobname like tbtcjob-jobname value
                                 ' TRANSFER TRANSLATION'.
    data: jobcount like tbtcjob-jobcount,
          host like msxxlist-host.
    data: begin of starttime.
            include structure tbtcstrt.
    data: end of starttime.
    data: starttimeimmediate like btch0000-char1.
    * Job open
      call function 'JOB_OPEN'
           exporting
                delanfrep        = ' '
                jobgroup         = ' '
                jobname          = jobname
                sdlstrtdt        = sy-datum    " You need to give the Date for execution the Job
                sdlstrttm        = sy-uzeit    " You need to give the Time for execution the Job
           importing
                jobcount         = jobcount
           exceptions
                cant_create_job  = 01
                invalid_job_data = 02
                jobname_missing  = 03.
      if sy-subrc ne 0.
                                           "error processing
      endif.
    * Insert process into job
    SUBMIT zreport and return
                    with p_param1 = 'value'
                    with p_param2 = 'value'
                    user sy-uname
                    via job jobname
                    number jobcount.
      if sy-subrc > 0.
                                           "error processing
      endif.
    * Close job
      starttime-sdlstrtdt = sy-datum + 1.
      starttime-sdlstrttm = '220000'.
      call function 'JOB_CLOSE'
           exporting
                event_id             = starttime-eventid
                event_param          = starttime-eventparm
                event_periodic       = starttime-periodic
                jobcount             = jobcount
                jobname              = jobname
                laststrtdt           = starttime-laststrtdt
                laststrttm           = starttime-laststrttm
                prddays              = 1
                prdhours             = 0
                prdmins              = 0
                prdmonths            = 0
                prdweeks             = 0
                sdlstrtdt            = starttime-sdlstrtdt
                sdlstrttm            = starttime-sdlstrttm
                strtimmed            = starttimeimmediate
                targetsystem         = host
           exceptions
                cant_start_immediate = 01
                invalid_startdate    = 02
                jobname_missing      = 03
                job_close_failed     = 04
                job_nosteps          = 05
                job_notex            = 06
                lock_failed          = 07
                others               = 99.
      if sy-subrc eq 0.
                                           "error processing
      endif.
    Regards
    Sudheer

  • How to run form in the background from command line

    please can anybody tell me to
    how to run form in the background from command line
    vishal

    Ummm....Oracle Forms is a foreground runtime kind of thing. What you want is a database procedure (or an OS utility - it depends on what sort of processing you want to do in the background).
    Cheers, APC

  • How to run a scene in background in javafx

    How to run a scene in background in javafx?

    Can you explain better your objective?
    Because all your scenes vars will be loaded when your app run. The scene is a visual artifact and running it in background could not be usual
    Regards

  • Why may any user leave background processes running at will?

    Hi all,
    yesterday, I encountered a rather strange problem with linux in common, at least
    I think so.
    In my .xinitrc, I'm starting offlineimap - a console-based mail synchronization
    tool - in the background. Being naive, I expected it to be killed along with the
    gui applications started in that file. Yet, that assumption proved wrong and I
    started asking for help on how to kill that process on #archlinux.
    The guys there (again, thanks for your help and patience!) all came up with
    plenty of ideas on how to avoid starting more than once instance of the program,
    but that wasn't really what I was looking for. The only usable option came from
    anrxc, who suggested killing the program from awesome's logout hooks.
    Not fully satisfied with the solutions, I started thinking and came up with the
    following question:
    Why is every user allowed to leave background processes on the machine
    just as he pleases, even if he logs out?
    I even tried this over ssh, where the launched commands have some sort of
    "parent" process, but even in this circumstance it was possbible to leave
    background processes behind after logging out.
    I mean, on my desktop system, this is not a big issue... I shut it down once
    every day at the least and there are no users on it besides my girlfriend and
    me. But this seems like a fundamental problem to me. Why is this allowed at all?
    Does it make sense to do it that way? What are the consequences?
    Let's discuss!

    JohannesSM64 wrote:Really, you need to find a better way to manage offlineimap than starting it in xinitrc. Automatically killing any background processes on any logout will not make linux better.
    Hmm... to me, .xinitrc is the place to start apps which should live just as long
    as the graphical user login lasts. On #archlinux, several other places were
    discussed, but none of them were "the thing":
    .bashrc
    Doesn't work, because a) the process would only get started when I open a shell,
    not when I log in and b) because finding a place to stop the process would be
    even harder.
    .bash-profile
    Only gets executed for a login shell, which I wouldn't account for a graphical
    login at all.
    wm startup script (in this case awesome's rc.lua)
    Possbile, but not much better. Would fork the process all the same, merely
    moving the problem. If X got killed, not even awesome's logout hooks would
    apply.
    Also, this approach isn't wm-agnostic, so trying out / switching to another wm
    would have the problem occur all over again.
    So what do you suggest? Do you have a good idea?
    pseudonomous wrote:
    As to the question of "why" things act this way:
    I believe this is linux display it's heritage as a mulit-user operating system that people used terminals to log into to run program on.  A big place where unix used to be (and is, to some degree, still used) was in universities where a professor or graduate student might have logged onto the system to run some program to process some large set of data.  You wouldn't want to sit around and wait for this program to finish; you'd want to run it in the background, leave, and come back and look at the results a week later, when the program finished running.  One of my friends doing applied math research still does this sort of thing.  I'd imagine it's relatively common.
    Process management was largely handled be systems administrators, and commonly you were being billed for CPU time, so it was in your interest not to leave programs that you didn't want to run running when you logged out.
    Hmmm... that seems like a rational explanation. But in the case that is the
    reason for linux' behavior: Why isn't there some kind of a mode setting? Like
    one which allows any user to keep processes alive and another one that doesn't?

  • How to run a program in background?

    Hi abapers,
    I want to run a program in background using sm36 and sm37.But i am not aware of input in that tansaction.So kindly tell me the steps ho run a program in background.
    Regards
    Ansuman

    Hi Ansuman Parhi,
    by useing T-codes
    First go to transaction SM36 to schedule the job.
    When you enter the "Start condition" for job, do as follow.
    Select processing by "Date/Time".
    Enter date as current date.
    Let us say you are scheduling this job today then give date 08/30/2007.
    Check "periodic job" checkbox.
    Hit "periodic value" button and select to run "Daily"
    Also have a look on below thread
    Re: How to run program in background?
    This is how to do it through code
    data: lv_job_name like tbtco-jobname,
    lv_job_nr like tbtco-jobcount,
    lv_job_released type c,
    lv_job_start_sofort type c,
    lv_print_parameters type pri_params.
    lv_job_name = 'Z_test'. " your background program name
    call function 'JOB_OPEN'
    exporting
    jobname = lv_job_name
    importing
    jobcount = lv_job_nr
    exceptions
    cant_create_job = 1
    invalid_job_data = 2
    jobname_missing = 3
    others = 4.
    if syst-subrc = 0.
    *submit job with all the selection screen params...
    submit (lv_job_name)
    with applfile = applfile
    with p_lines = p_lines
    with rfc_dest = rfcdest
    with p_selmtd = lv_selmtd
    with px_shsim = px_shsim
    with px_sherr = px_sherr
    user syst-uname
    via job lv_job_name number lv_job_nr and return.
    if sy-subrc = 0.
    call function 'JOB_CLOSE'
    exporting
    jobcount = lv_job_nr
    jobname = lv_job_name
    strtimmed = 'X'
    importing
    job_was_released = lv_job_released
    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 syst-subrc 0.
    message i162(00) with
    'An error occured while closing the background job.'.
    stop.
    endif.
    endif.
    endif.
    skip 1.
    write: / 'Background process', lv_job_name ,
    'called successfully' no-gap.
    write: / 'You can check the job in transaction SM37'.
    Hope it will solve your problem..
    Thanks & Regards
    ilesh 24x7

  • How to Create Excel File in Background processing with different colors

    HI All
    I am trying to create Excel file in background & send it to user through e-mail, this i could acheive using fucntion module SO_DOCUMENT_SEND_API1, but here my requirement is i want to put different colors to columns of excel & this should happen in Background processing,
    Initially i completed above requirement by using HTML type of document with attachment type 'ALI'  & formatted output using write statement & used colors, after that i took this o/p using save_list function module & then table compress...etc.
    but i don't know how to achieve same if we need o/p in excel as size of object of excel file is less than that of HTML
    I am thankfull to everybody who will help me.
    Regards
    Lokesh

    Lokesh,
    Iam also trying to populate my text file with colors as an attachment . If you know this please let me know.

  • How to run shell script using External Process in Process Flow?

    Hi,
    We can run external process using Process flow.
    I would like to run shell script as external process in Process flow.
    Could any one please explain it?
    Thanks and regards
    Gowtham Sen.

    HI,
    As you said I tried this case. I got the following error. The script is running successfully while I tested at unix command prompt.
    The error is as follows..
    tarting Execution PFPS_SMPL_RUNSHELL
    Starting Task PFPS_SMPL_RUNSHELL
    Starting Task PFPS_SMPL_RUNSHELL:EXTERNALPROCESS
    /SOURCE_FILES/CollectFiles.sh: line 1: ls: command not found
    /SOURCE_FILES/CollectFiles.sh: line 1: wc: command not found
    /SOURCE_FILES/CollectFiles.sh: line 1: ls: command not found
    Completing Task PFPS_SMPL_RUNSHELL:EXTERNALPROCESS
    Starting Task PFPS_SMPL_RUNSHELL:EXTERNALPROCESS_1
    SQL*Plus: Release 10.1.0.2.0 - Production on Fri Sep 29 22:57:39 2006
    Copyright (c) 1982, 2004, Oracle. All rights reserved.
    ERROR:
    ORA-12545: Connect failed because target host or object does not exist
    Enter user-name: SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
    where <logon> ::= <username>[<password>][@<connect_identifier>] | /
    Enter user-name: SP2-0306: Invalid option.
    Usage: CONN[ECT] [logon] [AS {SYSDBA|SYSOPER}]
    where <logon> ::= <username>[<password>][@<connect_identifier>] | /
    SP2-0157: unable to CONNECT to ORACLE after 3 attempts, exiting SQL*Plus
    Completing Task PFPS_SMPL_RUNSHELL:EXTERNALPROCESS_1
    Completing Task PFPS_SMPL_RUNSHELL
    Completing Execution PFPS_SMPL_RUNSHELL
    My scenario is---
    I am trying to return a file name from one shell script. I created a external process for that. After completion of this process, I am running another script which takes that file name and trying to create a external table. The both scripts are runnning successfully. But while I am trying to run using process flow, its not coming.
    And I am not getting the way to catch the output of external process and pass it as parameter as another external process.
    Any suggestions are welcome.
    Thanks and regards
    Gowtham Sen.

  • How get Compressor to "connect to background process"?

    Haven't use FCP 5.1.4 in a while. Just tried to export a program to Compressor for DVD Studio Pro. But after I loaded the program in Compressor and hit "Submit" I get a window saying, "Cannot submit batch. Unable to connect to background process."
    Please tell me how to move forward.
    Could this have anything to do with having just installed Leopard?
    With thanks, Duncan

    Jerry, THANK YOU! The link you sent me to the reinstall instructions for Compressor was exactly the right fix. I would still be poking around in frustration if you had not responded. The program I'm editing is for a non-profit group of developmentally disabled people who are really looking forward to seeing it, so they have you to thank. And thanks again from me. Duncan

  • How to run any java file...

    i want to run .java file..
    suppose i have some classes then i want to run those classes by providing just the name of the class..
    my program should run any .class file by just selecting the name of the class..

    rajeev-usendi wrote:
    it can be any .class file..
    it can have a main method() or init()...
    basically i want to execute that .class file and dynamically i want to access its variables which has been defined public..Why don't you just "execute" these class files within the program itself and keep the class files within the same project/jar file? Call the methods dynamically to access it's variables.
    I think could run any .java file by implementing it as Runnable and starting them as threads from the main program. I'm not sure how you'd get it to the poitn where you could .start() it though.

  • How to run a program in background and how to check the output

    I have to run my program as background job... it has a selection screen...... and i need to check the output after its complete.

    hi,
    u need to create one program for this.
    tables:btcevtjob.
    parameters:job(32).
    data:count like btcevtjob-jobcount.
    call the function modules JOB_OPEN,JOB_SUBMIT AND JOB_CLOSE
    and pass the parameters in those function modules.
    once u execute this program,
    go with sm37->provide jobname->select the option scheduled
    ->execute
    selct the entry->go with release option.
    under releasae select immediate option
    save
    select the job name again
    go with release
    status is in finished stage
    now go with spool option
    give spool no
    go for display
    o/p displayed.
    before this,go for se38->provide the name of program which u want to run in back ground->seelct variants->change->provide variant name->go for create->provide input value->go with attributes->provide description->save
    this variant name u have to give in the job_submit fm.
    or
    se38->program->execute->in back ground
    Reward points if useful,
    Thanks,
    Usha

  • How to run GR55 reports in background for cost center hierarchies

    1.  I have been asked by our users to create batch jobs to run in the background for some GR55 reports, that can then be sent directly to cost center managers via email.
    I have figured out the process to do this as long as the cost center manager only needs to see a single cost center at a time.  However, if they are in charge of multiple cost centers, we also want to send them a summarized report using the hierarchy we have set up.  I can't seem to make this work, as the job only seem to recognize the last cost center in the group and the report is for that cost center.
    Example.  cost centers 100, 200 and 300 belong to hierarchy abc.  If I run the job just for cost center 100 it is fine.  But if I have a variant to run hierarchy abc, or even if I use the range 100 to 300, all I get is a report for cost center 300.
    We cannot use BW because we only have revenue in BW.  I am being asked to make this work from standard R/3 within the GR55 realm of reporting.
    2.  In addition, the report selection criteria includes two separate plan/forecast versions.  They need to update these each month prior to running the reports and sending them out.  I looked at the variables associated with the versions and tried to set them up with default values that I hoped would update automatically so that they don't have to manually change 50 or so variants each month.  But I don't see any dynamic variables that I can use to have the system make that change without going into each variant individually.
    3.  There is another piece to this equation as well.  There is another report they want sent out in batch, but it is several pages wide in SAP and several pages long.  So when you run it in batch and either spool it or get it sent as an email, it is very ugly in the formatting due to all the page splits horizontally and vertically.  If anyone knows how to get the report to stay together like it would if you had excel integration turned on, it would be very helpful.  I have tried running it with that integration turned on, but the jobs are set up with user batch_mgr and not my id, so it isn't working well.  The batch_mgr id is just a system id, not a dialog id.  We also don't want the jobs set up with a regular user id because if people leave, then the jobs all need to be changed.

    Kim,
    I may have options for issues 1 and 2. In case of 3, what I can tell you is I understand the concern, but this is what  typically happens in some standard CO reports that are not ALV compatible, I don't think there is not much  there to do unless you add some custom code for the output.
    In regards to point 1, yes,  I have noticed that this happens in some standard and custom reporting, not sure what is going on. I came up with a work around that  made the trick for my client in a similar scenario; which is editing the cost center groups. For instance, instead  of having the group set as a range from 100 to 300,  the groups are have  listed the cost centers, 100, 200 and 300. Obviously, the disadvantage of  this option is  that it would require a bit of more cost center group maintenance.
    In regards to point 2,  I understand from your note  that your users already have set up selection variants for the report. One option for you is to get the help from a developer to create a custom period variable and tiny program that runs in batch every month that would update that variable accordingly. Once that's done, you may have to update at least once, the selection variant  attributes to change the period to a selection variable, so everytime from that point of time forward that the variable gets updated,  it will be ready with the right value for every selection variant that uses it.
    Hope this helps.
    GG

Maybe you are looking for

  • HT201407 why does my replacement iphone 4s say that is it verison when it should be sprint?

    why does my replacement iphone 4s say that is it a verison when it should say sprint? also was i supposed to be given another SIM card for my iphone?

  • Importing iWeb site to dreamweaver?

    Is it possible to import my iWeb site to dreamweaver? I want to do this because i find that iWeb is too simplistic and i find the options are limited. To be honest all i want to do is put the website on dreamweaver and fiddle around with the HTML cod

  • Transfer Video from iPone to My computer.

    I shot a Movie using my iPhone It is 37 min, 949 MB. I try to copy this movie to my Computer but no way. I can move or copy all the Pictures and Movies from my iPhone to my Computer except this Movie. I try with iTune, but he only Sync what is in the

  • F110 -Too many payment mediums created for this payment group

    Hello Gurus, Am getting below error after executing payment run F110. BFIBL02160               Too many payment mediums created for this payment group BFIBL02616               End of log for payment run 20140409 / DPA04 , PE1 / 500 We are not able to

  • How to create Dynamic Menu in 11g?

    Hello All, I am using JDeveloper/Adf 11g. Can you please tell me how to create Dynamic menu(means Menu will be created from table if we make any changes in table it will reflect to the Menu). Thanks. Neelmani Jaiswal (Madhav, Hayaghat) Edited by: Nee