02-25-2014
Hi Wisecracker. True, I guess. I habitually use a wait statement to wait for background processes. That way I do not have to think, when the while true loop is changed to something else in the future for example...
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I am new to unix as well as shell programming.
Any body can provide me a simple shell script which should copy/transfer/fetch a file(using FTP)from remote server to local system.and it should log the details when it was fetched.If there is any error,the error msg should log in log... (1 Reply)
Discussion started by: Mar1006
1 Replies
2. UNIX for Advanced & Expert Users
Hi,
I need of a simple shell script to launch a perl script.
The complet path of the script is:
/export/home/x2693/project/v02/appliancemanagement.pl (2 Replies)
Discussion started by: Minguccio75
2 Replies
3. Shell Programming and Scripting
Hi,
I am new to unix and using linux 7.2. I would like to create a script that would make it easyer for me to run my java programms. At the moment I have to type java myJavaprogram
I am trying to write a script that will allow me to type something like this "myscript myJavaprogram" or maybe... (4 Replies)
Discussion started by: cmitulescu
4 Replies
4. Shell Programming and Scripting
CPAN provide xml::simple module which can be used to generate XML files.
can i use this module in shell scripting? how? plzz give me an example to generate xml file using this module . you can also use some other module..
BUT SHELL SCRIPTING SHOULD ONLY BE USED (4 Replies)
Discussion started by: cynosure2009
4 Replies
5. Shell Programming and Scripting
Hello Friends,
I am writing a shell script which will grab a file if it exists and copies it to another folder and will append with current date. I have written but gives me error, plz help:
--------------------------------------------
#!/usr/bin/sh
source=/home/dev4rice/naveen/test1... (4 Replies)
Discussion started by: ganesh123
4 Replies
6. Shell Programming and Scripting
Hello,
I want to find the "IP-OF-SERVER" in /etc/squid/squid.conf And replace it with The IP of server.
I know this command returns the IP of server :
ifconfig | grep 'inet addr:'| grep -v '127.0.0.1' | cut -d: -f2 | awk '{ print $1}'
And I can replace with sed. :
sed -i... (4 Replies)
Discussion started by: Ghadamyari
4 Replies
7. Shell Programming and Scripting
Hey, i hope someone can help me with this program.
I need to write a program in shell which will return how many times and how much time have users been logged in system between two dates. We give time as 2 dates as arguments in command line.
Example:
$ nameofprogram 27/04 06/05
... (1 Reply)
Discussion started by: Exander
1 Replies
8. Homework & Coursework Questions
1. The problem statement, all variables and given/known data:
An argument example:
../path/cse/lab3/remove
Right now, it's printing out all the directory and files in 'lab3'.
I want it to print out all the files in 'remove'.
I'm not sure how to do that. (I want to use a for loop)
2.... (2 Replies)
Discussion started by: spider-man
2 Replies
9. UNIX for Dummies Questions & Answers
sxsaaas (3 Replies)
Discussion started by: VikrantD
3 Replies
10. Shell Programming and Scripting
Hello All,
My name is vasu and I am very new to Unix scripting, i know basic commands, but now i need to write the following script, i have tried but no luck
My requirment is i am getting one our from another command as following
Used:1.8TB Advisory Quota:1.8TB aaa1
Used:4.5TB Advisory... (1 Reply)
Discussion started by: VasuKukkapalli
1 Replies
DEAL(6) Games Manual DEAL(6)
NAME
deal - bridge hand generator
SYNOPSIS
deal [ -ltv ] [ -e expr ] [ -i condition file ] [ -I format ] [ -s seed ] [ -[NSEW] hand-spec ] [ count ]
DESCRIPTION
deal is a program to generate bridge hands.
OPTIONS
-l Write deals in a "single-line" format.
-t Print distribution table and exit. The distribution table is an ordered list of all possible hand patterns for a single hand.
-v Be verbose, print sample count.
-e expr
Evaluate the Tcl expression expr.
-i condition file
File that defines the hand type to generate or the output format. (Can be given multiple times.)
-I format
Read hands from stdin. Formats available are: ddline, giblib, line, pbn, smartstack. You might deal, say, 10,000 hands which sat-
isfy specific criteria, saving them to a file. Then you can use that output for input with deal -I to find out which hands satisfy
other constraints.
-s seed
Initialize random generator with seed.
-[NSEW] hand-spec
Specifies the cards held by the specified hand. The hand-spec should be of the form: "AK8532 - KQ72 A65". Voids must be represented
with a '-' character. hand-spec should be one argument, so the string should be quoted on the command line.
count Number of hands to generate, default is 10.
SEE ALSO
/usr/share/doc/deal/html, /usr/share/deal.
AUTHOR
deal was written by Thomas Andrews <deal@thomaso.best.vwh.net>.
This manual page was written by Christoph Berg <cb@df7cb.de>, for the Debian project (but may be used by others).
January 1, 2005 DEAL(6)