Hi
I have a shell script in which a string variable is saving following query.
SqlQuery="select a||'|'||b||'|'||c from dual"
I am trying to pass above query as a parameter to some script but its giving me error for "single quote". I tried suppressing it using \' instead of just ' but it... (1 Reply)
Hi there
I have a database on a remote box and i have been using shell script to insert data into it for example, i could have a script that did this
SN=123456
n=server1
m=x4140
sql="UPDATE main SET hostname='$n',model='$m' WHERE serial='$SN';"
echo $sql |/usr/sfw/bin/mysql -h... (4 Replies)
Hi,
I need to connect to the database and retrieve two variables from the database and store them in a variable,out of these two variables I need to get lastdigit appended to the variable 1 retrieved and variable 2 with out any modification
in short
select var,data from usage;
o/p=... (1 Reply)
Hi All,
bash-3.00$ gzgrep -i '\ ExecuteThread:' /******/******/******/******/stdout.log.txt.gz
<Jan 7, 2012 5:54:55 PM UTC> <Error> <WebLogicServer> <BEA-000337> < ExecuteThread: '414' for queue: 'weblogic.kernel.Default (self-tuning)' has been busy for "696" seconds working on the request... (4 Replies)
HI,
I want to connect to database and fetch the count from a table.
The sql query is as below :
select count(*) from table_test where test_column='read';
How can I print the output of this statement using shell script.
Thanks in advance. (4 Replies)
Hi team,
I have two select statements and need to run them using SYSDBA user
select * from temp_temp_seg_usage;
select segment_name, tablespace_name, bytes/ (1024*1024) UsedMb from
dba_segments where segment_name='TEMP_TEMP_SEG_USAGE';
Need to run this using a shell script say named... (1 Reply)
cd /opt/et/WAS/apps/8.0
find . -name "HostIntegration.properties" -o -name "HostSocket.properties" -o -name "environment.properties" 2> /dev/null | awk -F '' '{print $4}'|awk '!x++' | cat>/home/cbadmin/file1.txt
cd /home/cbadmin/
PS3='Please enter a number from list of applications==>:'
select... (3 Replies)
I have a text file in this format
Some lines....
Question no: 1
The question?
A. Answer 1
B. Answer 2
C. Answer 3
D. Answer 4
Answer:B
Some lines....
Question no: 2
The question? (choose 2) (10 Replies)
Hello,
I have script which work 70% of the desired task , the output from script.sh is following , however the desired output I require is following .
Any piece of suggestion would be great..
thanks in advance,
emily
#!/bin/bash ... (8 Replies)
Discussion started by: emily
8 Replies
LEARN ABOUT DEBIAN
beef
BEEF(1) User Commands BEEF(1)NAME
beef - flexible Brainfuck interpreter
SYNOPSIS
beef [OPTIONS] FILE
DESCRIPTION
beef is a Brainfuck interpreter written in C. It is written with flexibility and portability in mind: it is not the smallest nor the
fastest Brainfuck interpreter on Earth, but it has some options to control his behavior and doesn't suffer most of the limitations which
are usually present in Brainfuck interpreters.
One of the best features of beef is that it has no limitations on the length of the tape, which is created dinamically, and allows you to
move in any direction, even to move an unlimited amount of cells left when you are on the starting cell.
beef also allows you to control his behavior in case it reads and EOF from the input stream: see below for a list of available options.
OPTIONS -d Enable debugging. The debugging command # is not part of the Brainfuck language, but it's an useful feature for the programmer, so
most interpreters implement it. Debugging is off by default.
-e When read an EOF from input, store an EOF in the current cell. This is for compatibility with programs written for other inter-
preters; the default behavior is to store a 0 in the current cell when an EOF is read.
-n When read an EOF from input, do nothing. This is the default behavior in some other interpreters, so it's supported in beef for com-
patibility reasons. The default behavior is to store a 0 on the current cell instead.
--version
Show the version number and exit successfully.
--help Show a short help message and exit with success.
EXIT STATUS
beef returns an exit staus of zero on success, or an exit status of -1 if it was unable to perform the requested operation.
Please note that no checks are performed on the code: if the code you are trying to run is buggy, beef will run it anyway and the result
will probably differ from what you expected.
AUTHOR
This manual page was written by KiyuKo <eof AT kiyuko DOT org>
0.0.6 February 01, 2007 BEEF(1)