how to make the batch file wait until another batch file completes execution?
let me explain with an example.
echo hi >r.txt
echo some piece of code >>r.txt
start ar.bat
echo some piece of coe >>ar.txt
i want the code after start ar.bat to execute after this batch file exits ..
i have tried without start it works but i want t...
Here is my script
#!/usr/bin/env ruby
if __FILE__ == $0
`cd ..`
puts `ls`
end
which runs fine, but when it exits, I'm back where I started. How can I "export" the changes I've made to the environment?
...
This is my first Bash script so forgive me if this question is trivial. I need to count the number of files within a specified directory $HOME/.junk. I thought this would be simple and assumed the following would work:
numfiles= find $HOME/.junk -type f | wc -l
echo "There are $numfiles files in the .junk directory."
Typing find $HOME...
Hello, I am creating a Ruby On Rails website, and for one part it needs to be dynamic so that (sorta) trusted users can make parts of the website work differently. For this, I need a scripting language. In a sort of similar project in ASP.Net, I wrote my own scripting language/DSL. I can not use that source code(written at work) though, ...
I'm looking to build a simple site centered around a simple faq system in php. The faq concept is simple, but I want to have an administrative-access backend for editing and creating the entries, and securing a login seems more complex and time-consuming, so I'm looking for suggestions for code to start me off.
Does anyone know of any ...
Hi, I want to make an application that executes a remote script. The user can create a script (probabily a LUA script) then stores it in the server. Then he can uses an API for execute the script. I was thinking that API could be a webservice. So my questions are:
I need high performance to execute the script. So my first choice was LUA...
How do a check what startup scripts are run after I ssh into a machine?
...
I need a UNIX shell script to convert my queries from Java compatible to Oracle compatible format. ie.
I have all the java compatible queries:
java:
SELECT a, b, c, d, e, f,g "+// "from test where year(timestamp)=year(today) and month(timestamp)=month(today) "
+// "and day(timestamp)=2 and h='" + "W" + "'"
Oracle
SELEC...
I am wondering if there is any other configuration options for a default controller.
For example - if I have a controller called "site" and I set the default controller in the following file: application/config/routes.php to:
$route['default_controller'] = "site";
I should be able to go to http://localhost and that brings up the
ind...
I'm trying to load at run-time Lua scripts on the iPhone.
Is there a possibility to do that?
How can I getting started with Lua? I can't find something. The only thing I can find is that this should be possible, but I am wondering how.
...
I have a script that I want to exit early under some condition:
if not "id" in dir():
print "id not set, cannot continue"
# exit here!
# otherwise continue with the rest of the script...
print "alright..."
[ more code ]
I run this script using execfile("foo.py") from the Python interactive prompt and I would like the script ...
How can i generate a random file filled with random number or character in shell script? I also want to specify size of the file.
...
I'm trying to find a way to write to a text file from as2. I don't want to use any php or asp because my app needs to run without an internet connection. As3 has FileReference.save() and judging by the amount of searching I've done, as2 doesn't have that simple of a solution. Does anyone have a way even if its hacky to write to a txt fil...
Hi everybody,
I'm rather new to bash, and somehow just haven't found out what I'm doing wrong here:
(this is a small bash script calling my generator)
if [ -n $folder ]; then
$zorbalocation -q $generator -f -e files=\"$lFiles\" -e folder=\"lFolder\"
else
$zorbalocation -q $generator -f -e files=\"$lFiles\" -e fo...
Here's what I'm trying to achieve. I would like to write a script that will navigate to a website that requires me to be authenticated as myself, say Facebook, Live Spaces, Twitter or any other, and then have that script search for certain information on one of the pages of the website.
I've done something similar in the past with the W...
Hello All
I am working on an AJAX script but am having difficulties. First, here is the script:
var xmlHttp;
function GetXmlHttpObject(){
var objXMLHttp=null
if (window.XMLHttpRequest){
objXMLHttp=new XMLHttpRequest()
}
else if (window.ActiveXObject){
objXMLHttp=new ActiveXObject("Microsoft.XMLHTTP")
...
I'm trying to make a script that will place a list (in a .csv file) of processes that are running that take up more than 10 mb of RAM and shows the time + date the script was run. My teacher did this during his lecture but I can't remember how he did it. Just trying to figure out how to be better at IT.
So my question is, can anyone hel...
Hi,
I am loosing my hair on VBScript. How the heck can I pass a reference as return value of a function?
Currently my code looks like this:
Set objUser = FindUser("bendert")
REM Searches Directory for the User
Function FindUser(UserLoginName)
Wscript.Echo "Querying AD to retrieve user-data"
Set objConnection = CreateObject("AD...
Currently our process consists of logging into each *nix server and manually changing the password for each. My question is, what is a good way to automate this? I'm thinking of possibly a couple different ways to do this and would like input from others on what they recommend, use, etc.
One way I was thinking is a text file with a lis...
Hello,
I have written a python script with methods in it. Now I want to use methods from that script in ipython. How do I import it for use in ipython?
Cheers
...