This bash script concatenates the names for jar files to a classpath (variable CP), in the while loop the value is correct but is lost in the subshell as descibed in this related question http://stackoverflow.com/questions/124167/bash-variable-scope
#!/bin/bash
CP="AAA"
func() {
ls -1 | while read JAR
do
...
I am trying to get some values from my form into a lightbox that I am calling. Everything works great if I hard code the form values into the jQuery ajax post but I can't get the form values to properly pass into ajax function unless the values have been selected and the page has been reloaded.
So somehow I need to get the values of the ...
Hi
I'm new in wordpress. I want to create a website to display my product stocks. An I want to use wordpress to maintain the content of the website.
I was wondering is there any way of using my own PHP scripts to access my 'product database' information within from WP and display them. Bascially, wordpress will use it's own database f...
I would like to know on a line by line basis, what percentage of source code within a subversion repository has been modified between two commits.
For example. say revision 2100 has 150,000 lines of code -- but revision 2600 has 165,000 lines of code where 8,000 lines of the original 150,000 code where modified. I would report this as ...
Hello, I want to create a java class in a script file (javax.script). please help
...
I have the following code:
get_list_a()
{
$MYSQL -B -u $USER --passwword="$PW" $DB <<EOF
select name, value from mytable_a
EOF
}
get_list_b()
{
$MYSQL -B -u $USER --passwword="$PW" $DB <<EOF
select name, value from mytable_b
EOF
}
get_list_a >$test.txt
Now I need to combine a and b first and remove all dups(key is name, th...
I would like to reset passwords on a bunch of boxes over SSH. Any pointers on how Erlang could be used for this purpose?
...
Hi Folks,
I wish to create a shell "Menu"
Instead of using bash for my script, I wish to use PHP. Is it possible to run an external program using php, that will interact with the user?
For example, let's say I wanted the php script to run /bin/bash (Just an example), but then when exiting bash, got back to the start of the script (i.e...
I want to import a class that I already write in an external folder,
for example :
My class Example.java that is located in c:\class\Example.java to my script like using
var importedClass = new JavaImporter("c:\\class\\Example.java");
or
importClass("c:\\class\\Example.java");
this is in a script for ScriptEngine rhino
how can I ...
I'm looking for different approaches to an "event scripting" engine for use in a game. I'm talking about capability along the lines of Z-machine (Infocom) or Maniac Mansion's SCUMM or engines used in something like a MUD/MUSH or more modern examples let's say NWN. I'm not familiar with what's behind the scenes of these, but the end res...
Hi,
I am working on a program, which handles a lot of objects and data. As I would be able to inject manipulations by having some kind of 'API' to my application. As the application itself does the management of the objects and such, I wonder how this can be implemented. For example, the Unity3D and Panda3D engines allow a variety of la...
Every day we run an backup job.
This job creates a new file in format yyyyMMdd.7z and now we need to cleanup our backup storage automatically.
Our backup police says that we need to keep files from last 5 days, and last backup of each month. First step is easy since I have current day. But how I can keep the last of each month?
...
I need to process a number of messages in my Thunderbird.app (Mac OS X Snow Leopard, Intel Core 2 Duo), delete a few based on some criteria, export some others, move a small part of them to a special folder and create a filing hierarchy to go with it all - programmatically. With Outlook I used to enjoy VBScript + the COM object model: it...
How do I implement fork and exec in bash?
Let us suppose script as
echo "Script starts"
function_to_fork(){
sleep 5
echo "Hello"
}
echo "Script ends"
Basically I want that function to be called as new process like in C we use fork and exec calls..
From the script it is expected that the parent script will end and then after 5 seco...
I am trying to write a script that will send an HTTP "GET" to a URL then determine if the response came from the same domain or not.
I have been playing around with VBS and the WinHttp.WinHttpRequest.5.1 object. Sadly this does not give me any access to where exactly the response came from.
I tried parsing through the response header...
dear all
we r working on project where we need to make an installer for a website. we can use standard project in vs2008 for deployment. but the problem is website uses 2 more thirdparty tools. we want our installer to install both these software automaticaly. i tried evrything like autoit, autohotkey bt nothing is working for me. guys ...
Dear all,
I want to rezise the login frame window using graph api(java script),in internet explorer i m not able to expand the frame ,due to which i m not able to view the login or other buttons.
...
I'd like to learn to use python as a command line scripting replacement. I spent some time with python in the past but it's been a while. This seems to be within the scope of it.
I have several files in a folder that I want to do a search-and-replace on, within all of them. I'd like to do it with a python script.
For example, sear...
Hey all I have a simple problem I was hoping someone can give me assistance with. I'm trying to get WMIC to return output however on different machines, the executable is in different directories. Is there a method to check all directories I list to get it to run, e.g.:
IF EXIST
wmic=c:\checkhere\
ELSE
wmic=c:\checkthisone\
CONTINUE
...
Problem
I have a SQL server that has a dynamic IP address. However I have a url e.g. 'mydynamic.com'
which is automatically updated to the current IP of the SQL server
Requirement
I need a script (vb/bat) that can take this URL and resolves the IP. Then take a config file and replace a placeholder with that IP. The idea is that the co...