scripting

In kshell Make file Can i know the syntax of if else

In kshell Make file Can i know the syntax of if else where it should check different paths if (b folder found) select this path else should select other path or existing path ...

Script to mail multiple files as independant email attachments

I'm looking to mail several pdf's that are located in a single directory via the mail command. Each email should only contain one PDF file as an attachment. Can you please provide a template on how to send each PDF via mail, one by one? Ideally Bash or AppleScript ...

:(){ :|:& };: Forkbomb?

Possible Duplicate: The following bash command will spawn processes to kernel death. Can you explain the syntax? :(){ :|:& };: running this fork() unlimited .. Can one please explain this bash script ? ...

database [table name DATA_PES]

my @DATA_PES = ( { col_name=>"rpad(request_no,9) as request_number",col_width=>9,col_mandatory_yn=>"n" } what does this mean ...

Scripting Trac installation on Windows

Hi, I'm currently working on some R&D for improving the process and practice that we approach development. As a first iteration something I'd like to do is develop an easy way to set up a project e.g. Run an ant script that will, when provided with a project name etc, Copy a template in svn Create a database (if needed) Automaticall...

Script to change email addresses of outlook contacts

Exchange 2007 environment. Every mailbox has their own local copy of contacts. I just changed our domain in order to shorten it, and instead of having users go in and change each one of their local contacts, I'd like to write a script that iterates through each of their local contacts, and if the email address ends with '@oldemailaddres...

AS3 Loading a Class using getDefinition()

Hello Everyone, I have hit a road block on this and would highly appreciate if someone can help me on this, please. What I am trying to do is to use shared runtime library by loading a swf ('index.swf') which has numerous library objects which are named in sequence such as: (orange1,orange2,orange3,orange4) (red1,red2,red3,red4) I am ...

Way to diff two SQL CE Databases

I know ways to script a SQL CE Database, but does anyone know a way to diff two databases and output a script sync one of them to the other (ie generate drops and inserts to make them the same). I am looking for a way that I can update my hand held applications without having to copy over the existing database. The first step is to be ...

differnce between the shell and environment variable in bash

what is difference between shell and environment variable & what are storage location for each of them ? ...

extract arguments from function with scripting

I have a file with function prototypes like this: int func1(type1 arg, int x); type2 funct2(int z, char* buffer); I want to create a script (bash, sed, awk, whatever) that will print function = func1 // first argument type = type1// second argument type = int function = func1 // first argument type = int// second argument type =...

shell script to traverse files recursively

I need some assistance in creating a shell script to run a specific command (any) on each file in a folder, as well as recursively dive into sub-directories. I'm not sure how to start. a point in the right direction would suffice. Thank you. ...

Sending commands over ssh with parameters

Hi I am trying to send a command over ssh with a parameter but the shell fails to expand the command properly any ideas what am i doing wrong with this for i in 71 72 73 74 75 do for server in server1 server2 do somestr="Some String" echo "$server hdiskpower$i \c" ; ssh $server "lsattr -El hdiskpower$i |grep $so...

Python Script Calling Make and Other Utilities

Hi all. I have a python script that invokes the following command: # make After make, it also invokes three other programs. Is there a standard way of telling whether the make command was succesful or not? Right now, if make is successful or unsuccessful, the program still continues to run. I want to raise an error that the make ...

how to get input into an Jet OLE DB Query

Background: I am using Excel 2003 I have 2 Excel files (Source, list), one is essentially my source data. The second is where I am using the excel "Import External data" function to get the data in teh second sheet. I am then using the modifiy query to allow me to use SQL to query my data and limit the data I am displaying. My SQL query...

Using git filter-branch to rewrite authors/committers and commit messages simultaneously

I have a Git repository originally imported from Subversion. Parts of the author/committer information are wrong, which is not Git's fault but mostly due to sloppy committing with Subversion. I would like to use git filter-branch to rewrite the history of the repository, fixing the committer and author information. The trouble is... I...

Auto-Backup script for mysql in Unix

I'm a Windows user but I've been asked to write a script that runs on Linux that does automatic backup for the MySQL database. I know how to do the backup (using mysqldump) but I don't know how to write a script in Linux and how to schedule it to run daily. How can it be done ? ...

Convert file one word per line

I would like to convert a text file containing words, space separate to a file where each word appears on a separate line sdf sdfsd= sdfsdf sdfsdf will become sdf sdfsd= sdfsdf sdfsdf thanks ...

PHP Session Variables - At Wit's End

I'm just getting in to MySQL and PHP--and I'm just trying to create a simple login system for a project we're testing. I've connected and created the login logic just fine, but now I can't for the life of me get the session variables to carry over to the new pages. Could someone please show me the correct way to do this? Here is my lo...

Does an AWK script take up a lot of CPU?

Does AWK uses a lot of processing power? If so, is there a better scripting language to do it? Or should I do it in C itself (where rest of my code is). ...

Standard script database variables (Oracle vs Sql Server Terminology)

What are the differences/equivalences between Microsoft Sql and Oracle connection parameters, and are there some common names they map to? Things like "database", "instance", "username", "tablespace". From Help me put Oracle terminology into SQL Server terminology we get: | Oracle | Sql Server | Universal| ==================...