04-16-2012
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
:confused:Hi ,
I have a script as shown below:
rpttxt()
{
name="$*"
awk '/'"${name}"'/ {print $2 $3"=" $4}' file.txt
}
xx = rpttxt "COL_HEAD_1"
awk 'BEGIN {printf("%36s \n ","'"$xx"'")}'
rpttxt() is a function..I want to store the final result of this function in... (3 Replies)
Discussion started by: jisha
3 Replies
2. Shell Programming and Scripting
I am new to perl, and need a script to pull a CSV file, strip out 2 leading columns, and 2 ending columns, and resave the file in a new location. The file is basic and has less than 10,000 records. Secondly, can I schedule perl scripts to run daily? Can someone provide the basic script to... (1 Reply)
Discussion started by: cobbjob
1 Replies
3. Shell Programming and Scripting
hi all,
I have 3 perl scripts a.pl,b.pl and c.pl
each of these work when i pass a date for eg: perl c.pl 2010-05-27
now i want to write a perl script that would call the 3 scripts and make it run all the 3 scripts (a.pl,b.pl,c.pl) parallelly rather than 1 after the other.......
pls... (2 Replies)
Discussion started by: siva_nagarajan
2 Replies
4. Shell Programming and Scripting
This is the ldf file
dn: sdcsmsisdn=1000000049,sdcsDatabase=subscriberCache,dc=example,dc=com
objectClass: sdcsSubscriber
objectClass: top
postalCode: 29600
sdcsServiceLevel: 10
sdcsCustomerType: 14
givenName: Adelia
sdcsBlackListAll: FALSE
sdcsOwnerType: T-Mobile
sn: Actionteam... (1 Reply)
Discussion started by: LinuxFriend
1 Replies
5. Shell Programming and Scripting
Hi am new to perl script ..
i need some useful tutorials links to learn perl script..
and a sample script to call a php file from perl script..
thanks.. (3 Replies)
Discussion started by: senkerth
3 Replies
6. Shell Programming and Scripting
I am creating a startup script for an application. This application's startup script is in bash. It will also need to call a perl script (which I will not be able to modify) for the application environment prior to calling the application. The problem is that this perl script creates a new shell... (5 Replies)
Discussion started by: leepet01
5 Replies
7. Shell Programming and Scripting
I am trying to run a perl script which needs input arguments from a parent perl script, but doesn't seem to work. Appreciate your help in this regard.
From parent.pl
$input1=123;
$input2=abc;
I tried calling it with
system("/usr/bin/perl child.pl $input1 $input2");
and
`perl... (1 Reply)
Discussion started by: grajp002
1 Replies
8. Shell Programming and Scripting
Can someone let me know how could I achieve this
In one of per script I am calling the shell script but I need to so one thing that is one shell script call I need to pass pne argument.In below code I am calling my ftp script but here I want to pass one argument so how could I do this (e.g:... (5 Replies)
Discussion started by: anuragpgtgerman
5 Replies
9. Shell Programming and Scripting
Hi,
I am working on a sever A.
I want to write a perl script to execute a shell script persent on the server B.
please help me in this.
thanks in advance. (3 Replies)
Discussion started by: anandgodse
3 Replies
10. Shell Programming and Scripting
I have a function which does awk proceessing
sub mergeDescription {
system (q@awk -F'~' '
NR == FNR {
A = $1
B = $2
C = $0
next
}
{
n = split ( C, V, "~" )
if... (3 Replies)
Discussion started by: crypto87
3 Replies
gtans(6) Games Manual gtans(6)
NAME
gtans - Tangram game for X
SYNOPSIS
gtans [no options]
DESCRIPTION
Gtans is a tangram game that runs in X. Tangram is a kind of puzzle game where the player has to arrange a set of pieces to match a given
shape.
OPTIONS
No command-line options
Use the graphical interface to customize the program. See below.
USAGE
move the pieces (known as tans) until they match the figure drawn on the right window. You must always use the seven tans and they should
not be laid on top of one another.
To move a tan, click and drag it with left mouse button, for rotation click AROUND it. You can flip the selected tan by right-clicking.
This is usefull for the parallelogram tan (all positions can not be reached by rotating only).
If you are a beginner to Tangram you should try the first 10 figures. The other ones are not sorted, some of them are very difficult (to
my taste).
When a figure has been solved the background color of the silhouette area changes. The solved figures are remembered by saving a status
file in the user's directory (~/.gtans/afile.figures.status for a figure file called afile.figures)
Show a tan This button shows the position of a tan. Each further click will display an other tan.
Show outline Draw the figure in the main area. This makes the game much easier.
Preferences Most of this menu's options allow you to change the colors used by the game. For the main area you may choose textures (pixmap
files) instead of colors. Some sample files are supplied (I can't remember where I found them) but as the complete pathname is saved in the
config file you can choose a file located anywhere (for example in /usr/share/pixmaps/). On a 8 bits display the colors may not be exactly
what you want (GTK tries to find the best matching color).
Preferences/Tans size/Increase Makes the tans 5 % bigger relatively to the game area. If you resize the window the tans size will be
scaled.
Preferences/Tans size/Decrease Makes the tans 4.76 % smaller
Preferences/Accuracy Changes the precision of the comparison between the tans position and the solution. A lower accuracy makes the game
more easy.
Preferences/Rotation Step by step allows only rotation by increment of 11.5 degrees. Continuous rotation makes the game more difficult and
you probably shouldn't use it unless you really dislike step by step rotation.
Preferences/Figures file Allows you to choose another figures file.
Preferences/Save config Save a config file in the user's home directory.
Misc/Clear figure status Set the current figure as unsolved.
Misc/Clear all figures status Set all the loaded figures (i.e. from the current figure file) as unsolved.
FILES
~/.gtans/.gtansrc Configuration options for gtans. All of these options can be set from the interface, there should be no
need to edit this file.
~/.gtans/somename.figures.status Status files (for each figures file the user played with) remenbering which figures where
solved.
SEE ALSO
The gtans homepage at <http://gtans.sourceforge.net/>. Additional information and documentation can also be found in
/usr/share/doc/gtans/ .
AUTHOR
The author of gtans is Philippe Banwarth <bwt@users.sourceforge.net>
February 2000 gtans(6)