12-18-2009
run a script to set a globle varible?
Hi,
My original shell is csh, I don't likw it, so I have to run bash every time after I login, the problem is I have a script like
export PLOG=$1,
every time I run the script under bash, the PLOG won't be set, I know I can use source to set the PLOG, is there any other way to do it?
thanks.
peter
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
Hi,
I have a program that searches for a particular string patten. I am however having difficulty passing the varible $i (in a loop) as the string pattern to replace. Using either perl or sed search and replace statements, I get the same kinda result. For example, using the perl:
for i in... (3 Replies)
Discussion started by: Breen
3 Replies
2. UNIX for Dummies Questions & Answers
Folks,
How can I do a globe search & replace in VI editor? Any help?
Thanks. (2 Replies)
Discussion started by: ting123
2 Replies
3. Shell Programming and Scripting
hi
How can one change an environment varaible inside a shell script
say my bash shell has a env variable export FOO="Day"
no i want to write a script inside which the FOO variable is modified to say
export FOO=NIGHT
after this script finishes te bash shell should show me NIGHT when i... (1 Reply)
Discussion started by: wojtyla
1 Replies
4. Shell Programming and Scripting
Hi,
How can I run a script at 9:00am and 6:00pm everyday? Can I run it at background while I logout my account?
Please help!!
Many Thanks!! (1 Reply)
Discussion started by: happyv
1 Replies
5. Shell Programming and Scripting
I need to run a set of commands on a remote machine using ssh. it should also collect output and return status of each command. Can someone help me how to do this? (1 Reply)
Discussion started by: vickylife
1 Replies
6. Shell Programming and Scripting
Hi all,
I want to monitoring my interface every 6 hours where i want to run snoop command to capture all packet through the interface, so i want running snoop then snoop will run for 5 minutes after that snoop stop then will start again after 6 hours than run for 5 minutes again.
thereis any... (9 Replies)
Discussion started by: tindasz
9 Replies
7. Shell Programming and Scripting
Hi All,
We need to run a Connect direct script on Unix server to send a file to Mainframe server and at mainframe end there need to run another job through Runtask with some parameters need to be passed from C:D (unix) to mainframe.
My question is I have to pass parameters like DSN and FNAME as... (2 Replies)
Discussion started by: matrix001
2 Replies
8. Solaris
Hi,
I have a script in my home directory. it has to be run every day. as of now, im manually running as ./myscript.sh
Can someone please tell me how to set it as automatic run (runs everyday at specific time ) so that it runs even if im not there. (9 Replies)
Discussion started by: JSKOBS
9 Replies
9. Shell Programming and Scripting
Hi,
I am looking for a shell script which serves the below purpose.
Please find below the algorithm for the same and any help on this would be highly appreciated.
1)set of strings need to be replaced among set of files(directory may contain different types of files)
2)It should search for... (10 Replies)
Discussion started by: Amulya
10 Replies
10. Solaris
Hi all,
I have this script which sends mail whenever the system is down. It works fine. Normally the system is down from 21 00 to 21 30 from Monday to Saturday and from 21 00 on Sunday to Monday 06 00 for maintenance. So I want the below script to run only when the system is up, i.e outside the... (2 Replies)
Discussion started by: frum
2 Replies
GCIN(1) gcin input method platform GCIN(1)
NAME
gcin - an input method server
SYNOPSIS
gcin [-h|-v|--version]
DESCRIPTION
gcin 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 gcin is almost as same as those of scim and xcin. Users may append their IMs to gcin very eas-
ily. The "g" of gcin means that it features a better GTK+ user interface.
If you are looking for configuration tool of gcin, please see the manpage of gcin-tools.
OPTIONS
-h, -v, --version
Show version of gcin.
FILES
/usr/share/gcin/table/gtab.list
Input methods available for gcin. You may copy it to $HOME/.gcin/ and edit it as you like. If you have no $HOME/.gcin/gtab.list,
/usr/share/gcin/table/gtab.list will be used.
/usr/share/gcin/script/html-browser
A file helps gcin finding html browsers when needed. You may add any compatible html browser to it.
/usr/share/gcin/script/utf8-edit
A file helps gcin 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=gcin
For csh: setenv XMODIFIERS @im=gcin
GTK_IM_MODULE
For bash: export GTK_IM_MODULE=gcin
For csh: setenv GTK_IM_MODULE gcin
QT_IM_MODULE
For bash: export QT_IM_MODULE=gcin
For csh: setenv QT_IM_MODULE gcin
GCIN_CONNECT_MSG_ON
Display messages for socket connections.
GCIN_DBG_TMP
Display additional debug messages.
GCIN_ERR_COREDUMP
Option for debugging.
GCIN_IM_CLIENT_NO_AUTO_EXEC
Disable auto-evoke in gcin protocol.
GCIN_OUTPUT_FILTER
Assign output filter to process data before the IM server send them to clients.
GCIN_TABLE_DIR
Assign directory for IM tables other then /usr/share/gcin/table.
SEE ALSO
gcin-tools(1), gcin2tab(1), phoa2d(1), juyin-learn(1), gcin-message(1)
AUTHORS
Edward Der-Hua Liu
Wrote gcin 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.
GCIN 1.4.4 2 FEB 2008 GCIN(1)