Visit Jeremy's Blog.
Go Back > Forums > Non-*NIX Forums > Programming
User Name
Programming This forum is for all programming questions.
The question does not have to be directly related to Linux and any language is fair game.


  Search this Thread
Old 11-13-2001, 12:22 PM   #1
LQ Newbie
Registered: Sep 2001
Location: UK
Distribution: mandrake and Red Hat
Posts: 20

Rep: Reputation: 0
Post Please Help with a small script ?

Could anybody tell what if anything is wrong with this script it simply will not run the file xoac in after setting the path to the required directory ie: \usr\angoss\bin. I think something in here must no longer be valid in Redhat 7.1 ??? When executed it should run the file xoac but just returns - no such file or directory.

Please help cant find any answers from the software distributors.

Cheers Juglugs.....

# SID "@(#) 3.2 - 95/07/06"
if [ $# = 0 ]; then
exit 0

x=`basename $0`
if [ X"$1" = X-x ] ; then
cat <<!
$x [-x] [s or w or d or c] [-a<command>] [-d<dir>] [-oa<size>] [-oe]
[-od<file>] [-oi] [-om<menu>] [-os<num>] [-ot<size>]
[-p<file>] [-RAD<path>]

Starts SmartWare PLUS in graphics mode (X11).

-x Display this explanation
s Start Spreadsheet (must be first argument)
w Start Word Processor (must be first argument)
d Start Data Base (must be first argument)
c Start Communications (must be first argument)
-a<command> Run a command ("-afile load \"mydoc\"")
-d<dir> Data directory (-d/usr/mydir)
-oa<size> Value stack size (-oa1000)
-oe Default project execution mode = in-memory
-od<file> Special start up screen (-odmyfile)
-oi Suppress start up screen (-oi)
-om<menu> Optional menu (-ommymenu)
-os<num> Override detection of speech rec. software
-ot<size> String stack size (-ot1000)
-p<file> Run project upon entry (-pstart)
-RAD<path> Home directory of RAD application to start
-pulldown Run with pulldown menus

NOTE: For the above agruements, do not put a space between the flag and

X11 Switches

-geometry WxH Change the size (in characters) W=Width, H=Height
-font fontname Change the font to use

exit 1

exec xoac $*&
Old 11-13-2001, 08:17 PM   #2
Registered: Aug 2001
Location: Off the coast of Madadascar
Posts: 498

Rep: Reputation: 30



and I'm not sure what the first if statement does but

xoac &

NOTE: the space between the program name and the ampersand

If that doesn't work give us more detailed information like what the exact messages that you receive are and what ever you think is necessary.
Old 11-14-2001, 03:39 AM   #3
LQ Newbie
Registered: Sep 2001
Location: UK
Distribution: mandrake and Red Hat
Posts: 20

Original Poster
Rep: Reputation: 0
Ok, tried taking out the if statement also tried replacing xoac with ./xoac and ./xoac &, there is some progress here ie: it now does nothing at all, by which I mean there are no errors returned however nor is the programme running either.

There are instructions that say set your paths and display environment like this:

export ANGOSS

export DISPLAY

Are these valid - they appeared to be accepted ?

This is old software it's called Angoss Smartware Plus (a cross platform development suite including database, spreadsheet, comms and wordprocessor) - it used to run fine on older versions of RH (5.1 or before) and other linux platforms, but now for some reason it won't run on the newer versions. Could it be a library link or path problem ?

The main errors I get are No such file or directory. But now there are no errors at all, but no programme, even when I reverse the amendments to the file I still get no errors ?

Talk about a bit bemused i've just found this at one of the download site

BTW, the X version requires X11R6.

I guess this is the release of X11 it needs ?

Please Help




Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off

Similar Threads
Thread Thread Starter Forum Replies Last Post
small script Kassel Programming 2 11-19-2004 05:22 AM
help with a very small script hamish Linux - General 3 06-09-2004 03:10 AM
Need help with very small script. Franklin Programming 8 10-14-2003 01:37 PM
Small Script msj Linux - Newbie 2 08-27-2001 07:59 AM
small script msj Programming 1 08-26-2001 12:42 PM > Forums > Non-*NIX Forums > Programming

All times are GMT -5. The time now is 03:41 PM.

Main Menu
Write for LQ is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration