07-26-2011
hey Itkamaraj, the code you linked is in bash, i need to run it in csh.
thanks
10 More Discussions You Might Find Interesting
1. Programming
I'm using getopt() to get command line options.One the optons accepts and argument.The argument is and offset.I was wondering how can I scecify that it's argument is of the type off_t.I've something like this "offset=(off_t)optarg" and it don't work. (1 Reply)
Discussion started by: angelfly
1 Replies
2. Shell Programming and Scripting
scriptname
i have made a script to perform so tasks and i managed to complete the tasks for all the options
the problem i am facing is that i can run the scripts individually but i would like to make it such that it can accept multiple options and give me the appropriate output
e.g.... (1 Reply)
Discussion started by: problems
1 Replies
3. Shell Programming and Scripting
#!/bin/sh
set -- `getopt "abco:" "$@"`
a= b= c= o=
while :
do
case "$1" in
-a) a=1;;
-b) b=1;;
-c) c=1;;
-o) shift; o="$1";;
--) break;;
esac
shift
done
shift # get rid of --
# rest of script...
# e.g.
ls -l $@ (6 Replies)
Discussion started by: Hitori
6 Replies
4. UNIX for Dummies Questions & Answers
Is there a way to get getopt/getopts to work in csh?
I know... csh is not a good shell. Nobody should be using it but I have to deal with old scripts already coded using this shell and therefore I have to do some maintenance to them...
Any ideas about how to get it to work? I did recode some sh... (2 Replies)
Discussion started by: Guillermo Lopez
2 Replies
5. Shell Programming and Scripting
I have an extraordinary problem with a csh script.....(feel free to berate the use of this but I'm modifying an existing bunch of them)
Anyway, I have a master csh script which in turn calls a second csh script. This second csh script is below. Within this second script are two compiled C++... (1 Reply)
Discussion started by: pollsizer
1 Replies
6. Shell Programming and Scripting
I m trying to use getopt
This is my script, but it doesn't take argument in variable,
Please help.
set - - `getopt mscl: $*`
if
then
echo "Exiting...."
exit 2
fi
for i in $*
do
case $i in
-m) MAIL="$i"; shift;;
-s) SCRIPT=$OPTARG; shift;;
-c) COB=$OPTARG; shift;;... (2 Replies)
Discussion started by: darshakraut
2 Replies
7. Shell Programming and Scripting
:)
Can anybody help me about how to use getopt in shell scripting. (3 Replies)
Discussion started by: darshakraut
3 Replies
8. Shell Programming and Scripting
Hi,
I want to use the getopt function to parse some arguments for a script.
while getopts "i:f:r:" OPTION
do
case $OPTION in
i) iter=$OPTARG;;
f) frame=$OPTARG;;
r) roi=$OPTARG;;
?) echo Usage: ......
exit 2;;
esac
done
However, I... (5 Replies)
Discussion started by: giorgos193
5 Replies
9. Shell Programming and Scripting
I am working on a script that lists files in a directory with a few file attributes depending on what option the user specifies at the command prompt. The script uses Getopt::Std and takes two switches.
The first switch allows the user to specify a directory, the second switch gives a long... (3 Replies)
Discussion started by: Breakology
3 Replies
10. Shell Programming and Scripting
Hi All,
An old work friend wrote a script which I've been trying to understand how a section of it currently works and work out how i can add some command line switches which i can use later in the script to append the output depending on the command line arguements.
Currently it works by... (1 Reply)
Discussion started by: mutley2202
1 Replies
HIME(1) hime input method platform HIME(1)
NAME
hime - an input method server
SYNOPSIS
hime [-h|-v|--version]
DESCRIPTION
hime is an input method(IM) server, which focused mainly on Traditional Chinese. It is also very useful for Simplified Chinese, Japanese,
and many other languages. IM table format of hime is almost as same as those of scim and xcin. Users may append their IMs to hime very eas-
ily.
If you are looking for configuration tool of hime, please see the manpage of hime-setup.
OPTIONS
-h, -v, --version
Show version of hime.
FILES
/usr/share/hime/table/gtab.list
Input methods available for hime. You may copy it to $HOME/.config/hime/ and edit it as you like. If you have no $HOME/.con-
fig/hime/gtab.list, /usr/share/hime/table/gtab.list will be used.
/usr/share/hime/script/utf8-edit
A file helps hime finding text editors when needed. You may add any UTF-8 compatible text editor to it.
ENVIRONMENT VARIABLES
LC_CTYPE
For bash: export LC_CTYPE=zh_TW.UTF-8
For csh: setenv LC_CTYPE zh_TW.UTF-8
XMODIFIERS
For bash: export XMODIFIERS=@im=hime
For csh: setenv XMODIFIERS @im=hime
GTK_IM_MODULE
For bash: export GTK_IM_MODULE=hime
For csh: setenv GTK_IM_MODULE hime
QT_IM_MODULE
For bash: export QT_IM_MODULE=hime
For csh: setenv QT_IM_MODULE hime
HIME_CONNECT_MSG_ON
Display messages for socket connections.
HIME_DBG_TMP
Display additional debug messages.
HIME_ERR_COREDUMP
Option for debugging.
HIME_IM_CLIENT_NO_AUTO_EXEC
Disable auto-evoke in hime protocol.
HIME_OUTPUT_FILTER
Assign output filter to process data before the IM server send them to clients.
HIME_TABLE_DIR
Assign directory for IM tables other then /usr/share/hime/table.
SEE ALSO
hime-setup(1), cin2gtab(1), hime-phoa2d(1), hime-juyin-learn(1), hime-message(1)
AUTHORS
Edward Der-Hua Liu
Wrote hime and associated tools.
Friend of Chanjei IM, Malaysia <www.chinesecj.com>
Author of original Chanjei IM version 5 table.
Dayi Co., Ltd. <http://www.dayi.com>
Author of Dayi IM.
HIME 0.8 2 FEB 2008 HIME(1)