Today, I was using AdaptJ Stacktrace tool. I am wondered how can it run a BeanShell script inside an already running process! The process is not run in debug mode. Even, the JVM is run with attach mechanism disabled! After all, the class path does not contain the BeanShell jar files. But you can easily select a running java process, open...
Hello,
I am trying to make an automated database entry generation with Django, whenever I trigger it to happen.
For instance, assume I have a such model:
class status_entry(models.Model):
name = models.TextField()
date = models.DateField()
status = models.BooleanField()
and I have several entries to the model such as:
1 ...
So I want to associate a particular 'protocol' in my Opera browser with a shell script on OSX.
In Opera, I therefore did:
<open preferences dialog>
Advanced Tab -> Programs
Added 'myProtocol' and set it to open with other application '~/bin/myScript.sh'
Applied settings etc.
Now, when I go to myProtocol://some.url.or.other, opera is...
I need to recursively copy a directory tree, ignoring any subdirectories named 'CVS'. Is there a simple way to do this?
...
Alternatively, how to change the contents of a TextItem by layer name.
note: I'm using Photoshop CS4 (11.0.1)
...
I need to suid a script so that it can be executed by users with less permissions. Since you can't suid a script and can only suid an executable I wanted to use the generic script compiler "shc" to create an executable and then set that executable's suid bit. Only problem is that on ubuntu jaunty I can't find shc or when I do apt-get i...
Just converting some shell scripts into batch files and there is one thing I can't seem to find...and that is a simple count of the number of command line arguments.
eg. if you have:
myapp foo bar
In Shell:
$# -> 2
$* -> foo bar
$0 -> myapp
$1 -> foo
$2 -> bar
In batch
?? -> 2 <---- what command?!
%* -> foo bar
%0 -> myapp
%1...
Hi Everyone:
I am wondering if there is some way that I can create an script on Mac OS X that will change the default save location of all native Cocoa apps. I don't know where to start, so I am open to any advice about how to do this.
Thanks for any help!
...
Is it possible to evaluate a string of python code (or Perl) from Java when developing Android applications?
I am try to do something like evaluating a text-input script:
e.g.
String script = text1.getText().toString();
String result = PythonRuntime.evaluate(script);
text2.setText(result);
...
I am required to write a script that would download a file (based on a provided url to that file) using wget and then pipe the result to the mail command so that it can be mailed to a provided email address. This will be used in a php based project.
"Piping the result" preferably would be a built link to the file on the server, so that...
Hello!
What is the most painless and multi-platform way to use scripting?...
...for things such as
Compilation
Web application deployment
Web server controlling
Other misc. tasks around web servers...
NOTE: I'm in the Java ecosystem.
Sure, there is Apache Ant, which is pretty multi-platform, but
it isn't scripting.
...
I'm writing some code (Python, but really isn't important) that analyzes strings inside PE files. I'm looking for a command line tool I could invoke that will return the complete list of strings inside the PE file.
I know PEDUMP, but it seems to give incomplete strings.
Also, it is very important that this tool would be able to handle ...
I am looking for the possibility to copy all (backup) my address book entries into plain text, or CSV, or XLS from Lotus Notes mail client. My aim is to later copy these details into Outlook.
Is it possible. I haven't done lotus scripting before. But I am going through the reference links. If possible provide links or pointers for accom...
In Windows I would like to be able to run a script or application that starts an another application and sets its size and location. An example of this would be to run an application/script that starts notepad and tells it to be 800x600 and to be in the top right corner. Does anyone have any ideas regardless of language?
...
There's probably some nice way of doing it (in Windows XP) in VBScript (or some other scripting language) with registry tweaks. Anyone know how?
...
Is there anyway I can create a small exe or batch file to setup a new 'My Network Place' in Windows? Its for an ftp site if that makes any difference.
XP will primarily be the target machine but If I can find something that will work on Vista too thats great.
...
What I'm looking for is something like:
if [ -f "filenam*" ]; then
...
fi
But the wildcard (*) causes problems.
I've also tried:
if [ `ls filenam* > /dev/null 2>&1` ]; then
...
fi
Which may work in other shells but doesn't appear to work in Bourne shell (sh).
Thanks for any help!
EDIT: Sorry, not C shell, Bourne shell (s...
We are trying to convert a bash shell script into a Windows batch script. We ship these scripts with our software product, and we cannot assume that the customer will have, or will be able to download, sed/awk/cygwin or any other non-standard tools. Therefore, the script must work with whatever tools come out-of-the-box with Windows. ...
In Microsoft SQL Server Management Studio 2008 there is a "Generate scripts..." option under the Tasks menu. I'm just wondering if this tool is available from the command line somehow?
It looks similar to the sqlpubwiz.exe command line tool that was available for SQL Server 2005, but I can't find this executable anywhere in the SQL 20...
Hi,
I need a binary/script (php) that does the following.
Start n process of X in the background and maintain the number processes.
An example:
- n = 50
- initially 50 processes are started
- a process exits
- 49 are still running
- so 1 should be started again.
Please, this is urgent.
Thanks! Michael
P.S.: I posted the same questi...