Run C# scripts daily/hourly in remote place , not locally

Hi, I'm a beginner in automation tasks. I don't have experience on it.
I have 2 scripts in C# (and one in CLI of CollabNetTeamForge,but for now we can forget about this last one).
These scripts generate two XML docs which are connected and synchronized in a SharePoint Portal.
I tested this architecture-flow locally from-in my PC and it works but what
I want to do is automatize the execution and fix a remote storage of this flow-scripts. I want to fix a "task" which
execute and save hourly this scripts in-from
a external path (not locally in my PC) in order to keep updated the info (XML docs) in SharePoint without human intervention.
I tried to find info but I still a bit lost. I don't know what platforms or resources let me do this :if a need a server , Power Shell , VS Timer Tasks , Cloud like Sky Drive...
Could someone point me in the right direction?

If you're wanting to do this mainly in SharePoint, you'll need to create a custom timer job.
We can walk you through how to do this, or you can check out this link:
http://msdn.microsoft.com/en-us/library/cc406686(v=office.12).aspx
If the MSDN article is too cumbersome, I've created quite a few of these and can walk you through it.
Brandon James SharePoint Developer/Administrator

Similar Messages

  • My computer has been stuck on "running package scripts" for hours.

    Hi, earlier tonight I tried to update my iTunes so I could in turn update my iPhone. My computer said I had 3 available updates, iTunes, Safari, and some type of security thing (I havent updated in a while.) So I I installed and restarted. It seemed to be going fine. But it's been about 2 hours since the restart and I am still on a grey screen with a pop up that says " Installing 3 items" "running package scripts" and the blue progress bar is about 3/4 of the way, which it has been since I started checking over an hour ago. Anyone have any ideas on how to go about fixing this problem? Thanks. 

    Gray, Blue or White screen at boot, spinner/progress bar

  • How do I run a script so that the user does not have to click into and out of a read-only calculated numeric field?

    Hi all
    I have a read-only calculated field, and I want to build actions on it, dependent on what the answer to the calculated field is.
    I have used action builder, and it works, but only if the form filler clicks in and out ("exits") the field, which they didn't have to enter in the first place, because it populates as a result of a previous script.
    To be more precise, The questions asked before this field are:
    Date of submission (submitdate):
    Date of event (eventdate):
    Calculation occurs (days between event and submission), and answer is populated in a field called 'daysbetween'
    Now I have a set of conditions:
    If the daysbetween is < or = 14, then I want a message to come up saying ineligible to apply
    If the daysbetween is >14 and < or = 28, then I want a message to come up saying a fast track fee will be applied, and I want the fast track fee box to be populated, and I want the fast track fee box to appear.
    I used the action builder to get all of this to work, except that it only works if the user then clicks in and out of  the 'daysbetween' field, which they shouldn't have to, because it's already calculated for them
    I feel like I have to put this script in an earlier field...but I don't know where - action builder won't let me do it in the 'eventdate' field
    Thanks in advance

    Put a shift register on the border of your loop. Have a case statement that contains the "Get time" function in one case of the case statement. Make that case = 3 and wire the loop iteration to the case selector. Have the time value loaded onto the shift register in the "2" case (interations count from zero), have the shift register passed through on all others ("Default"). Then subtract this time from current to get elapsed time. You probably want to put the subtraction/comparison in a "sub-case" in the "default" that only is valid for interations > 3 or you will get some really ugly "times" until the shift register is loaded, or you could initialize it from outside the loop with the time, but this will cause it to show elapsed times from the beginning that suddenly jump back to a low number after iteration 2.
    P.M.
    @ Corning? Which one? I was doing LabVIEW at Corning back in '96
    Message Edited by LV_Pro on 09-23-2005 10:07 AM
    Putnam
    Certified LabVIEW Developer
    Senior Test Engineer
    Currently using LV 6.1-LabVIEW 2012, RT8.5
    LabVIEW Champion
    Attachments:
    elapsed time.vi ‏24 KB

  • Works on remote but not local

    So in the webpage i manage i have a footer. This footer does not display at all when viewing in Design mode (im working in DW CS4) but will display just fine when uploaded to server. This tells me my code is correct and it has something to do with the placement of my files. Is this correct to assume and how do i correct it?
    Thanks,
    -Darrel

    Yes the display of SSI is enabled in my preferences.
    The parent file (which is the one calling the include?) is index.htm
    This is my design01.css
    #footer_1a {
        background:#615846 url(/dist01/images/design01/footer_bg.png) repeat-y;
    #footer_1b {
        background:transparent url(/dist01/images/design01/footer_curve.png) no-repeat;
    and this is my footer_1.html
    <!--
        Footer with dark container
        -->
        <div id="footer_1a">
            <div id="footer_1b">
                <div class="footer_links">
                    <div><a href="/dist01/">Home</a> | <a href="/dist01/admin/orgcharts/">Org Charts</a> | <a href="/dist01/admin/">Forms and Templates</a> </div>
                    <div><a href="/dist01/storescatalog.xlsx">Stores Catalog</a> | <a href="/dist01/admin/safety/">Health and Safety</a> | <a href="/dist01/green_team/">Green Team</a> </div>
                </div>
                <div class="cleaner"></div>
            </div>
        </div>
    i suppose i could place a dummy file in place of my include to make sure it has nothing to do with my footer_1.html page?

  • Run shell script from plsql

    You can use utl_tcp to do http posting, send email, and ftp files. Has anyone ever executed a unix shell script from plsql on a remote unix box?

    I am actually asking about running a script file on a remote machine, not on the host. A java procedure or c file extproc call could be used to call a host script file.
    A key limitation of this java procedure method is shown in the ask tom reference:
    if you can do it from sever A on the command line (outside of oracle), we can do
    it inside the database.
    Solve that problem and we'll go from there. Oracle cannot bypass the OS and do
    magical things beyond what you've set up at the OS level.
    since utl.tcp opens a tcp connection, can you open a telnet session using utl_tcp and low level command formatting? I didnt have much trouble creating a plsql based ftp client, has anyone seen a plsql based telnet client?

  • Xcode Installation Hangs on "Running Installer Scripts"

    Hi, I'm trying to install Xcode to take advantage of their gcc and make files. However, no matter what I do, Xcode installation hangs on "Running Installer Scripts". Searching on Google did not give me any help. I can't quit the process either. Here's a screen shot:
    http://lh4.ggpht.com/_id4E4GFQud0/SfvsNwDdDaI/AAAAAAAACnI/23tE3vWw3vk/Snapshot%2 02009-05-02%2001-44-41.png
    Could you please advice on what can possibly go wrong?
    I'm running OS 10.5.6, and installing Xcode directly from the Mac OS X Disc 1 CD. In the CD document, it says Xcode Developer Tools 3.0 for Mac OS 10.5.
    Thanks!

    Thanks for the details of what you've tried. Every detail you can remember increases the chance that someone can spot the problem.
    My read is that you've documented beyond much doubt that a clean install is what you need. Restoring your system was a good try, but I don't think that would change much outside of the /system folder. Even if we think it did, the evidence you provided tells me that some files from the first Xcode installation remain. I would be looking for files created on that date and checking perms in places like the root directory, /tmp, /usr/share/sandbox, etc. I would also advise renaming /Developer as written in the +Book of the Dead+. I didn't invent that instruction; it was distilled from dozens of case histories in this forum.
    You might also try one of the 3rd party tools that's out there for cleaning Macs. I've never tried any of them though, so can't make a recommendation.
    Oh... erm... You did restart your Mac at some point since the problems started, right?
    Re installing only gcc, have you been to the Developer Tools page at the connect.apple.com site? Select Downloads on the home page, and in the next page select Developer Tools from the lower right panel. I found 2 downloads that appear to be full gcc installers: Xcode Legacy Tools and GCC 4.2 Developer Preview 1. The other gcc downloads seem to be updates. I might try gcc 3.1 in the legacy tools. It's probably all you need, and if not you'd be good to go for an update.
    Of course, you could always download directly from the gnu site, just you might need to be a rocket scientist to install one of those packages. I'm guessing it would be a learning experience. There's also something to be said for using a 3rd party installer, since it probably wouldn't be affected by whatever is stopping the Apple installer(s).
    Sure hope some small part of the above turns out to be useful. But in any case, please let us know how you resolve the problem.

  • Automator - Run Shell Script - Does not return when script launches firefox

    Automator does not work the same on my MacBooks as my Mac mini! Both are latest Snow Leopard. I'm trying to automatically setup my MacBook after it decides if I'm at work, or elsewhere.
    The Automator Action "Run Shell Script" (Shell: /usr/bin/perl) does NOT return control when attempting to launch Firefox:
    system("/Application/Firefix.app/Contents/MacOS/firefox-bin -private news.google.com &");
    Note: the ampersand should cause Firefox to start as a background process.
    It only returns control after I close Firefox. I have a "Show Growl Notification" as the second action, so I know that the first action has not completed. Odd thing is that this works on my Mac mini. I also noticed that another difference: on my MacBook status is displayed in the top toolbar when the Automator application is running.
    Any ideas?

    Thanks, it worked. I forgot about stderr and stdin.
    I'm using Perl as it is part of a bigger script. I can quickly and easily figure out if I am at work where my MacBook is plugged into a network:
    my $ethernet = qx(ifconfig en0) =~ m{status:.active}xms;
    if ($ethernet) {
    # setup stuff for work environment
    } else {
    # setup stuff for mobile environment
    }

  • C# Run VB Script file remotely thriugh PowerShell Invoke Command

    I have a requirement where need to run vbscript remotely through PowerShell Invoke command. I can run the VB Script locally but not remotely as the vbscript file is not present on the remote machine. I don't want to copy the script file on remote machine.
    Please let me know how to run vb script on remote machine. Below is the code.
    Collection<PSObject> output
    = null;
            using
    (Runspace runSpace =
    RunspaceFactory.CreateRunspace())
                runSpace.Open();
                using
    (Pipeline pipeline = runSpace.CreatePipeline())
    RunspaceInvoke invoke =
    new RunspaceInvoke();
    PowerShell ps = PowerShell.Create();
                    ps.Runspace
    = runSpace;
                    ps.AddCommand("invoke-command");
                    ps.AddParameter("ComputerName",
    "RemoteServerName");
    ScriptBlock sb = ScriptBlock.Create("cscript E:\\Test\\DeleteFiles.vbs");
                    ps.AddParameter("ScriptBlock", sb);
                    output
    = ps.Invoke();
    Regards, Parveen

    Hello Parveen,
    Please refer to the following thread
    https://social.msdn.microsoft.com/Forums/vstudio/en-US/7562eefb-7fba-4bf6-834e-82256f159155/run-script-on-remote-macine?forum=csharpgeneral
    See his code:
    You can use WMI to create processes on a remote machine. In C#, use the ManagementClass.
    using System;
    using System.Management;
    using System.Collections.Generic;
    public class MyClass
    public static void RunNotepad()
    ManagementPath p = new ManagementPath(@"\\targetMachine\root\cimv2:Win32_process");
    ManagementClass m = new ManagementClass(p);
    m.InvokeMethod("Create", new Object[] {"notepad.exe"});
    See: Creating Processes Remotely
    Note that the the scrpt file is not executable so you have to create script like this:
     cscript.exe "\\yourmachine\script\test.vbs".
    Best regards,
    Barry
    We are trying to better understand customer views on social support experience, so your participation in this interview project would be greatly appreciated if you have time. Thanks for helping make community forums a great place.
    Click
    HERE to participate the survey.

  • I created a script to add logos to photos at a club and now when I run the script, the script runs but does not actually place anything on the photo itself.  What's going on?

    I created a script to add logos to photos at a club and now when I run the script, the script runs but does not actually place anything on the photo itself.  What's going on?

    He meant post it here, of course, Louie!  How on Earth would you post it "on Photoshop" ? 
    Thank you for the belly laugh. 

  • HT1199 I have been trying to redownload  itunes.  The download seems stuck on the "Running Package Scripts" page.  It says "about one minute" remaining for the download but, that was 2 hours ago.  Anything I can do?

    I have been trying to re-download itunes.  This is in an effort to try to recover my new iphone 5s which after the latest update, was put into recovery mode.  When I connected to itunes, I was given the message that I couldn't recover the phone.  So, support suggested that I re-download itunes.  The installation seems stuck on the "Running Package Scripts" page.  It says it only has about a minute left to complete this process - however that was over 2 hours ago!  Help!  What can I do next?

    Disconnect the iPhone from your Mac.
    Shut down your Mac, wait about ten seconds then restart.
    Then try downloading iTunes >  Apple - iTunes - Download iTunes Now
    Do not reconnect the iPhone until iTunes is installed.
    If that didn't help, the startup disk may need repairing.
    Launch Disk Utility located in HD > Applications > Utillities
    Select the startup disk on the left then select the First Aid tab.
    Click:  Verify Disk  (not Verify Disk Permissions)
    If DU reports errors, start up from your Mac install disc to make repairs.
    Instructions here >  Mac OS X 10.6: Reinstalling Mac OS X

  • How to Prompt for User/Pass Running Shell Script Remotely through ARD

    So I finally got my Active Directory Script working! However, I realized that I'm not the only one going to be running this script and to have my user name and password in the script itself is beyond foolish. While I know it's possible just to have whoever's running the script to manually add their username and password, I'd prefer to have prompts to make things easier for the rest of my team.
    Here's my current script. I've tested it on the machine I'm connecting to Active Directory and it works fine if you run it on the machine itself in terminal. However, I'm going to be doing this on about 150 machines and the whole point of the script is to do it remotely.
    #! /bin/bash
    MACNAME=$(scutil --get ComputerName)
    read -p "User Name: " USER
    read -p "Password for $USER: " PASS
    dsconfigad -add "CORP.DOMAIN.NET" \
    -username $USER \
    -password $PASS \
    -computer $MACNAME \
    -mobile disable \
    -mobileconfirm disable \
    -localhome enable \
    -useuncpath enable \
    -shell /bin/bash \
    -ou OU=Macs,CN=Computers,DC=corp,DC=DOMAIN,DC=net \
    -force \
    -localpassword "PASSWORD" \
    -groups "GROUPS"
    When I run the UNIX script through ARD to a machine, I get no prompts for USER or PASS. In fact, it gives me the following error "dsconfigad: Authentication server encountered an error while attempting the requested operation. (5202)" So it's not asking for a user name and password.
    Is there any way to make a shell script prompt you for a User Name and Password when you're sending commands remotely through ARD? Or is there another way to do this?
    Any suggestions would be greatly appreciated.
    -rks

    Best solution is to create an account that is exclusive to binding machines.  By doing this, you can embed the user name and password in the script.  Heck, you can post it on your website.  If the account is configured properly, it will only be able to create machine records in a defined container.  If you are mixing Macs and PCs in your AD domain, I also recommend creating an isolated container for your Mac records.  Now, the account has even less access rights as you can make it so it only has rights to the Mac container.
    Otherwise, ARD does not prompt.  You can play around with an expect script but the reality is that you are still embedding the credentials in the script so it really does not achieve what you want.  ARD is not an interactive shell scripting tool.  It is more a fire and forget.
    Reid
    Apple Consultants Network
    Apple Professional Services
    Author "Mavericks Server – Foundation Services" :: Exclusively available in Apple's iBooks Store

  • Is it possible to run PLSQL, or SQL script daily?

    I am trying to write a script will delete everything that is older then 90 days, and i only want to run this script once a day.
    is this something it can be done in apex?
    Thanks
    John Lau
    APEX version: Application Express 4.1.1.00.23
    Browser(s) and version(s) used: Firefox
    Theme: Midnight Blue

    Hello John,
    You have not given the database version you are using. If it is Oracle Database 10g Release 3 or higher then you can go with DBMS_SCHEDULER and schedule your script to run periodically.
    Following is the Oracle Database 11g Release 2 documentation for DBMS_SCHEDULER:
    http://docs.oracle.com/cd/E11882_01/appdev.112/e25788/d_sched.htm#CIHHBGGI
    I found the following blog post of @Tobias Arnhold helpful while creating my first scheduled job:
    http://www.apex-at-work.com/2009/06/dbmsscheduler-examples.html
    If you are looking for APEX built-in solution then here is one using APEX_PLSQL_JOB :
    http://docs.oracle.com/cd/E23903_01/doc/doc.41/e21676/apex_plsql_job.htm#BGBFGBIB
    But I will suggest DBMS_SCHEDULER over APEX_PLSQL_JOB as DBMS_SCHEDULER package has more fine tuning facilities regarding scheduling than the APEX_PLSQL_JOB.
    Hope it helps!
    Regards,
    Kiran

  • I am trying to build a basic TCL skeleton script that reads a remote SNMP OID and displays the value on the screen.

    I am trying to build a basic TCL skeleton script that reads a remote SNMP OID and displays the value on the screen.
    I don't want it to be an EEM Event, I just want to run it from the (tcl)# prompt.
    So I guess I'm asking if you can use cli_exec and other commands in the "namespace import ::cisco::eem::*" in a normal non-EEM script - can I do that?
    This is the error I get:
    OTN.159(tcl)#source flash:TCL_SNMP_Remote_Read.tcl
    invalid command name "::cisco::eem::event_register_none"             ^
    % Invalid input detected at '^' marker.
    What am I missing?
    =================  TCL_SNMP_Remote_Read.tcl  ==============================
    ::cisco::eem::event_register_none
    namespace import ::cisco::eem::*
    namespace import ::cisco::lib::*
    if [catch {cli_open} RESULT]
        { error $RESULT $errorInfo }
        else { array set cli1 $RESULT }
    if [catch {cli_exec $cli1(fd) "snmp get v2c 192.168.1.100 public timeout 1 oid 1.3.6.1.2.1.1.1.0" } RESULT]
           { error $RESULT $errorInfo  }
           else { set SnmpSysDesc $RESULT }
    if [catch {cli_close $cli1(fd) $cli1(tty_id)} RESULT] {
                error $RESULT $errorInfo
    puts $SnmpSysDesc
    =========================================================================
    In the sho-run config I have:
    event manager directory user policy "flash:/"
    event manager session cli username "cisco"
    Any help to get me started would be greatly appreciated!
    Tim

    If you don't want an EEM policy, then don't use any of the EEM constructs.  Instead, all you need is this:
    set output [exec "snmp get v2c 192.168.1.100 public timeout 1 oid 1.3.6.1.2.1.1.1.0"]puts $output

  • Error message when running MultiPageImporter script

    Hello,
    I had posted this in the Adobe forum, and it was suggested I move it over here.
    I have a 300+ page document - original is 8.5x5.5.
    I want to print it on 8.5x11 sheets - landscape - so two pages are on each sheet.
    BUT - I want to have my two copies printed - and then cut the pages in half to end up with two full books...
    So if I print two copies, I need page 1 and page 1 on the same side on the same page - page 2 twice on the back...
    I was directed to a script download:
    Actually an InDesign script makes it possible.
    Create a new 8.5 x 11 document.
    Install this script
    http://indesignsecrets.com/downloads/MultiPageImporter2_5.zip
    Run the script twice, changing the x offset 5.5 inches (relative to top left) for the second run.
    I have downloaded the script and am trying to run it in InDesign CS6.
    I get this error when I run:
    Any suggestions as to how I can make this work?
    Thanks !
    Amber

    Here is another way to do this, in case someone is interested: Open your PDF in Acrobat and go to tools> Pages> Extract pages as separate files. Put these pages in a folder and duplicate it. Open the duplicate folder, select all files and do a batch re-name, adding "a" at the end of the name (before the extension.pdf). I use the Mac plug-in "Path finder" for this, but I think you can also do it in Bridge, Grep, and probably other programs. Move the re-named files into the folder with your original extracted PDFs. When viewed by name, the file order should be 1,1a  2,2a  3,3a  and so on. Open the last page in Acrobat and go to File> Tools> Insert from file> Shift select all of the pages (except the one you have open) and insert. I'm not sure why, but the pages will be added in reverse order. Save your new PDF. Make a one page InDesign file at 5.5x8.5 (facing pages) and use the Place multipage PDF script to add your PDF. Export to spread pages. If you don't want to print in reverse order, I think most printers have a reverse order option, there are also scripts available to reverse the order of PDFs, or you can use this web too:
    Reverse PDF Page Order

  • Perl problem? Run postflight script

    Yesterday my USB mobile internet aircard wouldn't mount in OS X (10.5.6). I spent hours on the phone with the ISP's tech support, and they ultimately had me download and reinstall the software. When I attempted to install that software, it failed with this error message: "The following install step failed: run postflight script for Franklin Wireless".
    A few hours later I tried to install a different program (unrelated to the internet issue) and I got the same kind of message "The following install step failed: run postflight script"
    I've googled for hours, and there's almost nothing out there. Everything I did find led me to stuff about "perl" and "bash". I'm not exactly new to computers, but I'm not a programmer either and I don't understand any of that.
    I don't know what to do here. Is it possible my "perl" is corrupted or missing? Or my "bash"? I checked my software updates and I happened to be due for an upgrade to 10.5.7. So, I did that hoping it might fix anything that was corrupted or missing. But, afterwards I tried the install again and got the same error.
    I'm 2,000 miles from home on the second day of a two-week business trip. I need my computer to work, I need the internet access...basically I'm screwed. If ANYONE can offer any insight, I would be eternally grateful.
    Thank you.

    Check the Console messages and post back anything that looks interesting after getting the postflight error.
    Eric
    Ps. Doesn't the hotel have internet you can hook to?
    Message was edited by: ericmeyers

Maybe you are looking for

  • Ipod touch not recognized by anything

    I have had my ipod touch for almost a year now and it has been working great. Until a couple months ago. It is not recognized by any computer in my house, so I can't charge it or put new songs on it. iTunes doesn't show up when I plug it in, i get no

  • 2 NX with i

    I just got a new computer and am getting a SoundBlaster Audigy 2 NX with it. I am trying to figure out what's the best way to manage my iPod. I like the remote feature of the soundblaster, but I understand that iTunes doesn't work with the remote. An

  • Authorizations in Appraisals Calibration

    Hello Experts, I have a tricky question on the Objectives Setting & Appraisals module. I indeed want to give access to managers to the calibration tool (BSP application HAP_CALIBRATION). However i obviously don't want them to use this application to

  • HT201303 how to change my payment card?

    how can I change my payment card details?

  • Display one video source as two views?

    Hey all. I'm  looking for a way to have an OSMF based player playback a single video  instance but represent it in the interface as two seperate views. The  source video has composited elements in it that I need to pick out for  display independantly