09-20-2002
Scripts
I have never written scripts and would like to know where I can find information on script writing for beginners. I've been told that Unix is a good starting point. Can anyone give me an idea of where I can find info for a beginner?
Thanks
9 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
script that ask for "enter a file name" and removes that file
and asks for confirmation before deletion
if executed the output might look as
enter the filename you intent to deleted
remover file? Y
file deleterd
I knwo the comand I would use
find . -name *.* -ok rm {}\; I guess... can... (1 Reply)
Discussion started by: LiTo
1 Replies
2. Shell Programming and Scripting
Hi,
First, let me explain the issue I am trying to solve. We have a lot of expect scripts with the duplicated send/expect commands. So, I'd like to be able to extract the duplicated code into the common scripts that can be used by other scripts.
Below is my test where I am trying to call... (0 Replies)
Discussion started by: seva
0 Replies
3. UNIX for Dummies Questions & Answers
what is the difference between login and profile scripts versus the rc scripts? (1 Reply)
Discussion started by: rookie22
1 Replies
4. Shell Programming and Scripting
Hi,
I've written a script that runs on a Database server. It has to shutdown the Application server, do an Oracle Dump and then restart the Application server. Its been a long time since I wrote any shells scripts. Can you tell me if the scripts that I execute within my script will be executed... (3 Replies)
Discussion started by: brockwile1
3 Replies
5. Shell Programming and Scripting
Hi all,
I have set up a cron job which calls another shell script shell script which in turn calls a Java process. The cron tab looks so.
0,30 7-18 * * 1-5 /u01/home/weblogic/brp/bin/checkstatus.sh >> /u01/home/weblogic/logs/checkstatus.log
The checkstatus.sh scripts looks like this.
... (4 Replies)
Discussion started by: sirbrian
4 Replies
6. Shell Programming and Scripting
Hi,
I have to write a program to compute the checksums of files
./script.sh
I wrote the program using bash and it took me forever since I am a beginner but it works very well.
I'm getting so close to the deadline and I realised today that actually I have to use normal Bourne shell... (3 Replies)
Discussion started by: pgarg1989
3 Replies
7. Shell Programming and Scripting
Dear Members,
I have a table REQUESTS in Oracle which has an attribute REQUEST_ACTION. The entries in REQUEST_ACTION are like, ME, MD, ND, NE etc.
I would like to create a script which will will call other scripts based on the request action.
Can we directly read from the REQUEST_ACTION... (2 Replies)
Discussion started by: Yoodit
2 Replies
8. Shell Programming and Scripting
Hi all, I'm wondering if you could give me some advice. I am new to scripting and am getting rather frustrated that i can get my script to call another script if certain criteria is met, via command line, but I cannot get the same script to work thru the cron jobs.
My first script monitors... (8 Replies)
Discussion started by: echoes
8 Replies
9. Shell Programming and Scripting
Dear all,
I am working on script which call other shell scripts in a loop but problem is from second script am not able to come out.
Here is the snippet:-
#!/bin/bash
HSFILE=/root/Test/Components.txt
LOGFile=/opt/domain/AdminDomain/application/logs... (3 Replies)
Discussion started by: sharsour
3 Replies
LEARN ABOUT SUSE
capisuite
CAPISUITE(8) CAPISUITE(8)
NAME
capisuite - Python-scriptable ISDN telecommunication suite
DESCRIPTION
CapiSuite is a Python-scriptable ISDN telecommunication suite. It uses the new CAPI interface for accessing your ISDN-hardware - so you'll
need a card for which a CAPI compatible driver is available. Currently these are all cards manufactured by AVM and some Eicon cards.
This man page only gives a short introduction, for the real documentation please see the HTML or PDF manual distributed with CapiSuite.
CapiSuite tries to give the user the ability to code his own ISDN applications without having to fiddle around with all the dirty program-
ming details like callback functions, data buffers, protocol settings and so on.
I took a scripting language which is (in my opinion) very easy to understand, to use and to learn - especially for beginners: Python. I
extended it with some functions providing the basic ISDN "building blocks" for the users application. Behind these functions the heart of
CapiSuite implements all the dirty details a user isn't interested in. My goal was to make script-coding as simple as possible but to also
give you the flexibility to realize what you want.
To give you an impression, coding a simple answering machine is as easy as:.IP .nf def callIncoming (call, service, call_from, call_to):
connect_voice (call, 10) # answer call after 10 secs audio_send (call, "announcemnt.la") # play announcement audio_send (call, "beep.la") #
play beep audio_receive (call, "call.la", 10) # record call .fi
Of course some details are missing like creating a unique filename or storing the additional information (called and calling party numbers,
time, ...) - but I assume you got my idea.
And - don't be afraid - if you just want to have a normal answering machine or send and receive some fax documents, you can use the default
scripts distributed with CapiSuite. They give you already some nice features - e.g. the answering machine is multi-user ready, supports
automatic fax detection and remote inquiry functions. You'll only need to tell CapiSuite some details like your own number, record an own
announcement and that's it.
So CapiSuite is already equipped for your daily telecommunication needs - but if you don't like to do the things the way I do - just change
it or completely do it on your own. And if you write nice scripts or have changes to my default scripts, I would love to get and perhaps
make them available for all users if you don't mind.
SEE ALSO
capisuite.conf(5), fax.conf(5), answering_machine.conf(5), capisuitefax(1)
AUTHOR
Gernot Hillier <gernot@hillier.de>.
CAPISUITE(8)