How to run fuction as backgroup process?

How to call/run this function as background process?
function GetText {
param ([string]$target)
if ($target -eq "FORM") {$line = "rFORM"}
else {$line = "rREPORT"}
return $line
# call funtion
$tmp = GetText FORM
# show result
Write-Host $tmp

Hi,
Just checking in to see if the suggestions were helpful. Please let us know if you would like further assistance.
TechNet Subscriber Support
If you are
TechNet Subscription
user and have any feedback on our support quality, please send your feedback
here.
Regards, Yan Li

Similar Messages

  • How to run an OWB 11gR2 process flow using OEMS Jobs?

    How to run an OWB 11gR2 process flow using OEMS 11g Jobs?
    In other words iam trying to create an Oracle Enterprise manager job for scheduling and running an OWB Process flow.
    Can any one of you please route me to a documentation for the same,or enlist the steps involved?

    Hi,
    look at OWB API Reference (it is of 11gR1 OWB release but you can apply this procedure to OWB11gR2 as well)
    http://download.oracle.com/docs/cd/B28359_01/owb.111/b31279/api_4sqlforjobs.htm#BABEBGHA
    Regards,
    oleg

  • How to Run Jar in Background process

    Hi,
    I am develop one application in java,
    I have some problem in my application,
    whats my problem is, I want to run my jar file
    in system background, that is when i was start the system
    my jar gets ready to run the application,
    Can any one please give some idea to how to run my jar in
    background task and how to start the jar when the system
    start.
    Thanks in advance,
    Regards,
    Ganesh Kumar.L

    Hi
    It has been a while since you asked your question- I hope you still need the solution. Java typically does not support this because it is platform specific. I don't know what operating system you are working on. I assume Windows. There are numerous ways to do this in Windows. The easiest is to copy the program into the startup folder. The directory is: C:\Documents and Settings\All Users\Start Menu\Programs\Startup. Another way, less visible to the user, is to make an entry in the registry. If you place the location of the program as data in a key in HKLM\Software\Microsoft\Windows\Current\Version\Run of the registry, it will start with the system. This is hard to do in Java (for obvious reasons) however it is not impossible. You can use JNI which is really difficult to learn and hard to implement or you can use
    Process p=Runtime.getRunTime().exec({"reg.exe","add HKLM..."});This will execute the Windows utility reg.exe with the arguments provided by the second in the array of Strings. Documentation on reg.exe can be found through the command prompt. There are other ways such as modifying Autoexec.bat however they are less reliable
    Hope I helped

  • How to run EMET on all Process (tabs) of the Modern IE (Metro)

    Hi,
    i have the problem that EMET is only running on the first open Tab-process in my Modern IE.(metro)
    Body text cannot contain images or links until we are able to verify your account...
    In this picture i have 3 Tabs open in modern IE and on the EMET GUI says that only the first Tab is protected.
    On the Desktop EMET runs on all Tabs and Process of IE11.
    How can i use EMET on alle Process of my modern IE?
    IE 11
    Win 8.1 X64
    EMET 4.1

    there isn't any option to set this tab behaviour. your home page will be loaded on any new Safari window but new tab is always blank.

  • How to run servlet in separate process?

    I know I can set something in magnus.conf to allow multiple processes but I
    cant controll which process used by which servlet. Is there any way for me
    to dedicate specific process for specific servlet?
    Thanks.
    Andrei

    Hi
    It has been a while since you asked your question- I hope you still need the solution. Java typically does not support this because it is platform specific. I don't know what operating system you are working on. I assume Windows. There are numerous ways to do this in Windows. The easiest is to copy the program into the startup folder. The directory is: C:\Documents and Settings\All Users\Start Menu\Programs\Startup. Another way, less visible to the user, is to make an entry in the registry. If you place the location of the program as data in a key in HKLM\Software\Microsoft\Windows\Current\Version\Run of the registry, it will start with the system. This is hard to do in Java (for obvious reasons) however it is not impossible. You can use JNI which is really difficult to learn and hard to implement or you can use
    Process p=Runtime.getRunTime().exec({"reg.exe","add HKLM..."});This will execute the Windows utility reg.exe with the arguments provided by the second in the array of Strings. Documentation on reg.exe can be found through the command prompt. There are other ways such as modifying Autoexec.bat however they are less reliable
    Hope I helped

  • How to run Multi provider with process chain

    Hi Experts,
    I have a process chain (Including 3 cubes) , now i want to run this multi provider through process chain?
    can any one give me step by step process?
    Thanks

    Hi,
    Include 3 cubes in the Process chain.Multiprovider is a structure it will not contain data physically.while running the query it will fetch the data from 3 cubes that u loaded from Process chain and displayed in the report.....

  • Ways to run dir command in Process and get Output

    Hello,
    In one of the control in our web application, User can select any directory from his work area and can get list of directories and content of directories i.e. list of files. As working on file object is really slow so the performance is extremely poor. I am thinking of using Process object and run dir command for any directory selected by user and show the directory listing to user.
    Do you guys think it would be possible

    Its always good to work with IO buffer than low level file api. That should be irrelevant to the question as asked (if not then there might be other problems.)This is no way irrelevant but its a fact. Working with Java File api to traverse the content of the directory is really painful. Because we currently use file api to help user to traverse thru her work area.
    BTW, there are two servers. One running the app and the other have all users work areas. User can traverse the workareas content by using something \\server1\workarea1\user1\folder1 etc... in the app to see the content of any folder.A "server" in this context would be an "application" such as something like tomcat. Your client would then ask the "server" for information.
    In your case you are dealing with another file system via the windows remote file system access. So per my question it is not another "server".A server is what providing service to a client and in our case its a app server with a web app in it. The users use the web app to manage their work area(which is another file server).
    The app server and file server and physically two separate machines.
    So again, I am back to my first question, how can run dir command using Process object and get the buffer.
    Till now, I have done this
    ProcessBuilder pb = new ProcessBuilder("cmd", "dir", "c:/");
            pb.directory( new File("C:/temp")); // Or whatever directory you want for cwd
            Map<String,String> env = pb.environment();
            env.put("PATH", "C:/temp");
            try {
                 Process process = pb.start();
                   InputStream inStream = process.getInputStream();
                   new AsyncPipe(process.getErrorStream(), System.out).start();
                 new AsyncPipe(process.getInputStream(), System.out).start();
                 final int returnCode = process.waitFor();
                 System.out.println("Return code is " + returnCode);
                   System.out.println("\nExit value = " + inStream + "\n");
              } catch (Exception e) {
                   e.printStackTrace();
              }However it simply opens command prompt

  • How to run a process flow in recovery mode

    Hi,
    I have 10 Mappings in a Process Flow. While executing that process flow, All of sudden It got errored out at 5th mapping.
    Please explain me how to run the process flow again from the 5th mapping( which got errored out in the previos run)....i.e I do not want to run the first 4 mappings in that process flow again, I want to run only the remaining mappings in the process flow.
    Please let me know in case you need more information / explaination.
    Thanks in advance...

    Hi
    On the question of process flows and resuming the following article gives some ideas, it has to be designed in the process flow basically;
    http://www.rittmanmead.com/2008/05/resuming-your-etl-process-in-owb/
    The article describes some ideas and techniques for tracking success/failure of flows and restarting.
    Cheers
    David

  • How to run a process PSPPYRUN or PSPPYBLD in PeopleSoft Test Framework ?

    How to run a process PSPPYRUN or PSPPYBLD in PeopleSoft Test Framework ?
    Please advise on the below scripts ,
         1          True          Browser     Start_Login          
         2          True          Browser     Set_URL     PORTAL     
         3          True          Link     Click     id=fldra_HC_NORTH_AMERICAN_PAYROLL     
         4          True          Link     Click     id=fldra_HC_PROCESS_PAYROLL     
         5          True          Link     Click     id=fldra_HC_CREATE_PAYSHEETS     
         6          True          Link     Click     innerText=Create Paysheets     
         7          True          Browser     FrameSet     TargetContent     
         8          False          Page     Prompt     MANAGE_PAYROLL_PROCESS_US.RUNCTL_PAYSHEET.USA     add update
         9          True          Text     Set_Value     Name=PRCSRUNCNTL_RUN_CNTL_ID     AA
         10          False          Page     PromptOk          
         14          True          Button     Click     Name=#ICSearch     Search
         11          True          Text     Set_Value     Name=PAYSHEET_RUNCTL_RUN_ID     K01FIN
         12          True          Page     Save          
         13          False          Process     Run     prcname=psppybld;prctype=COBOL SQL;wait=True     
         18          False          Process     Run     prcname=psppybld     
         16          True          Process     Run     wait=True;expected=Success;     
         15          True          Button     Click     Name=#ICSave

    Build M33.106 is not available in service market place yet.
    SAP informed that customer can not find information on the next build release date from Product Availability Matrix (PAM) or anywhere from SAP site.
    Is there a way to get his information from Redwood site? Like when is the expected date for next release of the build?
    Thanks
    Nanda

  • How to run process chains

    hi,
    this is sudhakar
    pls any one tell me
    I prepaired process chain
    but i dont know how to start how it run daily automatically
    pls any one give ans
    thanks
    sudhakar

    hi,
       open your process chain -> right click on start process ->  select maintain varient -> select direct scheduling -> goto change selections tab -> select date/time give from when you want to run for eg from today 3.00 PM means in date tab give todays date and in time tab give the time info.  in bottom select periodic jobs check box and click on periodic values tab -> here select daily check and save again check and save again save. now you schedule your job at 3.00PM from today, now you need to release this job, after this settings come to your process chain click on clock symbol to activate and schedule your process chain. so this chain will run at specified time, you can check this in SM37 by giving your user name and released job as job status.
    Regards
    Sankar

  • How to restore system RAM memory when i run DI batch job process

    How to restore system RAM memory when i run DI batch job process
    I use SAP-B12005SP53 and i develop with Business Partner Object

    HI ALL
    TAKE CARE: Nothing was working in VB6, but in .NET it sets the default value !
    from help of VS.
    When you assign Nothing to an object variable, it no longer refers to any object instance. If the variable had previously referred to an instance, setting it to Nothing does not terminate the instance itself. The instance is terminated, and the memory and system resources associated with it are released, only after the garbage collector (GC) detects that there are no active references remaining.
    Garbage Collector distroyes the objects at the end of the sub of function, not in the loop.
    So use local variables when you loading the 7000 items. For me working fine and i do not have a memory problems. I am loading 50000 items with prices from EDI file, and memory usage stops at 120MB.
    1st solution  create a sub or a function to populate the data, and run this for every items by as single rutin,
      sub x
        Dim obj As New Object()
            Try
    ... put here your update code
            Catch ex As Exception
            Finally
                GC.Collect()
            End Try
      end sub
    This free up the memory when Garbage
    2nd solution: use inner loop definition
      sub x
    Try
                Do While True
                    Dim obj As New Object()
                Loop
            Catch ex As Exception
            Finally
                GC.Collect()
            End Try
      end sub
    This free up the memory inside the loop.
    I recommend to use Friend Class keyword for your addon declaration and do not use modules.
    Modules and shared classes will be free up the memory when your program terminates execution.
    For more information see MSDN help http://msdn.microsoft.com/en-us/library/7ee5a7s1(VS.80).aspx
    and http://msdn.microsoft.com/en-us/library/0x9tb07z(VS.80).aspx
    Regards,
    J
    Edited by: János Nagy on Oct 15, 2009 2:17 PM

  • How i run that delta infopackage in my process chain

    Hello Sir,
    i have a delta infopackage which sciduled in a process chain but it does not pick any delta i have to manualy run repair full infopackage dally and then delta comes in to picture my target is a dso so it does't have any problem.
    the datasourse is costamize
    delta pointer is cal day
    my question is how i run that delta infopackage in my process chain
    Thanks...

    Hi
    IS the process type "delta infopackage " is executing in the process chain or not? Plz once check in SM37 Tcode . and Why r u running the repair full request infopackage . If u miss any delta records then only u have to run the repair full request . If delta records are not extracted then better to manually extract the delta infopackage.
    Plz once check in SM37 Tcode whether the execute infopackage process step is running or not? or any error has occured in that PC.
    Thanx & Regards,
    RaviChandra

  • How to run change run in process chain when it fails

    HI All,
    How to run  attribute change run in process chain when it fails. Give me the procedure with clear description. Is there is any difference with 3.x versions in running this.
    Thanks,
    Pratap Reddy

    Hi Pratap.
    If BI Accelerator is not being implemented by ur company, in that case if change run fails u'll proceed by 'Repeat' process option as usual we do in 3.x.
    If BIA is exists, in this scenario u can not repeat as we do in 3.x. U have to drop the indexes on cubes effecting that change run and run the change runs. Once it is finished recreate BIA Indexes on cubes.
    Warm Regards,
    Ramki

  • How to check a Applicatio​n/Process Running using Labwindows

    Hi,
    How can I check whether a Process or an Application is running or not using CVI?
    I used to try this in Labview, and for check App, this is a VI in NI's website. But I have no idear about using CVI to do this.
    And also, how can I check whether a folder is open or using? Because I want to rename foder in my code, if it's open(maybe some file in the folder are open), the rename action will go wrong.
    Thanks in advance
    Solved!
    Go to Solution.

    Maybe you can use some command in windows (provided by Microsoft) to get the tasks in task mgr.
    I have searched for you and think the task list command can meet your requirement. Have a try...
    http://www.microsoft.com/resources/documentation/w​indows/xp/all/proddocs/en-us/tasklist.mspx?mfr=tru​...
    Li Yi

  • How to run the LabVIEW exe as background process?

    Dear All,
                   I want to run my LabVIEW exe as background process, which wont show as the process in the task bar as shown in the .jpeg file.
                    I want to run it as a background services as like runs in the windows processes.
                    Please suggest me something.
    Thanks,
    Nishant

    Dear Smercurio,
               Thanks for the good one, but it still requires the windows XP or later OS, when i extract the software, it gives me this error.
               Even Fire Daemon software (same one provided by Alessio in this post) is also running the same, and we even dont have to make it Automatic to start at boot up time, it automatically creates the automatic service which also runs at boot time, so not to worry about anything.
    Thanks,
    Nishant
    Message Edited by Nishant on 12-05-2006 10:12 PM
    Message Edited by Nishant on 12-05-2006 10:16 PM
    Attachments:
    rktools error.jpg ‏12 KB
    rktools error.jpg ‏12 KB
    rktools error.jpg ‏12 KB

Maybe you are looking for

  • Mount FAT32 USB flash storage in Solaris 10

    Hi guys, girls, and undecided. I've just upgraded my Winblows XP laptop to dual-boot Solaris 10. I've been trying in vain to get a few things working, the most annoying of which is my USB flash storage disk. I've tried 'pkill -HUP vold', to no avail

  • Iphone 6 doesn't work with Uconnect

    My iPhone 6 won't work with Uconnect. I can connect the phone, but as soon as I make a call it doesn't come through the speakers. I have tried a number of things suggested including deleting the blue-tooth connection both on the phone and the car. I

  • Can I use a tableData provider without to use a table of data base

    i need add rows in a table using the IDE sun java studio creator but I dont need to connect to a table to a database... only add rows in runtime when I do click in a button.. please help me...

  • Doubt in  nested table

    i have defind nested table as beow TYPE emp_rec IS RECORD ( v_sal emp.sal%TYPE, v_name emp.ename%TYPE TYPE empno_tab_type IS TABLE OF emp_rec; emp_tab empno_tab_type; i want to assign values to empno_tab_type by hard coding how to do that.

  • Count number of times a specific element occurs in ArrayList

    I need to count the number of times a specific element occurs in an ArrayList. For example, if an ArrayList 'overflow' consists of the following elements: 1,3,4,1,1,8,14,7,3,7,8,0. I need to count the number of times 4 occurs in the list. ArrayList o