I have hundreds of images (png), sorted by name.
They all have different sizes, but the same print resolution is to be used.
I want to montage them in column, only one per row, possibly centered, and so that when the total height of the montage reaches an A4 paper height (~30cm) it starts again on another page..
I tried to do it with t...
So I need a Windows Script that I can tell it a directory to go through and it will parse all sub-directories and while in each subdir, will archive all files with a certain file extension and keep it in the same subdir, then move onto the next one.
What's the best way to go about this? Perl Automation Scripting, AutoIt?
Any sample cod...
Is there a way to find out if Cron Jobs are available on the server?
I mean I want to detect this in a PHP script..
...
I'd like to search for tracks on iTunes using a Python script on Mac OS/X. I found a way to access the iTunes application through:
iTunes = SBApplication.applicationWithBundleIdentifier_("com.apple.iTunes")
but I haven't figured out (yet) the way to perform searches. A little help appreciated.
Disclaimer: OS/X newbie here.
Note: I ...
I'm trying to capture a block of text into a variable, with newlines maintained, then echo it.
However, the newlines don't seemed to be maintained when I am either capturing the text or displaying it.
Any ideas regarding how I can accomplish this?
Example:
#!/bin/bash
read -d '' my_var <<"BLOCK"
this
is
a
test
BLOCK
echo $my_var
...
Hello everyone, i have a large number of files/folders coming in each day that are being sorted automatically to a wide variety of folders. I'm looking for a way to automatically find these files/folders and create symlinks to them all within an "incoming" folder. Searching for file age should be sufficient for finding the files, however...
IE 8 block my custom scripts every time i run my web site,and i need to click "allow scripts" to run it correctly.Its boring.
Any ideas?
The script:
// JavaScript Document
var char=0;
var caption = "";
var standby;
var msg = "Lorem ipsum dolor sit amet, consenctuinv isdrulix core";
var selectedItem = 1;
var lastItem;
var fotos ...
I Want to exit ssh:
How does the below line work:
ssh -f -T ${USAGE_2_USER}@${USAGE_2_HOST}
Or do i need to write it some other way . Please tell should I use exit with ssh an how?
I am using ssh in my script .
I want to exit from it after the execution of it, with out showing them up in the proccess.
...
The below check is not working:
if [ $LEN = `expr $CNPROC + $CTotal` ])
and returns expr non-numeric argument shell script.
Always it is going to else. Please tell me what is the mistake.
Earlier I was not using while so the same thing was working fine now suddenly when I did put it in the while loop it is no working.
#!/usr/bin/ks...
Is it possible to write a script that will allow Outlook to automatically send out a new email to a distribution list when you drag and drop and previously opened email into a specified folder?
The rules only let you apply them to received and sent messages. They do not allow you to apply it to anything that is dragged and dropped after...
I'm using ksh and having some trouble. Why does this code not run?
[root]$ CMD="ls -ltr"
[root]$ eval "W=$( $CMD )"
[root]$ ksh: ls -ltr: not found.
[root]$ echo $W
But this works fine:
[root]$ CMD="ls -ltr"
[root]$ eval 'W=$('$CMD')'
[root]$ echo $W
...
In shell scripts, what is the difference between $@ and $* ?
Which one is the preferred way to get the script arguments ?
Are there differences between the different shell interpreters about this ?
...
Hi guys,
Really stuck with this... basically my system has 4 tables; users, projects, user_projects and activities. The user table has a usertype field which defines whether or not they are admin or user (by an integer)...
An admin can create a project, create an acitivity for the project and assign a user (limited access user) an acti...
I have written a Python script and compiled it into a MS Windows EXE file. I can modify the code, but how do I make it remove itself after running?
...
Hi,
I am creating a linux service , in the skeleton file it is mentioned that we need to run various rc commands(rc-status ,rc_reset) to update the service status. What does this actually mean. I have googled it but not able find many details. Can somebody help me
...
I'm trying to put my database scripts into a VS Database project (I haven't generated them yet).
I'm assuming there should be some kind of "auto generate all" functionality, but I can't find anything.
Or do I really have to generate them one by one manually from management studio?
...
I have a file that has 2 columns as given below....
101 6
102 23
103 45
109 36
101 42
108 21
102 24
109 67
and so on......
I want to write a script that adds the values from 2nd column if their corresponding first column matches
for example add all 2nd column values if it's 1st column is 101
add all 2nd column values...
My script (shell script) runs a couple of tests(written in C/C++) and sometimes they will soft hang the computer (finding reason for soft hang is not my job, it is some other team) . I was thinking of using ps to get the cpu usage on that test and then reboot the computer. Is this possible?
...
I've got a Windows batch script issue that I'm bashing my head against (no pun intended). The problematic script looks like this:
if defined _OLD_VIRTUAL_PATH (
set PATH=%_OLD_VIRTUAL_PATH%
)
When I run it and _OLD_VIRTUAL_PATH is set I get:
\Microsoft was unexpected at this time.
_OLD_VIRTUAL_PATH is a variable that was origin...
Is there a tool or scripting language that will allow me to create a crontab-syntax output after supplying a human-friendly specification or initialization file?
For example:
when: every 2 hours
what: system('/path/to/flush_system_logs')
when: 4:45pm every Wednesday
what: system('/path/to/system_janitor_script')
I would like to ...