Tag Archives: script

Expect script for Windows

vijayakumar.cm created the topic: Expect script for Windows Hi, I’m executing one expect script from windows to do automatic FTP to Unix server. Error msg:- D:\expect>tclsh85 telnet.exp Connecting to 10.118.215.14 to upload the latest build. invalid command name “spawn” while executing “spawn ftp $hostname” (file “telnet.exp” line 17) do anyone have any idea about this… Read More »

Ant script with EMMA code-coverage

scmuser created the topic: Ant script with EMMA code-coverage Ant script with EMMA code-coverage so it can find runtime coverage data? processing input file […NetBeansProjects/Tetris3/build/metadata.emma] … loaded 25 metadata entries 1 file(s) read and merged in 5 ms nothing to do: no runtime coverage data found in any of the data files

Script for time stamp update.

scmuser created the topic: Script for time stamp update. write a batch Script for time stamp update? sgadmin replied the topic: Re:Script for time stamp update. for (( i = 2 ; i <= tfile ; i++ )) do mfile=`cat $data |head -$i|tail -1|tr -s ” ” ” ” |cut -f8 -d” “` mdate=`grep -i… Read More »

Function in vb script

rajani created the topic: function in vb script Develop a function that accepts a string of names separated by comma add those names in an array and display the names added in the array. rajeshkumar replied the topic: function in vb script Welcome to board…. try following snippet… Sub Funstr(“str1”, “str2”) a=Array(str1,str2) document.write(a(0)) document.write(a(1)) End… Read More »

How to read a .properties file through script

rajeshkumar created the topic: How to read a .properties file through script The easy way to do it is to note that a Java properties file has the same format as a basic shell script. However, there’s a trick to it. If you just run the properties file like so: sh appl.properties The assignments will… Read More »

How to perl script to extract data

mnanjala created the topic: how to perl script to extract data Hi All, Below are the contents in the test.txt file id name adress 1 rajesh pune 2 pravin puttur 3 bani banglore Now can anybody write perl script to extract data based on id ? Example if id is 1 it should print rajesh… Read More »

tty terminals related script??

scmuser created the topic: tty terminals related script?? Develop script logic that allows only romeo and henry to execute a program, and only from the terminals tty05 and tty06

Character validation in shell script?

scmuser created the topic: character validation in shell script? Write shell code to accept a string from the terminal, and echo a suitable message if it does not have at least 10 characters using (i) case (ii) expr.

Make sure script is running using korn shell

scmuser created the topic: Make sure script is running using korn shell If you have developed a script using the Korn shell, how will you make sure the script will use that shell even if login shell is different? renjith replied the topic: Re: Make sure script is running using korn shell begin shell script… Read More »