scripting

Need help in executing the SQL via shell script and use the result set.

Hi All, I currently have a request to build a shell script to get some data from the table using SQL(ORACLE). The query which I'm running return n number of rows.. Is there a way to use something like result set. Currently , I'm re-directing it to a file, but I'm not able to reuse the data again for the further processing.. Any hel...

SQL Publish to Provider (Wizard) Scripting Stored Procedures Only

I'm using the Publish to Provider option in my SQL Project in Visual Studio 2008. I only check the box to script stored procedures leaving all others unchecked, yet the script produced includes all objects. Why is this and how do I stop it? Cheers, Breandán ...

How to set File Info from a script in Photoshop CS4

Hi, I am developing a Photoshop CS4 script and want to set some of the File Info properties on the open document from within the script. In other words, I want to do the equivalent of choosing File -> File Info and editing some properties, only via the scripting language (Javascript). Thank you. ...

Ivy, ant and start scripts

Hi all, I have a project that uses ant to build and ivy for dependencies. I would like to generate the start scripts for my project, with the classpath, based on the dependencies configured in Ivy, especially as the order of dependencies may be important and needs to be preserved from the order in the ivy config. Has anyone done this ...

Automatically add date to .gif

Alright, What Im looking for is a script that would automatically add a date to a .gif, which I can run daily as a cron job. I don't know perl very well, but It seems that Perl & Gimp might be a way to get the job done. Can anyone point me in the right direction so I can create such a script thanks! ...

Re-insertion of <script> tags

Insertion of a file's tag, thus executing the file's code. Removal of the file's tag. Insertion of the same file's tag. Firebug does not seem to acknowledge and does not show the reinserted tag when the file's has already been inserted before. It does upon new insertions, of course. EDIT: Is this a problem of some kind? (the file...

How to get a part of String using shell script?

I have a requirement in a shell script. I get this location information from a text file; it is always valid. /opt/sasuapps/senny/publish/gbl/SANDHYA/drop1 I need to check if the directory is empty or not which I have done. If the directory is not empty, I need to delete the files and directory under that location. As a part of sec...

Scripting .NET objects

Hi I have a simple .NET application which runs as Windows Service. Say it has one Class MyClass { Run(Destination d) Walk(Destination d) Wash(Dishes d) } I want to create a console application where I would type simple human readable commands like run left walk right Pretty much like you do in windows console. I wonder wh...

Why does Scala create a ~/tmp directory when I run a script?

When I execute a Scala script from the command line, a directory named "tmp" is created in my home directory. It is always empty, so I simply deleted it without any apparent problem. Of course, when I run another Scala script, it reappears. Is there a configuration file/flag by which I can change this behavior? Thanks. ...

ScriptManager.RegisterStartupScript

Where does RegisterStartupScript() actually put the JavaScript in the rendered document? We use this extensively to trigger JavaScript from the codebehind, and I've always wondered how the hell this works. ...

Can a PHP script fill a form behind a login page?

How can a PHP script complete a login form to enter the members area (I have a username and password), such that it can send POST data to complete another form only accessible if logged in? ...

Export variables from one shell script to another.

Hi, I have a couple of scripts for which the first part of them looks the same. Function of this part is to identify at which machine the script is being runned and set a couple of variables accordingly. It looks something like this: ENV=`echo $LOGNAME | cut -c1-8` if [ $ENV = "vrt3400b" ] then echo "Using TEST specific settings...

Dynamically building a command in bash

I am construcing a command in bash dynamically. This works fine: COMMAND="java myclass" ${COMMAND} Now I want to dynamically construct a command that redirectes the output: LOG=">> myfile.log 2>&1" COMMAND="java myclass $LOG" ${COMMAND} The command still invokes the java process, but the output is not redirected to myfile.log Addi...

Lisp as a Scripting Language in a C++ app...

Hey, I've been looking at the possibility of adding a scripting language into my framework and I heard about Lisp and thought I would give it a go. Is there a VM for Lisp like Lua and Python or am I in the wrong mindset. I found CLISP here, http://clisp.cons.org/, but am not sure if this is what I am looking for. Can anyone point me in ...

Adding 2 HTMLGenericControl script with src attribute not working

I have asp.net 2.0 c# application. I have 2 scripts I want to add to a user control's control collection. Instead of adding them one after another, it only opens one script tag and throws the 2 src strings together as strings string tagLinks = "/Resources/Javascript/js/taglinks.js"; HtmlGenericControl scriptTagLinks = new HtmlGenericCo...

Synchronising scripts / db / files from dev system to web server

I work as a freelance web dev, and up until now have been ftping my scripts / databases / static files to my web server manually, but I'm finding that is too error prone. So I'm looking for an app to automate uploading new and updated scripts / files / databases / etc. I know a lot of independent devs use WinSCP or Unison, but I don't th...

Inconsistent Generate Change Script

I add a column of type tinyint and being set to not allow nulls in a table and generate the change scripts. The table has data in it at this time. The script has code that creates a temp table and inserts the data that is in the current table into. It then deletes the old table and renames this temp table to the same name as the origi...

Create an Eclipse project on the command line?

I would like to have a shell script create an entire CDT project on the command line and add it to a workspace. I'm willing to generate the .project and .cproject files myself, but I'd like something that would actually do the adding of the project to the workspace, because that is an opaque binary file that I'd rather not have to mess w...

Joining Multiple Images into one with a PHP script

I have this test page http://thechozenfew.net/projects/write_font.php that generates the text in the input box as a font. Each letter is a different picture, How would i join all these pictures into one image with a php script? This what i've tried so far but the images appear on top of each other. Header ("Content-type: image/gif"); ...

What is "Dim fso, MyFile, FileName, TextLine" in VBA?

I received this code from one of those nice people here who are willing to spend their time and energy to share their knowledge with noobs: Sub ReadLinesFromAFileOneAfterAnother () Const ForReading = 1, ForWriting = 2, ForAppending = 8 Dim fso, MyFile, FileName, TextLine Set fso = CreateObject("Scripting.FileSystemObject") FileName = ...