Sponsored Content
Top Forums Shell Programming and Scripting Sourcing .cshrc (C shell) environment variables to bash Post 302865425 by Corona688 on Friday 18th of October 2013 11:44:04 AM
Old 10-18-2013
...being it's just a more complicated version of what he did in one parameter, why? What's your goal here?
 

10 More Discussions You Might Find Interesting

1. UNIX for Dummies Questions & Answers

bash shell variables

Hi everyone, I have added this to my .bash_profile. Whenever I log in and when I type javac I get a error message (java: command not found). Does the order counts? PATH=$JAVA_HOME/bin:$PATH:$HOME/bin JAVA_HOME=$JAVA_HOME/usr/local/jdk1.3.1_02 export JAVA_HOME PATH Thanks ny (3 Replies)
Discussion started by: xNYx
3 Replies

2. Shell Programming and Scripting

shell script help: sorting, incrementing environment variables and stuff

First: me == noob. Whats a good resource for shell script info cause I'm having trouble finding good info. I'm writing a shell script to automate the setup of a flash 'page flip'. My current code is below. the page flip takes an xml file of format <content> <pages... (1 Reply)
Discussion started by: secoif
1 Replies

3. UNIX for Dummies Questions & Answers

word too long..problem while sourcing .cshrc

I am setting my PATH & LD_LIBRARY_PATH through .cshrc file while sourcing it on a old shell i am getting the error word too long .and the changes which i anm doing doesn't get updated . i am in a multi user environment so the only way to do the changes only for my shell is to do it that way. ... (1 Reply)
Discussion started by: mobydick
1 Replies

4. UNIX for Dummies Questions & Answers

cshrc Environment Variable Question

How do I input the environment variable in the .cshrc file to have the up and down arrows recall the last commands??? This is for Solaris 10. :confused::confused: (1 Reply)
Discussion started by: CFSR
1 Replies

5. Homework & Coursework Questions

BASH Environment Variables as arguments?

1. The problem statement, all variables and given/known data: Write a shell program called myenv which takes one argument. The argument should be the name of an environment variable, such as PATH HOME etc. myenv should print out the value of the variable given as the argument. If no argument is... (1 Reply)
Discussion started by: Helix
1 Replies

6. Shell Programming and Scripting

Unable to change environment variables in bash script

Hello! For the moment some settings in my .bashrc contain the password of my company's firewall, which is not a good idea. I would like to use the string "PASSWORD" set in .bashrc and a script that changes all appearances of "PASSWORD" in the environment variables by the actual password (which... (4 Replies)
Discussion started by: markolopa
4 Replies

7. Shell Programming and Scripting

How to use ifdef for bash variables in csh environment?

Hi Guys, I have a a bash script and i am exporting a variable in it. I am calling a csh script from this bash script. The variable "ABC" will be visible in csh script. ks.bash export ABC = abc ./kp.csh ab.csh echo $ABC setenv ABC =cde (i want to assign this value to ABC only if... (4 Replies)
Discussion started by: vdhingra123
4 Replies

8. Shell Programming and Scripting

Sourcing variables from another script

My manager required that i keep the hostnames and username and password in a separate file when creating my sftp script. (Don't mention passwords and sftp...I've talk to him about this several times) I have a list of hostnames that have to be read in a loop in my main script. I don't know... (3 Replies)
Discussion started by: MJCreations
3 Replies

9. UNIX for Dummies Questions & Answers

Question On Sourcing Variables

I have 2 scripts first script would call second script. test1.sh #!/bin/bash logfile=`basename $0`.log echo "First File" >> $logfile TIME=`ls -lu array.ksh | awk '{print $6" "$7" "$8}'` . /home/infrmtca/bin/Test/test2.sh #/home/infrmtca/bin/Test/test2.sh test2.sh #!/bin/bash... (1 Reply)
Discussion started by: Ariean
1 Replies

10. UNIX for Beginners Questions & Answers

Sourcing file from parent directory bash

"Debian 9 64x - LXDE" I try to source a file from my parent directory: #!/bin/bash #source.bash . ../links.bash but i get "file not found". I tried . "../links.bash" and . '../links.bash'. I got on all methods the same result. If i use the absolute path it works, but i don't want to... (4 Replies)
Discussion started by: int3g3r
4 Replies
YAP(1)							      General Commands Manual							    YAP(1)

NAME
yap - prolog interpreter and compiler SYNOPSIS
yap [options] filename DESCRIPTION
yap is a prolog interpreter and compiler. In its basic form, yap starts an interactive Prolog interpreter. When restoring a saved state, yap will allocate the same amount of memory as that in use when the state was saved, unless a different amount is specified by flags in the command line. By default, yap restores the file startup from the current directory or from the yap library. See the yap manual for how to use yap for writing Prolog scripts. OPTIONS
-? Print a short error message. -s n Allocate n K bytes for local and global stacks. -h n Allocate n K bytes for heap and auxiliary stacks -t n Allocate n K bytes for the trail stack -l yap-file Compile the Prolog file yap-file before entering the top-level. -L yap-file Compile the Prolog file yap-file and then halt. This option is useful for implementing scripts. -g goal run the goal goal before top-level. The goal is converted from an atom to a Prolog term. -z goal run the goal goal as top-level. The goal is converted from an atom to a Prolog term. -b boot-file Boot code is in Prolog file boot-file. The filename must define the predicate '$live'/0. -c ip-host port Connect standard streams to host ip-host at port port. filename Restore state saved in the given file. -- Separator for arguments to Prolog code. These arguments are visible through the unix/1 built-in. ENVIRONMENT
YAPBINDIR Yap usually boots from a saved state. The saved state will use the default installation directory to search for the YAP binary unless you define the environment variable YAPBINDIR. YAPLIBDIR Yap always tries to find saved states from the current directory first. If it cannot it will use the environment variable YAPLIBDIR, if defined, or search the default library directory. YAPSHAREDIR Yap will try to find library files from the YAPSHAREDIR/library directory. SEE ALSO
The YAP manual is on a debian system available through the info system (command info yap), and as a html document through the debian help system. AUTHOR
Yap was written by R. Lopes, L.Damas, V. Santos Costa. This manual page was compiled by Ralf Treinen <treinen@debian.org> from the Yap manual for the Debian project (but may be used by others). COPYRIGHT
Since this manpage is derived from the yap manual it is subject to the licence of the yap manual: Permission is granted to make and distribute verbatim copies of this manual provided the copyright notice and this permission notice are preserved on all copies. Permission is granted to copy and distribute modified versions of this manual under the conditions for verbatim copying, provided that the entire resulting derived work is distributed under the terms of a permission notice identical to this one. Permission is granted to copy and distribute translations of this manual into another language, under the above conditions for modified versions. December 23, 2007 YAP(1)
All times are GMT -4. The time now is 11:37 PM.
Unix & Linux Forums Content Copyright 1993-2022. All Rights Reserved.
Privacy Policy