Sponsored Content
Full Discussion: Setting variables in UNIX
Top Forums UNIX for Beginners Questions & Answers Setting variables in UNIX Post 303013415 by kgopan on Wednesday 21st of February 2018 07:03:44 AM
Old 02-21-2018
I could resolve the problem. Sorry for asking silly question. just started learning Smilie


Moderator's Comments:
Mod Comment There's not something like silly questions; we all started with step 1...
Please consider posting your solution as it helps others looking for help and / or confirms the idea / approach jim mcnamara posted!

Last edited by RudiC; 02-21-2018 at 08:12 AM..
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

Setting up shell variables

Hi everyone, I am trying to set up the .profile for a user I have just created. In trying to set up the shell variables, I want to make the shell be korn shell (default shell i believe is Borne shell), so, this is what I did: SHELL=/usr/bin/ksh export SHELL Whenl executing the .profile,... (1 Reply)
Discussion started by: rachael
1 Replies

2. UNIX for Dummies Questions & Answers

setting environment variables ???

Hello, I want to set some environment variables with this script: ip=$@ echo Remote Computer: $ip PERLDB_OPTS="CallKomodo=$ip:9000 RemotePort=$ip:9010 PrintRet=0" export PERLDB_OPTS PERL5LIB=/opt/komodo export PERL5LIB echo PERLDB_OPTS: $PERLDB_OPTS echo PERL5LIB: $PERL5LIB But it... (5 Replies)
Discussion started by: Gargamel
5 Replies

3. Shell Programming and Scripting

Setting variables in a function

I'm not quite sure what I'm doing wrong here. I've go several jobs which print reports. Occassionally a printer will break down and reports need to be move to another printer. Rather than hard code the printer names in our scripts I'm trying to set these programatically using our function... (1 Reply)
Discussion started by: BCarlson
1 Replies

4. UNIX for Dummies Questions & Answers

Setting numbered variables

Normally I would post in the shell scripting area, but this is so basic I thought I'd best put it in the dummy area! I want to set a series of numbered variables. I have a loop which increments a variable called $i with each loop. I want to name variables with this number e.g. var1, var2, var3... (1 Reply)
Discussion started by: michaeltravisuk
1 Replies

5. UNIX for Advanced & Expert Users

setting some variables

i have a file .NAMEexport MY_NAME=JOE when i do this at the command prompt #. .NAME $echo MY_NAME $JOEi created a script called Run.sh . .NAME At the command prompt i did #sh Run.sh #echo $MY_NAMEit returns nothing. What have i missed out? (7 Replies)
Discussion started by: new2ss
7 Replies

6. UNIX for Dummies Questions & Answers

Setting up variables

Hi all, I have a shell script that sets up the environment for an application running on UNIX - ksh. This script is run using: . ./script_name XX where XX is a parameter. I want to run it from another shell script but when I do it I don't get the envornment variables set up and the prompt... (3 Replies)
Discussion started by: solar_ext
3 Replies

7. UNIX for Dummies Questions & Answers

Need help with setting up environment variables

hi all, I would appreciate if some one could explain me the difference between setting up the variables as shown below HOME=${HOME:-"/home/user1"} HOME=/home/user1 (1 Reply)
Discussion started by: SSSB
1 Replies

8. UNIX for Dummies Questions & Answers

Setting Environment Variables

#!/bin/bash if ; then ASS1_DATA_DIR=./ echo $ASS1_DATA_DIR export ASS1_DATA_DIR echo "data dir" fi if ; then ASS1_OUTPUT_DIR=./ export ASS1_OUTPUT_DIR fi I want to create a new environment variable ASS1_DATA_DIR and ASS1_OUTPUT_DIR in bash and set them to the current... (4 Replies)
Discussion started by: bigubosu
4 Replies

9. UNIX for Dummies Questions & Answers

Setting up environment variables

Hi all, This is my first post here. I need to set up a few environment variables with a shell script. Some are hard-coded, but some should come from other commands or as input from the user. How do I do that? For example, I need to export a variable as such: export DISPLAY=127.0.0.1:8.0 ... (2 Replies)
Discussion started by: exchequer598
2 Replies

10. Shell Programming and Scripting

setting and displaying variables

Hello, I need a little help. 1. Edit /etc/profile so that all users are greeted upon login. 2. For the root account, set the prompt to something like "Danger!! root is doing stuff in \w", preferably in a bright color such as red or pink or in reverse video mode. Thanks for help. (4 Replies)
Discussion started by: zhshqzyc
4 Replies
TOMATOES(6)															       TOMATOES(6)

NAME
tomatoes - Tomatoes smashing game SYNOPSIS
tomatoes SYNOPSIS
I Have No Tomatoes is an extreme leisure time activity idea of which culminates in the following question: How many tomatoes can you smash in ten short minutes? If you have the time to spare, this game has the vegetables just waiting to be eliminated! NOTES
Before starting the game, you should know that the game uses OpenGL for hardware accelerated 2d & 3d graphics. This means that you must have fully OpenGL compatible graphics card in your PC. Your card also needs to be able to use 512x512 textures, and this rules out Voodoo 1, 2 and 3 (limited to 256x256 textures). As for the CPU and memory requirements, I'd recommend something along the lines of Pentium II (or an AMD equivalent) and 64MB. The game works on much slower systems as well, as the game skips frames if the system can't keep up with the 60 FPS rate; this ensures that the game runs at the right speed, you just don't get very smooth animation. This game features solid game play with beautiful OpenGL API driven isometric 3d graphics and nice music. It also includes a MOD player, and you can use your own MOD-type music in the game background. Just copy your XM/S3M/IT/MOD - files to the music subdirectory of I Have No Tomatoes and the game plays them. You can press F1 to skip a song when ingame. There's room for 128 MODs. Btw, if you don't have any MOD music, ModArchive (www.modarchive.com <URL:www.modarchive.com>) is a good place to download some. CONFIGURATION
You may also want to set some options, such as the screen resolution and color depth. By default, I Have No Tomatoes starts fullscreen in 800x600 resolution, 32bpp. To fine-tune the preferences to suit your PC better, open the file config.cfg in a text editor (Notepad will do). Under Unix this file is stored in ~/.tomatoes/. Most likely you'll be interested in these lines: o video_mode = 800 x 600 o video_mode_color_depth = 32 o video_mode_fullscreen = 1 o sound_enabled = 1 To set the resolution, change the video_mode - line (some common resolutions include 640 x 480, 800 x 600, 1024 x 768). Most common color depths are 16 and 32, and sometimes 24. video_mode_fullscreen controls whether the game starts in fullscreen or in a window. When running in windowed mode, you can use any resolution you want (the 4:3 aspect ratio modes are still preferred). If you don't have a sound card (or want to turn the sounds off), set sound_enabled to 0 (zero). Finally, if you want to know how many frames your system draws per second (FPS), set show_fps to 1. FPS should be over 60 for smooth anima- tion. The default keys can be changed from the Options menu in game, so no need change them here. When you're satisfied with the config.cfg settings, by all means, proceed to start the game :) AUTHOR
You can contact the author by email at <lsoft@mbnet.fi>. Notice that since 12th of July, 2004 I've been in the army, so don't expect imme- diate responses. Be patient :) This man page was compiled by Helge Kreutzmann <debian@helgefjell.de> for the GNU/Linux project but it may be used by everybody else as well. SEE ALSO
Tomates homepage: http://tomatoes.sourceforge.net <URL:http://tomatoes.sourceforge.net> tomatoes 23 May 2012 TOMATOES(6)
All times are GMT -4. The time now is 03:09 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy