10-31-2007
Remember a process get's a virtual memory image, as if it's the only process on the machine.
10 More Discussions You Might Find Interesting
1. UNIX for Dummies Questions & Answers
Still a Beginner here ..
Does anyone no how to get the IP address of the machine thats logged in (bearing in mind there will be others logged in) while they are logged in to the Unix server and pass this as a variable to a shell script so as I can FTP files to that machine via a shell script, at... (2 Replies)
Discussion started by: Gerry405
2 Replies
2. UNIX for Dummies Questions & Answers
I'm attempting to append a line after a specific address with sed. If I type in the address eg.3 then it will append after the third line. I can't get it to work with a variable though. Does anyone know how to do it please?
sed '/3/a\
text' filename :)
sed '/\$address/a\
text' filename... (8 Replies)
Discussion started by: Sniper Pixie
8 Replies
3. UNIX for Dummies Questions & Answers
Hi there,
I need help on setting the path variable. How can I set the path variable with Bourne Shell. My scripts goes like this, but did not work.
#!/bin/sh
PATH=/usr/bin:/usr/ucb:/etc:/export/home/zchen/home
export PATH
Thanks,
Z (4 Replies)
Discussion started by: randomcz
4 Replies
4. Shell Programming and Scripting
Hi,
I am having a variable
Like
line="/dir1/dir2/gr3/file.ksh"
I need to get the /dir1/dir2/gr3 alone. the no of directories may differ at each time.
Please advice. thanks in advance. (3 Replies)
Discussion started by: vanathi
3 Replies
5. Shell Programming and Scripting
Hello,
i have another sed question.. I'm trying to do variable substition with sed and i'm running into a problem.
my var1 is a string constructed like this:
filename1 filerev1 filepath1
my var2 is another string constructed like this:
filename2 filerev2 filepath2
when i do... (2 Replies)
Discussion started by: alrinno
2 Replies
6. UNIX for Dummies Questions & Answers
By using a csh, I want to address a variable content whose name is/matches the content of a given other variable.
i.e.
set name=´sam´
set ${name}_age=´27´
So, by typing: echo ${name}_age
I correctly obtain: sam_age
By typing: echo $sam_age
or echo ${sam_age}
I correctly obtain: 27
... (1 Reply)
Discussion started by: sobolev
1 Replies
7. Shell Programming and Scripting
Hi
I need a script which will remove a path from PATH environment variable. For example
$echo PATH
/usr/local/bin:/usr/bin:test/rmve:/usr/games
$echo rmv
test/rmve
Here I need a shell script which will remove rmv path (test/rmve) from PATH... (9 Replies)
Discussion started by: madhu84
9 Replies
8. Shell Programming and Scripting
Hi,
Could anyone help me in writing a single line code by either using (sed, awk, perl or whatever) to extract a specific path from the PATH environment variable?
for eg: suppose the PATH is being set as follows
PATH=/usr/bin/:/usr/local/bin:/bin:/usr/sbin:/usr/bin/java:/usr/bin/perl3.4
... (2 Replies)
Discussion started by: royalibrahim
2 Replies
9. Shell Programming and Scripting
Hello Folks,
I want to append a path in user's PATH variable which should be available in current session.
Background
Numerous persons will run a utility.
Aim is to add the absolute path of the utility the first time it runs so that next runs have the PATH in env & users can directly run... (6 Replies)
Discussion started by: vibhor_agarwali
6 Replies
10. Shell Programming and Scripting
Hi I'm trying to select text between two lines, I'm using sed to to this, but I need to pass variables to it. For example
start="BEGIN /home/mavkoup/data"
end="END"
sed -n -e '/${start}/,/${end}/g' doesn't work. I've tried double quotes as well. I think there's a problem with the / in the... (4 Replies)
Discussion started by: mavkoup
4 Replies
LEARN ABOUT DEBIAN
scheme48
scheme48(1) General Commands Manual scheme48(1)
NAME
scheme48 - a Scheme interpreter
SYNOPSIS
scheme48 [-i image] [-h heapsize] [-a argument]
DESCRIPTION
scheme48 is an implementation of the Scheme programming language as described in the Revised^5 Report on the Algorithmic Language Scheme.
A runnable system requires two parts, an executable program that implements the Scheme 48 virtual machine, and an image that is used to
initialize the store of the virtual machine. scheme48 is a shell script that starts the virtual machine with an image that runs in a
Scheme command loop.
The scheme48 command loop reads Scheme expressions, evaluates them, and prints their results. It also executes commands, which are identi-
fied by an initial comma character. Type the command ,help to receive a list of available commands.
The meaning of the -h option depends on the type of garbage collector that was chosen at configuration time. If heapsize is a positive
number, it specifies the number of words that can be live at any given time. One word is four bytes. Cons cells are currently 3 words, so
if you want to make sure you can allocate, say, a million cons cells, you should specify -h 3000000 (actually a little more, to account for
the initial heap image and breathing room).
If you specify a maximum smaller than the memory needed to load the image file, the maximum is increased accordingly and a message is writ-
ten to the console.
For the BIBOP garbage collector, heapsize may be 0. This means the heap will possibly keep growing until your system runs out of memory.
Because of this risk, a warning message is written to the console if you specify -h 0.
The ,dump and ,build commands put heap images in files. The -i option causes the initial heap image to be taken from file image. The -a
option causes a list of strings to be passed as the argument to an image generated using the ,build command. The first argument to ,build
is a procedure that is passed the arguments following -a and which should return an integer (which is the return value of the Scheme 48
process).
> ,build (lambda (a) (display a) (newline) 0) foo.image
> ,exit
$ scheme48 -i foo.image -a mumble
mumble
$
FILES
/usr/lib/scheme48-1.`cat ./build/minor-version-number`/scheme48vm
the virtual machine.
/usr/lib/scheme48-1.`cat ./build/minor-version-number`/scheme48.image
the default image.
scheme48(1)