LinuxQuestions.org
Help answer threads with 0 replies.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - General
User Name
Password
Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.

Notices


Reply
  Search this Thread
Old 10-05-2010, 05:20 PM   #1
jsmithOracle
LQ Newbie
 
Registered: Jun 2010
Posts: 16

Rep: Reputation: 0
SHELL oash on linux


I'm trying to run on Linux, a script (menu) that was conducted for the shell "oash"

to run the above script gives the following error:

/usr/lib/scosh/utilbin/oash: No suhc file or directory

in a desperate attempt, it copies a complete directory SCO UNIX

/usr/lib/scosh/

but in vain attempt, I kept giving the same error

will have a solution for this????

thanks in advance

Last edited by XavierP; 10-06-2010 at 11:59 AM. Reason: Removed badly mangled URL to a shopping site
 
Old 10-06-2010, 12:40 PM   #2
MensaWater
LQ Guru
 
Registered: May 2005
Location: Atlanta Georgia USA
Distribution: Redhat (RHEL), CentOS, Fedora, CoreOS, Debian, FreeBSD, HP-UX, Solaris, SCO
Posts: 7,831
Blog Entries: 15

Rep: Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669Reputation: 1669
I found a site that says:
Quote:
oash is a version of the Bourne shell enhanced by SCO with their OA (Office Automation) libraries to do character windowing stuff, kind of like wksh.
I didn't find anything that gave information about how one would convert oash to a shell that Linux understands (e.g. bash).

However since bash is an enhanced version of the Bourne shell and depending on features used in your script it might be something as simple as changing the first line of the script (assuming it has something like "#!<pathto>/oash" to have instead "#!/bin/bash". This first line is called the interpreter line in scripts and it just specifies what shell the script should be run in.

I don't know that the oash binary if copied to Linux would work (based on above info about automation libraries I suspect it wouldn't).

However you might want to check the permissions on the oash file and parent directories to see if you have permission to execute it as the user that is running the script. Rather than running the script simply try to run the oash command itself. Also if you do NOT have permissions to the directory you put it in you might want to move the oash command to another directory and execute it from there. If that works then changing the interpreter line to "#!<newpathto>/oash" might resolve your problem.

By the way SCO is "closed source" commercial software so it isn't really proper to run its binaries on another platform even if they would work.
 
Old 10-06-2010, 12:56 PM   #3
TB0ne
LQ Guru
 
Registered: Jul 2003
Location: Birmingham, Alabama
Distribution: SuSE, RedHat, Slack,CentOS
Posts: 26,635

Rep: Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965Reputation: 7965
Quote:
Originally Posted by jsmithOracle View Post
I'm trying to run on Linux, a script (menu) that was conducted for the shell "oash"

to run the above script gives the following error:

/usr/lib/scosh/utilbin/oash: No suhc file or directory

in a desperate attempt, it copies a complete directory SCO UNIX
/usr/lib/scosh/
but in vain attempt, I kept giving the same error
will have a solution for this????
thanks in advance
I agree with MensaWater, and will also add that trying to keep your script running with an old, soon-to-be out of business product (and closed-source to boot), isn't a good plan for the future.

Put some time in, and migrate your script to bash, and you'll have total portability across 99.9% of all *Nix systems. Perhaps if you post your script, we can look and see if there are any glaring problems with it running under bash.
 
  


Reply



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 On
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
How to run root privileged Linux command as normal user via shell shell tcegrid Linux - Newbie 1 06-23-2008 03:38 PM
LXer: Shell tip: Set the shell prompt and themes in Linux Terminal LXer Syndicated Linux News 0 06-12-2007 03:02 AM
First time using linux shell, loving it, can anyone help me write my own shell???? WinX187 Programming 4 04-21-2007 12:06 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - General

All times are GMT -5. The time now is 10:10 AM.

Main Menu
Advertisement
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
Open Source Consulting | Domain Registration