05-17-2009
search the forums for canonical mode or ncurses getkey.
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Has anybody been able to execute a shell script call from a database trigger?
If so what are the steps to execute it? Do we have any specific packages in Oracle?
Reards,
Rahul. (1 Reply)
Discussion started by: rahulrathod
1 Replies
2. Shell Programming and Scripting
If test.ksh is successful then I have a sequence of script which needs to execute automatically. Is it possible to capture the return code to execute the next script automatically? what is better way of doing this. (4 Replies)
Discussion started by: zooby
4 Replies
3. UNIX and Linux Applications
hi all,
i hope i am posting this /beginner) question in the right forum:
i want to create an update trigger, which rolls back a transaction if a record of a table is updated. the table has - amongst others - a field 'statusid' - if a record in this table has the statusid X and it is attempted... (0 Replies)
Discussion started by: kalinkula
0 Replies
4. HP-UX
Hi, I'm totally new in Control-M and I really need some help. Here's my problem.
I need to make job X from a server trigger job Y from a different server where job X must receive a confirmation first before execution. :confused:
I really have no idea on how to do that so can you please give... (1 Reply)
Discussion started by: criphaze22
1 Replies
5. Shell Programming and Scripting
Hi,
I want a script , which searches the log for the term/phrase "JFSnapshotService::systemSnapshot: Starting data capture. This may take awhile depending upon system workload." and if there is some logging like this, it has to mail me that this data capture process is happening.,
Below is... (2 Replies)
Discussion started by: cratercrabs
2 Replies
6. Shell Programming and Scripting
have three big data file, however I just need to see the mentioned below one line form the all the file which has SERVER_CONNECTION Value
File 1
export SERVER_CONNECTION=//dvlna002:10001/SmartServer
File2
export SERVER_CONNECTION=///SmartServer
File3
export... (1 Reply)
Discussion started by: Nsharma3006
1 Replies
7. OS X (Apple)
Hi all...
Has _below_ ever been done in UNIX shell scripting before?
(I have done this easily in Python but this is using purely the shell.)
The DEMO version IS built and has been tested.
Pre-amble...
I now need at least one control pulse for the AudioScope.sh when in PURELY audio I/O mode,... (2 Replies)
Discussion started by: wisecracker
2 Replies
8. Shell Programming and Scripting
Hi,
I'm looking for a way to solve the following scenario:
A shell should automatically trigger / run when a text file is placed or present at a specific location.
My idea - to create a cron / anacron for every minute and inside that i will call a temp script. Temp script will move to my... (9 Replies)
Discussion started by: Gautham
9 Replies
9. Shell Programming and Scripting
mainpid=$$
(trap "echo timeout" SIGTERM SIGKILL SIGINT; sleep 5; kill $mainpid) &
watchdogpid=$!
sleep 10 #do something
kill $watchdogpid
I design a timeout function script
I don't see the echo "timeout" is on the screen (1 Reply)
Discussion started by: yanglei_fage
1 Replies
10. Shell Programming and Scripting
Hi Guys,
I have a main_script.sh which runs every day and scheduled in crontab.
in the main script i read data from config file
test.config
apple
mango
orange
main_script.sh
for i in `cat test.config`
do
if
then
echo 'Apple' (3 Replies)
Discussion started by: Master_Mind
3 Replies
LEARN ABOUT DEBIAN
concalc
CONCALC(1) User Commands CONCALC(1)
NAME
concalc - console calculator
SYNOPSIS
concalc [options] "expression"
concalc -m script "path"
DESCRIPTION
concalc calculates the given input term and returns the result as text. Please use will have problems with the shell interpretor. If you
give concalc more than one expression, all expression will be put together.
CALCULATION SYNTAX
standard calculations
2*(3+4/9)^3
standard operations
+ - * / ^ % sin cos tan asin acos atan sinh cosh tanh asinh acosh atanh ln log & | ! && || ~ >> << x rnd sqrt curt root integ d/dx
sqare root and cubic root
sqrt12 curt8
trigonometric functions and logarithms
sin3.64+ln5
other roots
fourth root of nine: 4root9
differential calculation
differential calculation of 2x^2-3x+3 at x=9: d/dx(2x^2-3x+3,9)
integration
integration of sinx+cosx between -1 and 3.2: integ(sinx+cosx,-1,3.2)
set variables
save the result of a calculation in variable A: 12*45/2->A
recall variables
multiply the saved value with 2: A*2
use last result
The last result is saved in the answer memory: ans+1
CONSTANTS
e euler constant
pi pi; example: sin(pi/2)
NUMBERS
standard
12.34
with exponent
12.23e-5
complex
12i-5
OPTIONS
-o, --output [output length]
The argument is a number between 2 and the maximal possible output length (normally 18).
-m, --mode [calculator mode]
The mode can be std (default, normal scientific calculatons), base (for logic functions and base-n calculatons) or script (for exe-
cuting scripts). In scripting mode, the last argument must be the path to the script file.
-c, --complex
This option enables complex numbers for the calculation. They are switched off by default.
-b, --base [calculator base]
The argument must be one of hex (hexadecimal), dec (decimal, default), oct (octal) and bin (binary). This option can only be used
when -m base is set.
-a, --angle [angle type]
The argument must be one of deg (degrees), rad (radiant), gra (grade).
-v, --version
Output the version of Concalc.
-h, --help
Outputs a short help.
SCRIPTING
The script interpreter of calc uses a C-like programming syntax. The following command are supported.
if expression
if(condition)
command for condition true;
else command for condition false;
while loop
while(condition)
command that is run while condition is true;
for loop
for(initialisation; condition; count-command)
command that is run while condition is true;
print command
print( output to print out );
getline command
getline; // read a text line from stdin and returns this text
getkey command
getkey; // return the key pressed by the user
// blocks until the user presses any key
keystate command
keystate; // returns the key pressed by the user or 0 if no key was pressed
// nonblocking
sleep command
sleep( time in microseconds ); //Script is stops for the given time
compare operators
==, != equal, unequal
>=, <=, >, < greather or equal, less or equal, greather, less
set operators
-> calculator set operator
= C-like set operator
type converting
(float) floating point value
(int) integer value
(string) text value
(bool) boolean value
BUGS
No bugs known!
If you find one, please report it by e-mail to the author.
AUTHOR
Rainer Strobel <rainer1223@users.sourceforge.net>
SEE ALSO
http://extcalc-linux.sourceforge.net
Linux APRIL 2007 CONCALC(1)