Sponsored Content
Top Forums Shell Programming and Scripting Variable not an identifier when script is run as another user Post 302737699 by newbie2010 on Thursday 29th of November 2012 01:41:14 PM
Old 11-29-2012
VBE: Dude, you are so right! The other user is running csh! Thanks for the help. I guess I will have to look into how csh treats variables. Maybe it uses setenv or something like that! Thanks for the help and if you have any further suggestions, let me know.

---------- Post updated at 01:41 PM ---------- Previous update was at 11:59 AM ----------

VBE you were right! using the #!/bin/bash fixed it! THANKS A MILLION!
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

run a script with another user id

Hi, I have a script A.run which will call B.run. How can i run B.run with a common id instead of using my login id? I have tried as below, in Script A.run : ......... echo "Running B.run......" rsh -l commonid hostname B.run ......... but it's give me "Permission Denied"....... ... (3 Replies)
Discussion started by: wan
3 Replies

2. Shell Programming and Scripting

Have script run as a different user

Hi all, I'm a newbie to the Linux world. I have a script that needs to run under "UserB". But I don't want to give out the password to UserB. Is there a way to setup the script to run as "UserB" when UserA runs it. Thanks in advance for your assistance. (1 Reply)
Discussion started by: mikey20
1 Replies

3. Shell Programming and Scripting

Run the script from another user

Hello Experts I want to run script from another user in unix . Also the script has been calling from SQL. HOST command helps to call the unix file from sql . But my problem is the unix script has to be run by another user. I tried tht following $ sudo su - user2 -c who... (4 Replies)
Discussion started by: Krishnaramjis
4 Replies

4. Shell Programming and Scripting

how to run script? call other script? su to another user? make a cron?

Good morning. I am searching for "how-to"'s for some particular questions: 1. How to write a script in HP-UX 11. 2. How to schedule a script. 3. How to "call" scripts from the original script. 4. How to su to another user from within a script. This is the basics of what the... (15 Replies)
Discussion started by: instant000
15 Replies

5. AIX

Run script by another user

Guy's I have script to start the data base and this script need to be excited by Oracle user Is there any command to be excited by root and to run this script Start_Oracal_DB.sh by Oracle user Pls Advice … Excessive formatting removed. I have told you so on several occasions now and... (2 Replies)
Discussion started by: Mr.AIX
2 Replies

6. Shell Programming and Scripting

Run the script as other user

hello all There are files on host1 which need to sftp'd to host2 everyday. user 'yyy' has his dsa keys set up on host 1 and host 2 . If user 'yyy' executes the below query without 'su' part, then all files are transferred. Now user 'xxx' wants to run the script and transfer the files, but he... (5 Replies)
Discussion started by: vasuarjula
5 Replies

7. Shell Programming and Scripting

Run SAME SCRIPT as different user

Dear all, i am doing an SVN backup script. Almost done. My problem is : Script should run by user : svn There is a chance to run the script by root itself.. so i coded like following #This script path and name ... (2 Replies)
Discussion started by: linuxadmin
2 Replies

8. UNIX for Dummies Questions & Answers

How to allow a different user to run a script

Hi I have a script that i would like to be run by a different user. For example, I have a file called 'mytest.pl' created by user 'user4' What command should i use to make sure that user 'ydanial' has ability to run 'mytest.pl' ? Thanks (6 Replies)
Discussion started by: DallasT
6 Replies

9. Shell Programming and Scripting

Su to another user to run script

I have a script ( the name is /tmp/script1) , the content is simple , just copy a file to another directory . Now I would like every user will change to a specific user ( eg. userA ) before run this script so that the script will be run by userA , that mean I want only userA run this script , I... (2 Replies)
Discussion started by: ust3
2 Replies

10. Shell Programming and Scripting

User Agents Identifier

Hi, Can anyone help me write a script tp determine the web browser from a user agent. A user agent is stored in a file and consists of hundreds of lines e.g. 37050 Mozilla/5.0 (Windows NT 6.1; WOW64; Trident/7.0; rv:11.0) like Gecko 29404 Mozilla/5.0 (Windows NT 6.3; WOW64)... (4 Replies)
Discussion started by: cyberfrog
4 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)
All times are GMT -4. The time now is 04:21 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy