I've got a batch file that parses a bunch of file names out of a text file and concatenates them into a single strong - it was previously discussed here. However, I don't want the string to contain a file if the file throw an error when I run it through some command (like a VCS check, for example). Here's my attempt:
set FILE_LIST=
for ...
Typical performance of Python scripts are about 5 times faster than PHP. What are the advantages of using faster server side scripting languages? Will the speed ever be felt by website visitors? Can PHP's performance be compensated by faster server processors?
...
In bash/ksh can we add timestamp to STDERR redirection?
E.g. myscript.sh 2> error.log
I want to get a timestamp written on the log too.
...
So at work i use a vpn connection and after that i have to manually set my route table so everything works, I'm trying to write a bash script which will easily distinguish between my home connection and my work connection and set the correct gateway:
#!/bin/bash
# Does the ppp0 interface exist?
cat /proc/net/dev | grep ppp0 > /dev/null...
Hi, I'm trying to write a script to log the IP address of the Windows client from which the user initiated Remote Desktop to log in to the Windows Server. How to capture the IP address of the client in the Server?
...
I need to write some scripts for WinXP to support some of the analysts here at Big Financial Corp. Please help me decide which type of windows scripting best fits my needs.
My needs seem pretty simple (to me anyway)
run on WinXP Pro SP2 (version 2002)
not require my users to install anything (so Powershell is out. Likewise Perl, Pyth...
I'm looking for command line or scripted solutions to pull the DDL out of SQL Server 2005+ for all database objects: tables, stored procs, views, indices/indexes, constraints, etc. GUI tools are not of interest.
Preference is for built-in tools, since that would be the most comparable to Oracle's DBMS_METADATA stuff. Also, preference f...
Below is valid javascript code:
<script>
foo();
function foo()
{
alert("foo");
}
</script>
The function foo is invoked before its declaration. So, I think browser must load the whole block script before its execution. By "whole block", I mean a open tag to a clos tag or a external javascript file. Is this true?
...
Is there a scripting language for C++ (like perl) which can be used for rapid development and use some tool which can convert into C/C++ program to get higher performance for deployment?
EDIT:
Based on some commented, let me clarify the question. I should be able to convert script into C/C++ program or binary without modifying my sc...
I'm developing a script which monitors a service for failure and launches another a different action depending on if failure is present or not.
I require a python script to monitor the output from a python program "monitor-services" and parsing the output search for an occurance of the word "failure". If present, the script should retu...
I have a folder full of *.command files on my OS X workstation.
(For those that don't know, *.command files are just shell scripts that launch and run in a dedicated Terminal window).
I've dragged this folder onto my Dock to use a "stack" so I can access and launch these scripts conveniently via a couple clicks.
I want to add a new ...
I am writing a simple Q & A for my organization internal usage. It does not have to feature rich like SO. Something much simpler. How do I begin? Is there a script available I can use off the shelf?
...
Hello all,
I have created a small command that will let me launch Internet Explorer. However, I wish to close the small command prompt that shows up when I launch IE. How can I do this? This is my current code:
"%ProgramFiles%\Internet
Explorer\iexplore.exe"
http://localhost/test.html
PAUSE
I am guessing if I take out the Pause. It w...
I'm guessing a site like stack overflow doesn't keep an html file around for every question ever asked. Instead, server-side code creates the page every time a question is clicked on(I think). Is it possible for search engines to index every quesiton on Stack Overflow, or would a page-per-question need to be kept in the directory so the ...
I used to put my jquery and javascript stuff just BEFORE the /head... on top of the html document....
Thinking about that, for NO good reason...
Now, in some part of the document, there will be generated part in php and i can used some jquery here and there..
So the question is : can i put jqueyr (document).ready on top and anywhere ...
Used as a scripting language, does Scala have some sort of include directive, or is there a way to launch a script from an other script ?
...
How to write a shell script/process which runs like a daemon on Unix and continuously monitors a field in the table and sleeps for 30 sec's. The field value will regularly increase to a maximum value and my process/script which is monitoring will provide a simple select query output to a log file. any approach is preferred.
...
Hello,
I am currently using PHP/MySQL, and I'd like to know the best way make an unauthenticated user login, and then have them automatically redirected to the page they logged in.
For example:
1) User tries to open up secure page.
2) They're re-directed and prompted to login.
3) After they login successfully, they're taken back to t...
I am developing an image bank site that will hold royalty-free images for download. I want to slow down anyone using a bot or who is downloading too often, so I have a daily file limit and have incorporated a variable sleep into the script that delivers the files. I do that by writing the completion time of the last download to a databas...
I know there are a lot of client-side solutions for nasty adware and their recursive links, but I was wondering if it is possible to use a script in the html to prevent the links from displaying in a user's browser who has adware on their machine and is visiting my web site?
I am NOT a programmer. I am designer, and I know just enough t...