03-23-2010
I think it is working fine now... sorry.. it was a mistake from myside. Is there any way to retain the exit code ( or some value) for the next run of the script.?
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am running an Ubuntu Gutsy laptop with Advanced Compiz fusion options enabled. I am using xdotool to simulate keyboard input in order to rotate through multiple desktops.
I am looking for a way to kill a while true loop when the Enter key (or Control+C if it is easier) is pushed when the... (2 Replies)
Discussion started by: acclaypool
2 Replies
2. Shell Programming and Scripting
All,
I'm having a problem w/this function. Specifically, I want to call another function (get_stats) when the process in the else completes (the initial if and the elsif seem to work fine). But what's happening is the get_stats function call is running after the else runs only once, NOT when it... (8 Replies)
Discussion started by: GregWold
8 Replies
3. Shell Programming and Scripting
I wonder if someone could help me here. I am trying to find a way of exiting from a loop but not exiting me from the script for example
#!/bin/ksh
# ************* FUNCTIONS ******************
function1() { #ping test
ping $1 2 > /dev/null
if ; then
... (13 Replies)
Discussion started by: hcclnoodles
13 Replies
4. UNIX for Advanced & Expert Users
Greeting,
The following script completes after reading only one record from the input file that contains many records. I commented out the "ssh" and get what I expect, an echo of all the records in the input.txt file. Is ssh killing the file handle?
On the box "uname -a" gives "SunOS... (2 Replies)
Discussion started by: twk
2 Replies
5. Shell Programming and Scripting
Hi,
I have a really simple script which I want to run forever, inside the loop it runs a C application which if it exits should restart.
#!/bin/sh
while true
do
./SCF scf.conf >> scf.log
sleep 2
done
For some reason the SCF C application coredumps and the script is exiting.... (3 Replies)
Discussion started by: marvinwright
3 Replies
6. Shell Programming and Scripting
Hello,
This is my first post and I would be very thankful if you can help me. I've already searched in the forum and I've found a very similar thread in wich my problem is solved, but the thread is closed and the solution given in it doesn't work in my shell:
153194-problem-quitting-sqlplus
... (11 Replies)
Discussion started by: JuanPerez
11 Replies
7. Shell Programming and Scripting
Hi I am having a problem exiting a WHILE loop. I am on a Sun server using ksh.
I am running a Veritas Cluster Software (High Availablity) command to obtain a group status and grepping the command output for status "G" which means that the filesystem is frozen and therefore not available to... (3 Replies)
Discussion started by: bigbuk
3 Replies
8. Shell Programming and Scripting
We are trying to design a flow so that an ETL job shouldn't start until the previous job completes. The script we have written is
while ; do sleep 2; done
The loop however exits even when the process is actually running. Why could this be happening? (12 Replies)
Discussion started by: jerome_rajan
12 Replies
9. Shell Programming and Scripting
Hi,
I work on Ab-initio ETL tool which is based on Unix. I made a small script which has two loop's one with in another. All the functionality is working for the first line of outer loop but when it comes to other lines of outer loop it is throwing error as command not found. Below is the... (4 Replies)
Discussion started by: Ravindra Swan
4 Replies
10. Shell Programming and Scripting
Hi ,
I am processing some files using below shell script the problem for loop exit after processing some files even though it exist.After modifying file.txt and rerunning the script and its running .Any Advise
for i in `cat /xx/file.txt |tr -s "," '\n' ` ; do
echo $i... (3 Replies)
Discussion started by: mohan705
3 Replies
LEARN ABOUT DEBIAN
squeak
SQUEAK(1) SQUEAK(1)
NAME
squeak - Unix Squeak virtual machine launcher
SYNOPSIS
squeak squeak [image filename] [project filename]
DESCRIPTION
squeak is the virtual machine for the Squeak Smalltalk system. It requires three files to operate correctly: an image file containing a
`snapshot' of a live Squeak session, a changes file containing the source code for modified methods in the image, and a copy of (or a link
to) a shared system sources file containing the source code for methods that have not been modified since the last major version increment.
The image and changes files contain the state of a user's Squeak session, which is persistent between consecutive sessions. Private copies
of these files are therefore normally required. The squeak script checks that the local Squeak installation appears sane, and then copies
the required files to the current working directory. If squeak encounters no problems, it will finish by running squeak vm to start a
Squeak session using the newly copied image and changes files.
INVOCATION
squeak accepts an optional image name, and/or an optional project name. If an image name is given on the command line then squeak tries
to run that image. Otherwise squeak checks the environment variable SQUEAK_IMAGE and, if it is set, uses its value as the name of the
image to run. Otherwise squeak looks for available images in the ~/squeak and /usr/share/squeak directories. Then, squeak shows a dialog
with all the available images for the user to choose one of them. If the chosen image is at SQUEAK_IMAGE_DIR (which is by default
/usr/share/squeak), it will be copied to ~/squeak. If only one image is available, no dialog will be shown and the script will run that
image.
The image argument can be followed by a project name. This is the name of a 'document' that should have been saved from a Squeak image.
The project name must have the '.pr' extension.
The project argument can also be providen without an image name. In that case, squeak will look for an image to run the project following
the same criteria explained above.
ENVIRONMENT
To know all the environment variables that can affect the squeak image launching, take a look at the Environment section of the squeakvm
man page.
Appart from those options, these are applied to this script:
SQUEAK_IMAGE_DIR
is the directory, together with ~/squeak where the launcher looks for Squeak images. (The default value is /usr/share/squeak)
SQUEAK_IMAGE
is the name of a image file to be run by the script.
SQUEAK is the name of an alternative vm (or alternative vm options) to be run by the script. The script launches the vm with these default
options: '-mmap 1024M -nomixer'
NOTES
This manual page documents version [version] of Unix Squeak. It may not be appropriate for any other version.
The image and changes files containing a saved Squeak session are intimately related. They should always be used together, never be sepa-
rated, and under no circumstances should an image be run with a changes file that has been used with a different image. Failure to adhere
to the above could cause the source code for the methods in the image to become garbled and impossible to retrieve.
The Unix Squeak virtual machine fully supports OpenGL in both the X11 and Quartz display drivers. Open Croquet will run just fine with
either of these drivers (and many Mac OS X users will even have the choice of which driver to use :).
Because of licensing issues, a Squeak image or Squeak sources package is not available in Debian yet. So the user must download a proper
image in order to get this script useful. Available images can be found in these web sites:
The official Squeak home page:
http://squeak.org
The SqueakLand (international educational oriented) world:
http://www.squeakland.org
The spanish educative oriented Squeak page:
http://squeak.educarex.es/
AUTHOR
This manual page was written by Jose L. Redrejo for the Debian project
SEE ALSO
squeakvm(1).
SQUEAK(1)