tagged [scripting]
Execute Unit Tests using MsBuild command line
Execute Unit Tests using MsBuild command line I use scripting for this: And I build solution .sln Now, I would like execute all Unit Tests and check all is OK. How can I execute unit tests of .csproj ...
- Modified
- 21 Nov at 15:42
Global environment variables in a shell script
Global environment variables in a shell script How to set a global environment variable in a bash script? If I do stuff like ...or ...the vars seem to stay in the local context, whereas I'd like to ke...
- Modified
- 20 Apr at 20:48
C# Interpreter (without compilation)
C# Interpreter (without compilation) Is there a ready-to-use C# interpreter out there, that is does not rely on runtime compilation? My requirements are : - - - - - If this is not clear, I need someth...
How to make an "alias" for a long path?
How to make an "alias" for a long path? I tried to make an "alias" for a path that I use often while shell scripting. I tried something, but it failed: How do I make it work ? However, `cd ~/Files/Scr...
Store mysql query output into a shell variable
Store mysql query output into a shell variable I need a variable to hold results retrieved from the database. So far this is basically what I'm trying with no success. My understanding of bash command...
Python script header
Python script header The typical header should be But I found below also works when executing the script like `$python ./my_script.py` What's difference between these 2 headers? What could be the prob...
How can I remove the first line of a text file using bash/sed script?
How can I remove the first line of a text file using bash/sed script? I need to repeatedly remove the first line from a huge text file using a bash script. Right now I am using `sed -i -e "1d" $FILE` ...
C#/.NET scripting library
C#/.NET scripting library I want to enhance an application with scripting support like many other applications have, e.g. [MS Office using VBA](http://en.wikipedia.org/wiki/Visual_Basic_for_Applicatio...
SQL Server - stop or break execution of a SQL script
SQL Server - stop or break execution of a SQL script Is there a way to immediately stop execution of a SQL script in SQL server, like a "break" or "exit" command? I have a script that does some valida...
- Modified
- 2 Dec at 14:52
How to get the Parent's parent directory in Powershell?
How to get the Parent's parent directory in Powershell? So if I have a directory stored in a variable, say: Now I would like to find the directory parent levels up. I need a nice way of doing: Can I g...
- Modified
- 15 Mar at 18:3
Basic Dual Contouring Theory
Basic Dual Contouring Theory I've been searching on google, but cannot find anything basic. In it's most basic form, how is dual contouring (for a voxel terrain) implememted? I know what it does, and ...
- Modified
- 27 Jun at 06:31
How to redirect the output of a PowerShell to a file during its execution
How to redirect the output of a PowerShell to a file during its execution I have a PowerShell script for which I would like to redirect the output to a file. The problem is that I cannot change the wa...
- Modified
- 11 Jul at 23:39
How can I declare and use Boolean variables in a shell script?
How can I declare and use Boolean variables in a shell script? I tried to declare a Boolean variable in a shell script using the following syntax: Is this correct? Also, if I wanted to update that var...
How to run a script at a certain time on Linux?
How to run a script at a certain time on Linux? I have a I want to be able to How would you achieve that? Create another script that runs in background (sort of a deamon) and checks every second if t...
How can I suppress all output from a command using Bash?
How can I suppress all output from a command using Bash? I have a Bash script that runs a program with parameters. That program outputs some status (doing this, doing that...). There isn't any option ...
How do I script a "yes" response for installing programs?
How do I script a "yes" response for installing programs? I work with Amazon Linux instances and I have a couple scripts to populate data and install all the programs I work with, but a couple of the ...
How can I write and append using echo command to a file
How can I write and append using echo command to a file I am trying to write a script which will use echo and write/append to a file. But I have " " in syntax already in strings .. say .. Can anyone p...
How to get started with PowerShell?
How to get started with PowerShell? I played with one of the early beta versions of PowerShell V1, but haven't used it since it went "gold". What is the best way to get started using PowerShell? Which...
- Modified
- 10 Nov at 22:23
Can I create a One-Time-Use Function in a Script or Stored Procedure?
Can I create a One-Time-Use Function in a Script or Stored Procedure? In SQL Server 2005, is there a concept of a one-time-use, or local function declared inside of a SQL script or Stored Procedure? I...
- Modified
- 22 Jun at 23:17
Checking if a website is up via Python
Checking if a website is up via Python By using python, how can I check if a website is up? From what I read, I need to check the "HTTP HEAD" and see status code "200 OK", but how to do so ? Cheers ##...
- Modified
- 20 Jun at 09:12
How can I ssh directly to a particular directory?
How can I ssh directly to a particular directory? I often have to login to one of several servers and go to one of several directories on those machines. Currently I do something of this sort: I have ...
Batch file to "Script" a Database
Batch file to "Script" a Database Is it possible to somehow use a file to script the schema and/or content of a SQL Server database? I can do this via the wizard, but would like to streamline the crea...
- Modified
- 7 May at 15:25
Shell script to send email
Shell script to send email I am on linux machine and I monitor a process usage. Most of the time I will be away from my system and I have access to internet on my device. So I planned to write a shell...