I am executing a sql query from cursor through a shell script. but I am not receiving the output. when I manually triggered the query. I am receiving the output as expected.
---------- Post updated at 03:42 AM ---------- Previous update was at 02:08 AM ----------
when I executed the query through manually connecting in databse it work as below.
But output is not displayed If I am running through the shell script.
The below query is executed through shell script and not getting output expected not sure whether my syntax is correct.
Hi,
I'm trying to write a shell script that has a menu and then dependant on the selection, will automate some samba file transfer.
The problem is when I run the code without the case statement it runs fine. but when I put the case statement in the only way I can get the code to run is to... (6 Replies)
Hi I am trying to create a shell script that will
look for a contracthead file first and if the contract head file does not exist on day1 exit script.
Now on day2 if contracthead exists or not run the script uploading files in order
such as contract line then contract contact
so the... (2 Replies)
In a case statement like below :
case $rental in
"car") echo "For $rental Rs.20 per k/m";;
"van") echo "For $rental Rs.10 per k/m";;
"jeep") echo "For $rental Rs.5 per k/m";;
"bicycle") echo "For $rental 20 paisa per k/m";;
*) echo "Sorry, I can not gat a $rental for you";;... (4 Replies)
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)
Hello I am very new to shell and I bought some books and trying to learn it. I started trying to write a script that will take a number and count it down to 1 with commas in between. This number can only be one argument. If lower than one or higher than one argument it sends an error message. ... (4 Replies)
Hello forum members.
please go through the below mentioned issue and let me know the right solution.
I have to write a script which runs another script .the executable script take input parmeters.so iam writing the the script below .
Sample Code:Begins
#! /bin/ksh
echo " enter... (2 Replies)
Hi,
I am having a shell Script which i need to modify. I am new to shell scripting , needs help. The Logic which needs to be incorporated is as follows :-
The script need to check the length of first Line in a data fine and of the length of the file is > 130 then validated the input... (2 Replies)
I want to make the file test condition a variable ($Prmshn in code below).
My goal is to use something like the first three unsuccessful if statetments since the 'if
#!/bin/ksh
test_input()
{
Prmshn=${1}
InFLNm=${2}
ifReq="-$Prmshn $InFLNm"
#the following three if statments fail:
#if ] ;... (10 Replies)
have written the below code to check whether the string received from user is a file name or dir using case statement, but its going into default case*).
#!/bin/sh
#Get a string from user and check whether its a existing filename or not
rm str2
rm str3
echo "enter a file \c"
read fil... (8 Replies)
Please see part of a shell script below.
#Move folder to HOT folder
echo " moving $PRE_OCR_DIR/$BATCHNAME to $HOT_FOLDER_DIR\n"
#chmod -R 777 $PRE_OCR_DIR/$BATCHNAME
mv $PRE_OCR_DIR/$BATCHNAME $HOT_FOLDER_DIR
I wish to write an if statement around the move
that if that if $BATCHNAME... (3 Replies)
Discussion started by: worky
3 Replies
LEARN ABOUT CENTOS
ibus-daemon
IBUS-DAEMON(1) User Commands IBUS-DAEMON(1)NAME
ibus-daemon - daemon program for ibus
SYNOPSIS
ibus-daemon [OPTION]...
DESCRIPTION
IBus is an Intelligent Input Bus. It is a new input framework for Linux OS. It provides full featured and user friendly input method user
interface. It also may help developers to develop input method easily.
ibus-daemon is a daemon program for ibus and it is also a start up program for users to activate ibus daemon, engines and panel.
Help Options:
-h, --help
Show help options
Application Options:
-d, --daemonize
run ibus as background process.
-s, --single
do not execute panel and config module.
-x, --xim
execute ibus XIM server.
-n, --desktop=name
specify the name of desktop session. [default=gnome]
-p, --panel=cmdline
specify the cmdline of panel program.
-c, --config=cmdline
specify the cmdline of config program.
-a, --address=address
specify the address of ibus daemon.
-r, --replace
if there is an old ibus-daemon is running, it will be replaced.
-t, --cache=mode [default is auto]
force to re-scan components, and re-create registry cache. auto, refresh, none is available.
-o, --timeout=timeout [default is 2000]
dbus reply timeout in milliseconds.
-j, --monitor-timeout=timeout [default is 0]
timeout of poll changes of engines in seconds. 0 to disable it.
-m, --mem-profile
enable memory profile, send SIGUSR2 to print out the memory profile.
-v, --verbose
verbose.
BUGS
If you find a bug, please report it at http://code.google.com/p/ibus/issues/list
SEE ALSO ibus(1)1.5.3 April 2010 IBUS-DAEMON(1)