LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Non-*NIX Forums > Programming
User Name
Password
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.

Notices

Reply
 
Search this Thread
Old 11-13-2001, 11:22 AM   #1
juglugs
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.....


#!/bin/sh
# SID "@(#)xangoss.sh 3.2 - 95/07/06"
if [ $# = 0 ]; then
xoac&
exit 0
fi

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
arguements.

X11 Switches

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

!
exit 1
fi

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

Rep: Reputation: 30
Maybe...

try:

#!/bin/bash

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

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, 02:39 AM   #3
juglugs
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:

ANGOSS=/usr/angoss
export ANGOSS

DISPLAY=machine-name:0.0
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 ftp://ftp.angoss.com/pub/smartware/demos/linux/:

BTW, the X version requires X11R6.

I guess this is the release of X11 it needs ?

Please Help

Cheers

JugLugs
 
  


Reply


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 04:22 AM
help with a very small script hamish Linux - General 3 06-09-2004 02:10 AM
Need help with very small script. Franklin Programming 8 10-14-2003 12:37 PM
Small Script msj Linux - Newbie 2 08-27-2001 06:59 AM
small script msj Programming 1 08-26-2001 11:42 AM


All times are GMT -5. The time now is 05:35 PM.

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