script

Need information on windows scripting and supporting scripting in my C# application

EDIT: Oops, meant to post this on stackoverflow :), but since this is for power users, maybe you could answer what scripting languages you use for windows? I'm trying wrap my head around all of the different scripting technologies for Windows (what are they, and which are the most common) and ultimately to figure out what type of scrip...

batch script to find last two days from the current date

Hi All, I am in a project where I need to find all files which are two days lesser than the current date. How can we achieve this using a batch script in Windows? Appreciate your help ! Regards, Renju. ...

Importing python variables of a program after its execution.

Hello, I've written two python scripts script1.py and script2.py. I want to run script1.py from script2.py and get the content of the variables of script1 created during the execution of script1. Script1 has several functions in which the variables are created including in the main. rgds, Bruno Thank you for all your answers. I've...

Connection to Entity Framework from SSIS-package script task

From a script task in a SSIS-package I am calling a method in a DLL that uses Entity Framework. And when I´m debugging it stops in the DLL. Error message: "The specified named connection is either not found in the configuration, not intended to be used with the EntityClient provider, or not valid" I had this error before, when I used ...

How to execute a script on linux ssh...?

How do I execute a script on ssh? I need to execute: /scripts/makecpphp So I have tried "run /scripts/makecpphp" but it didnt work. Any help would be greatly appreciate. I know for sure that that file exists there. ...

writing output of cacls in to text or CSV file

Im trying to do a VB script which gets all the permissions of a given folder in to a txt or CSV file. Using the CACLS command in in windows on command prompt to get the required info. Having trouble writing output of CACLS command to a file. How can you write the output from the CACLS display command to a file? ...

Python Script: Prevent normal users to execute

Hi, I need a better way to prevent that normal users execute my python script. I'm doing something like that: if __name__ == '__main__': if os.getenv('USER') == 'root': addUser = addUser() else: print 'Only root can run that!' It's working, but it's pretty ugly! My script is about user management in a Debian sy...

Need code critique for time interval test script PHP

Hey again! I'm trying to write a set of scripts that will run on a page only if it has been more than 15 minutes since they last ran. Basically, an automated script updates a database of mine every half hour--and a page which displays that information and updates session variables must obviously query the database whenever it is opened...

What if script tag has both "src" and inline script?

I am wondering what if one script tag has both "src" and inline script. I tried below code. <script src="http://yui.yahooapis.com/2.8.1/build/yahoo/yahoo-min.js" type="text/javascript" charset="utf-8"> alert('hello'); </script> <script type="text/javascript" charset="utf-8"> alert(YAHOO); </script> It the "alert('hel...

Pasting a huge excel document in a word test script

Hi, I have a UAT test script for which I need to post some reference tables (excel sheet) in the appendix. The excel sheet has a lot of columns and doesn't fit into the MS Word document even when I paste the table in the landscape page set up. Is there any good way to paste such a huge table without making things too complex. I've trie...

How to improve login script??

How can I ensure my login script is secure and make it better, This is my first code: Help is most appreciated. <?php include ('../includes/db_connect.php'); $firstname = $_POST['firstname']; $lastname = $_POST['lastname']; $email = $_POST['email']; $mobile = $_POST['mobile']; $username = $_POST['username']; $password = md5($_POST[...

run shell script from php

Hi Guys, I am attempting to create a php script that can connect thru ssh to my Qnap TS219 server and run a command on it. My script so far connects fine to the server but when I run the command I get an error message and I can't figure it out. exec.sh #!/bin/bash cp /share/MD0_DATA/Qdownload/rapidshare/admin/script.txt /share/MD0_DA...

Bug import main with arguments in Python.

Hello, In a script I'm trying to import the main module from another script with an argument. I get the error message "NameError: global name 'model' is not defined". If someone sees the mistake, I'd be grateful ! My code : script1 #!/usr/bin/python import sys import getopt import pdb import shelve class Car: """ class repre...

Calling script and passing value from called script

I have one script i'm trying to call from another script, passing the information from the script that is being called to the calling script. When i use do or require it runs through but doesnt pass the value. ex. I have the following line at the bottom of the script that i am calling called script.pl print " $hold IS VALUE\n"; wh...

Mouse script or macro

I search for a script or macro programm, which pushes the 4th or 5th mouse butten every 5 sec. This scrip or macro programm should be for a friend which uses win7 on an asus notebook. I can not try this because i use opensuse 11.0. I have googled but nothing found. ...

Common scripting language that can be used on Android and iPhone

I've got an iphone app and I'm looking to port some of the data-layer objective-c code to a scripting language which can also run on an android phone. Any suggestions on what to use? I'd also like to be able to push new scripts to the app for bug fixes. Not sure if this is against the iphone SDK agreement or not. ...

Add "Top of Page" link to a Script

I am using this plugin to make a list of all the Categories on my Wordpress blog : http://pastebin.com/raw.php?i=T6rvtwkS The script can be seen in action here : www.animefushigi.com/full-anime-list Now, I want to add a link to Top of page under each set of alphebetical listings, so right after each </ul> I want to add this : <a ...

Can I call a ClassB method from the delegate object?

How can I call an Objective-C method from another class? For instance in xCode I have two scripts : the delegate and another one. How might I call someFunction on script2 from the delegate? Thanks! Christian Stewart ...

Rename Default.png to support iOS4 in Run Script

I have a project with several build targets. Each build target has its own default.png and previously it worked with changing the name of each of these to default.png in my run script. However with the release of iOS4 I have to modify my script in order to support the Retina Display. Is it possible to get the target device version (iOS3....

Oracle sql script

How can i write an sql script for updating 10 row's date for 10 different users ...