Sponsored Content
Full Discussion: Updating variable
Top Forums Shell Programming and Scripting Updating variable Post 302586786 by frappa on Tuesday 3rd of January 2012 09:00:44 AM
Old 01-03-2012
Hi Zbay,

the program source code documentation should point you out to know where the top directory on filesystem for XCrySDen is installed by default (provided that you didn't specified an alternate location during the installation process).

Once you have found where (that is, in which file) the variable is currently defined, you can edit the file so that the value on the right of the "=" sign points to the above said directory of filesystem.

You can use one text editor of your choice (vi, nano) whichever you are comfortable with.

After editing the file, in order to "activate" the new value for the variable you have two choices:
1. logout then re-login to the system
OR
2. source the file containing the variable new value, i.e.:
Code:
$ source filename

This User Gave Thanks to frappa For This Post:
 

9 More Discussions You Might Find Interesting

1. UNIX for Advanced & Expert Users

AutoSys (updating global variable)

Hello all, I am very new at both AutoSys and VBScript. I have looked at the manual for hours however I just can't figure it out, the following is the problem: NOTE: AutoSys is being used in all Windows environment. But realizing that this is a UNIX forum, please do provide the answer however... (1 Reply)
Discussion started by: mik357
1 Replies

2. Shell Programming and Scripting

awk updating one file with another, comparing, updating

Hello, I read and search through this wonderful forum and tried different approaches but it seems I lack some knowledge and neurones ^^ Here is what I'm trying to achieve : file1: test filea 3495; test fileb 4578; test filec 7689; test filey 9978; test filez 12300; file2: test filea... (11 Replies)
Discussion started by: mecano
11 Replies

3. UNIX for Dummies Questions & Answers

Updating a database

i've got a database setup that references user inputs to see if they are already inputted. What I am wanting to do is allow the user to update the database by typing "update: name" where name is someone already in the database. echo "Enter your name." read NAME location=`find . -name... (2 Replies)
Discussion started by: fufaso
2 Replies

4. Shell Programming and Scripting

awk - updating variable in if statement

I have another question I am stuck at :wall: I have a text file with two columns, like so... 2 0.0627279 3 0.0794451 4 0.108705 5 0.137739 6 0.190394 7 0.217407 8 0.241764 9 0.344458 10 0.460762 I'd like to go through the file line by line until the value in the second column... (3 Replies)
Discussion started by: origamisven
3 Replies

5. Emergency UNIX and Linux Support

Table is not updating

Hi, I have script lyk: nawk '{{print $1,$2,$3}}' ./$DirectoryName/AuditGroupTableTableData_$TimeStamp.txt | while read a b c do echo $a echo $b echo $c ret=`sqlplus -s $db_user/$db_pwd@$db_sid $a $b $c <<EOF SET HEADING OFF SET SERVEROUTPUT ON SET FEEDBACK OFF DECLARE CNT ... (42 Replies)
Discussion started by: rkrish
42 Replies

6. Shell Programming and Scripting

error while updating rows in sql with values in array variable

Hi, I need to update rows in a table based on the values in an array variable. code is : while read line do error_msg="$(echo $line)" index=`expr $index+1` done <"logs/$ffile" rows_count=${#error_msg } i=0 while do echo "error msgs is... (2 Replies)
Discussion started by: RP09
2 Replies

7. Ubuntu

16.04 not updating

Just installed the latest version on my hp stream, was tired of windows. Of the few times I've used Linux, this is the first time it won't update. Im connected to the net the updater recognizes that the OS needs 21 updates. But it won't download/install the updates. It also won't load the... (1 Reply)
Discussion started by: DabblingMadman
1 Replies

8. Shell Programming and Scripting

Updating a variable within a variable

I am trying to increment a counter variable that sits within a seperate text variable. I am initializing the counter variable once only at the start of my code. I expected to be able to increment the counter and have the text variable (that countains the counter) display as incremented throughout... (8 Replies)
Discussion started by: Flip-Flop
8 Replies

9. UNIX for Beginners Questions & Answers

Help with updating bios

I need to update a setting in the BIOS on our SCO Openserver 5.0.7 system and all I can bring up about it says I need to create a dos bootable disk of some sort. The problem is that it doesn't seem like dos is loading up fully. I created the dos bootable thumb drive on a Windows PC using Rufus... (7 Replies)
Discussion started by: hometrics
7 Replies
rheolef-config(1rheolef)					    rheolef-6.1 					  rheolef-config(1rheolef)

NAME
rheolef-config -- get installation directories EXAMPLE
The following command returns the rheolef libraries directory: rheolef-config --libdir An environment sanity check writes: rheolef-config --check DESCRIPTION
This command is usefull when linking executables with rheolef: libraries locations are required by the link editor. Such directories are defined while configuring rheolef, before to compile and install see . Installing}'. The rheolef-config command returns these settings. Note that rheolef-config could be used in Makefiles for the determination of linker flags. Another usefull feature is the --check option. When rheolef is installed in a user directory, i.e. not as root, the sane run-time environ- ment depends upon two environment variables. The first one is the PATH: bkindir directory may be present in PATH. The second environment variable is related to shared libraries, and its name is system-dependent, e.g. LD_LIBRARY_PATH on most platforms and SHLIB_PATH on HP-UX. Its content may contains bindir. rheolef-config --shlibpath-var Since it is a common mistake to have incorrect values for these variable, for novice users or for adanced ones, especialy when dealing with several installed versions, the environment sanity check writes: rheolef-config --check If there is mistakes, a hint is suggested to fix it and the return status is 1. Instead, the return status is 0. FILE OPTIONS
--version rheolef version. --help print option summary and exit. --prefix install architecture-independent files location. --exec-prefix architecture-dependent files location. --includedir include header directory. --bindir executables directory. --mandir man documentation directory. --libdir object code libraries directory. --datadir --datarootdir read-only architecture-independent data location. --pkgdatadir read-only architecture-independent data location; specific for package. --includes include compiler flags. --libs library compiler flags. --shlibpath-var the shared library path variable. --library-interface-version the library interface version. --hardcode-libdir-flag-spec flag to hardcode a libdir into a binary during linking. --is-distributed true or false: whether it is the distributed version. --have-old-code --have-new-code true or false: whether it is the new/old code branch that is installed. rheolef-6.1 rheolef-6.1 rheolef-config(1rheolef)
All times are GMT -4. The time now is 11:40 AM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy