Agent script - runs only once.

Hi all

I wrote a custom script agent that uses a file of DOS commands to run a powershell script that creates a text file, then type this file on the screen.

The content of the text file is here:

TABLE PT_GBES02_USER_COUNT

START_SAMPLE_PERIOD

Host.String.id = ukstrgbes02.peroot.com

PT_GBES02_USER_COUNT = 410

END_SAMPLE_PERIOD

END_TABLE

The batchfile BACK content: (PT_GBES02_USER_COUNT. BAT)

off @echo

PowerShell-folder e:\Scripts\CountUsers.ps1

type e:\scripts\usercount.txt

Content of the powershell script.

$usercount = (get-ChildItem E:\PST-filtre "GMS-BlackBerryServer *.pst.db"). County

Clear-Content E:\Scripts\UserCount.txt

E:\Scripts\UserCount.txt Add-Content "TABLE PT_GBES02_USER_COUNT".

Add content E:\Scripts\UserCount.txt "START_SAMPLE_PERIOD".

Add content E:\Scripts\UserCount.txt «Host.String.id = ukstrgbes02.peroot.com»

Add content E:\Scripts\UserCount.txt "PT_GBES02_USER_COUNT is $usercount".

Add content E:\Scripts\UserCount.txt "END_SAMPLE_PERIOD".

Add content E:\Scripts\UserCount.txt "END_TABLE.

I created the agent and deployed the agent on the server. The agent runs the script once but not again. I need to run periodically.

Every time I have stop and start the agent running the script once but again its not repeated. I do not also the agent Agents/hosts with agents screen

but it is visible in the agent status page.

I have written other agents of script (even if not using powershell) and they all seem to be normally repeats.

The only messages in the log file are

2012-11-09 09:25:36.934 ECHO VERBOSE [IncomingMessage-4444] com.quest.glue.core.agent.AgentInstance - starting data collection

2012-11-09 09:25:37.293 ECHO INFO [IncomingMessage-4444] com.quest.glue.core.agent.AgentInstance - started data collection

No idea what I did wrong?

Hi John, it is resolved. It was the command line I used to start PowerShell

I replaced the bottom and everything works fine now

PowerShell - ExecutionPolicy RemoteSigned-NoProfile interactive non - command -.<>

Tags: Dell Tech

Similar Questions

  • While the loop within a box Structure runs only once a target FPGA

    I have a card OR cRIO-9012 RIO for the HIL system. I have a target FPGA file when I use a While loop within a while loop I use the box Structure to check a real condition inside I have the function of activation of the ports and selecting the analog and digital ports. But for my code the code runs only once on repeted times that we have in the LabVIEW environment.

    I also need help to optimize the code. I've seen people using While loop timed in the FPGA target I don't use in both cases.

    I've attached my FPGA with the Version of LV2012 file.

    Waiting for your comments.

    Thank you and best regards,

    Ganesha Moorthy

    You have while loops inside the structure to deal with a constant of false cable to the stop condition. These loops will obviously never stop so browse your outside while loop (containing the case structure) can never.

    This has nothing to do with the FPGA target, the same thing will happen in the development environment.

  • My new Publisher El 12 runs only once after restarting the PC - how to fix?

    My new publisher of 12 items, runs only once after restarting the PC and seems to work well. I did a "clean install" repeatedly (cleared Temp files, shut down all applications, including Norton Antivirus and then installed DVD after a clean reboot). I can launch organizer of 12 elements several times, but the photo that editor runs only once. After that, I have to restart the PC, and then I can run the Editor again, but once again, only once. I also first 12 items for video files - no problem, he launched several times. I see that Alfredo has a similar problem: How can I fix?... is it a bug of El 12?... Thanks for your help... k-paul

    Thank you very much Peru Bob... your statement works... of course, this stitching is 12 items of closing/out not really closes it (which is why I could not re - start it), so there's always a problem... I can live with that, but why would the program stops not when I close?... k-paul

  • The initialization Code: run only once at T = 0?

    Hello

    Is it possible to run some ActionScript only once at the beginning of the flash application?

    There are GIFs that I need to download dynamically from the server that once that will be used on the buttons. When we go to another scene and return, the GIFs are downloaded again.

    Thank you
    FG

    #initclip and #endinitclip must be applied to a movieclip. If this movieclip is on stage as part of the _root timeline and governing has played more than once, your code initialization, attached to the timeline of the movieclip would run only once.

    Anyway, there are some easier ways to accomplish what you want directly. for example, the following code in the conditional runs, at most once little matter how many times the frame is played:

  • Tip action that run only once

    Hello

    Question: What is the best way to get a tip action to execute only once during the lifetime of an execution?

    My script: I have a project with 80 slides in there to learn. Slide 10, 20, 30, 40, 50, 60, 70, 80, 90, 100, I use onEntry event to perform actions advanced designed for each of these numbers. Given that users are allowed to go forward and backward slide, slide 10-100 event are executed several times, depending on how much time users visit these specific slides. My question is, what is the most effective way to ensure that a tip action is executed only once. Say a user reached slide 10 and advanced action "foo10" is executed. If this user has decided to return to slide 10, I don't want to foo10 advanced action to be executed again.

    My solution: I would create Boolean variables for each of the advanced actions. foo10 ... foo100. If the corresponding var bool is false, do not run the action, run another action assigned.

    Question: What is the best way to get a tip action to execute only once during the lifetime of an execution?

    Thank you.

    If it was a success (for an interactive object) event, you could disable this object with the same action as the advanced conditional action. Using the system variable LastVisitedSlide will probably exclude not all possible situations. A Boolean variable is probably the best choice. Since you're on 9 Captivate, make sure to use shared instead of shares advanced actions, you will save time (and the size of the file).

  • the event structure cannot combine with other events and run only once

    Why it will always get stuck when I combined the 'new user add' event to the event of 'Login '?

    It works for me when I separate the two, but the 'Add a new user' button can work but only once for the structure above, program will be blocked on the second time that I press the button "add a new user".

    It has already been said, you must use that a single structure of the event and not 2. Also, avoid using local variables (better store data in a shift register and not in an indicator) how you do it, it can cause bad racing conditions.

    Actually here you just don't another data storage since you have a file. Don't store data file to the root of the C drive, you do not have write permission. Use the default data folder or the folder of the application.

    I have attached a simple example. I guess that's a work at home? Please make my account help: try to understand why your VI does not work and try to find a solution by yourself. Modify my sample and play with him. This is how you learn LabVIEW. If something is not clear, post here, and we can explain/help.

    Edit: has the 'connection' event, I don't check against whether the file exists or not. Difficulty of this part, gives too little practice.

  • producer consumer loop run only once?

    Hello here

    In my VI, the loop of the producer seems to operate continuously, but the loop of consumer only run once.

    I did not use producer/consumer patterns before, could someone give me some ideas why this is happening?

    My code is attached.

    Thank you in advance.

    Faouzi

    It would be the wrong choice to use a structure of the event into the loop of the consumer.  As it is configured, you must generate a leave mouse or mouse event enter on the graph of waveform for the loop of consumer to complete its first iteration.

    Remove the structure of the event.  you don't need to update a chart.

  • the animation code runs only once

    Hi all

    import bb.cascades 1.2
    
    Container {
        Container {
            layout: StackLayout {
                orientation: LayoutOrientation.LeftToRight
            }
    
            Label{
                overlapTouchPolicy: OverlapTouchPolicy.Allow
                text:"Initial Text"
                minWidth: 600
                animations: parallelAnimation
            }
            Container {
                overlapTouchPolicy: OverlapTouchPolicy.Allow
                layout: DockLayout {
    
                }
                ImageView {
                    overlapTouchPolicy: OverlapTouchPolicy.Allow
                    imageSource: "asset:///images/hotels.png"
                }
                ImageView {
                    overlapTouchPolicy: OverlapTouchPolicy.Allow
                    id:imgsource
                    imageSource: "asset:///images/hotels.png"
                    opacity: 1.0
    
                }
            }
            gestureHandlers: TapHandler {
                onTapped: {
                    if(parallelAnimation.isPlaying()){
                        parallelAnimation.stop();
                    }
                    parallelAnimation.play();
                }
            }
    
            animations: [
                ParallelAnimation {
                    id:parallelAnimation
                    TranslateTransition {
                        id:translate
                        toX: -20
                        toY: -300
                        //duration: 1000
                    }
                    ScaleTransition {
                        id:scaletransition
                        toX: .2
                        toY: .2
                        //duration: 1000
                    }
                    FadeTransition {
                        id:fadetransition
                        toOpacity: 0
                       // duration: 1000
                    }
    
                    onEnded: {
                        console.log("On ended parallel animation");
                        translate.toX = 0
                        translate.toY = 0
                        scaletransition.toX=1
                        scaletransition.toY=1
                        fadetransition.toOpacity=1
                        //parallelAnimation.stop();
                    }
                }
            ]
        }
    
    }
    

    I made the image to translate into original poision in onEnded ParallelAnimation but its not working. The label is visible only after tapping the container again. And further taps plays not the animation.

    Please help me with this.

    use a sequential Animation:

    first run your ParallelAnimation

    then the following reset of translations

  • JavaScript to run only once

    I need to make several calls javascript from my Captivate 6 project, but anywhere, I put the javascript calls (OnEnter for a slide, OnSuccess for click box or the button), the javascript code is only run the first time.  It is a major wait up for me, and it makes no sense.  I can add a second slide and place a javascript call and it also works a long time that I did no other call javascript to this day.  It's SO frustrating, and unless I'm missing something, this is obviously a bug in Captivate. It is easy to reproduce the problem.  all you have to do is to create a new project and add the 2 boxes and add javascript both calls.  Then click on one, then the other.

    Huh, I got the flex project and put it on the Web server, and it works.  There must be a problem with it being in charge of Flex.  Sorry!

  • Script runs only if the group exists.

    Hello

    I did some searching in the forums, but did not find what I was looking for.  Also tried Google without success.  In any case, it's probably a simple request, but I can't seem to make it work for anything.  I'm looking for is an if statement that will check to see if a specific group exists in the document by default before running the script is to bring another document layers.  In addition, if there is also a way to check if a specific group (name) does not exist before running the code, as well.  Thanks in advance for any help.

    dgolberg

    This might help...

    if( layerExist("Layer 1")){
        alert("Layer/Group Exists");
        }else{
            alert("Layer/Group does not exist");
    }
    function layerExist(lyrName){
          var desc = new ActionDescriptor();
          var ref = new ActionReference();
          ref.putName( charIDToTypeID( "Lyr " ), lyrName);
          desc.putReference( charIDToTypeID( "null" ), ref );
          desc.putBoolean( charIDToTypeID( "MkVs" ), false );
          try{
          executeAction( charIDToTypeID( "slct" ), desc, DialogModes.NO );
          }catch(e){return false;}
          return true;
    };
    
  • Timed loop runs only once with pulse train?

    It is a VI that attempts to drive a loop timed with a train of pulses 6608 OR map attached.  My timed loop never appears to run more than one cycle.  No error is reported.  I suspect it's because I'm not set up correctly with NOR-DAQ.  Any help would be most appreciated.

    WB

    Hi Wb,

    Take a look near the timed loop, I can see that the value of dt period is set to 1000. This period is used to scale based on synchronization source units. In this case, the clock contains 0.5 second pulses. Change the dt to a value of 2 has allowed me to see the timed structure to go as planned. See the image below for more details:

    I hope this helps. Let me know if this behaves that way even on your system.

    See you soon!

  • [Beginner] Start button run sub vi only once

    Hi, I am very confused by what it seems, very simple task.

    I have a piece of code and I need to connect it to 'start' button that will run once when the button is pressed, run once more, if I press the button again and so on.

    I tried with 'while' loop and true/false button connected to him, but, as you know, code inside the loop runs continuously as long it is true which is incorrect, it does not stop when it should.

    I woul hold it like this: press start-> code in the block runs once and that's it, no more unsless I press the new button...

    Please advice.

    PS: I have attached the vi piece I need to connect with button. He is currently working as intended but I can't seem to make it executable with button.

    An event loop is the way to go, but since you're a beginner. This is the Basic, simple way:

    You must click with the right button and change the mechanical action of lock when you press on (or exit) to run only once.  If you set it to spend it will switch.

  • Mini Mac starts only once

    Hello

    I have an old Mac Mini since 2006 with the following configuration: 1, 66 GHz Intel Core Duo, running Snow Leopard 10.6

    In recent months, it runs only once. I explain. If I shut it down, on reboot, I have Blue with grey wheel screen. I tried a lot of things: disc utilities, to change drive hard, fsck, verbose, single user,...

    Also, I thought it was something wrong with the last 10.6 update so I have not updated it but no, same problem

    The only solution, he works at each time reinstall Snow Leopard 10.6 from an external drive, it works perfectly... until the next stop.

    Does anyone have an idea on how to find (and fix) this problem?

    Thank you very much!

    Seems that something is corrupt some files while that lead, RAM? HARD DRIVE?

    1 insert the Mac OS X installation disc, and then restart the computer by pressing the C.

    2 when your computer has finished booting from the disc, choose disk utility from the menu of the installer at the top of the screen. (In Mac OS X 10.4 or later, you must select your language first.)

    * Important: Do not click on continue in the first screen of the installer. If you do, you must restart from the disc to access disc utilitaire.*

    3. click on the tab clear.

    4. click on the triangle to the left of the hard drive icon to display the names of your partitions and hard disk volumes.

    5. Select your Mac OS X volume.

    6. Select the disk, select the partition, then type Format... Mac OS Extended journaled, click Security Options, choose zero data, erase, one pass... after I hope you can get a good installation.

  • Simple question: triggering enter event framework only once?

    Hi, the code below is placed on a frame of the main timeline... it works, but apparently always triggers "gotoAndPlay" action over and over again.

    How to make an ENTER_FRAME event play a clip from movie such as "staged_kiss_mc" only once?

    The playhead on the main timeline is based in this unique setting for a while; It would be great if 'staged_kiss_mc' were to play only once, when the playhead first enters this framework rather that apparently repeat continuously... there at - it code to stop this repetition?

    addEventListener (Event.ENTER_FRAME, start_kisses);

    function start_kisses(event:Event) {}

    staged_kiss_mc.gotoAndPlay ("start_kissin");

    }

    Thank you!

    You can remove the event listener when the function is called, although for what see you the it is probably not necessary for the listener, or even function.  In this context all you need to do is the line of code...

    staged_kiss_mc.gotoAndPlay ("start_kissin");

    This line itself runs only once when you enter in this framework.  I'm not sure that the other response to your ad says it all, but citing the image tag is correct if it is the text of the actual label.

  • Can you run the Interface of Inspection VBAI only once and then once more by a guest user?

    Can you run the Interface of Inspection VBAI only once and then once more by a guest user?

    I don't think I understand what you are trying to accomplish. You can connect a button on the front of the smart camera and trigger each acquisition. In VBAI check the triggered Acquisition under the tab trigger for the step to acquire Image (smart camera).

    Your smart camera is hooked up to a monitor? Is there something that you must do in LabVIEW that you can't do in VBAI about the step of user input?

Maybe you are looking for

  • Anyone know what is this file?  Apple-CCS-20140430 - 061555.app

    I found this file and I do not recognize.  Anyone know what it is?

  • 10.9.5 security Update 2015-008 installed yesterday and the camera does not work

    Hello Updated with security update 2015-008 yesterday on 10.9.5 and iMac 27 (end of 2013 - iMac14, 2 Intel Core i7 3.5 GHz) camera (UVC camera VendorID_1452 ProductID_34065) no longer works in Skype, FaceTime, or photo booth... It is most annoying. T

  • PDF exaprom

    I have a problem, according to this fine tool. I wan't to report pdf and I have problem with alignment photo picture and graphic data. Example report shows how do not. I would like to have the table and graph in aligned at the same height on the same

  • problems mapping a network drive

    I have Xp Sp3 in a field and sometimes, when a user makes a logon, Don t xp card all of their network drives

  • Office has gigantic event!

    My mouse didn't work so I had to turn the computer off by pressing the off button for a few seconds. When I turned laptop once again the screen was gigantic and icons have been enormous.  That's happened?  I have also have another monitor connected a