09-06-2011
I was able to extract it just fine.
-bash-3.00$ mkdir temp2
-bash-3.00$ cd temp2
-bash-3.00$ ls
shc-3.8.7.tgz
-bash-3.00$ gunzip shc-3.8.7.tgz
-bash-3.00$ ls
shc-3.8.7.tar
-bash-3.00$ tar xfv shc-3.8.7.tar
x shc-3.8.7/CHANGES, 3637 bytes, 8 tape blocks
x shc-3.8.7/Copying, 17982 bytes, 36 tape blocks
x shc-3.8.7/Makefile, 1940 bytes, 4 tape blocks
x shc-3.8.7/match, 336 bytes, 1 tape blocks
x shc-3.8.7/pru.sh, 155 bytes, 1 tape blocks
x shc-3.8.7/shc-3.8.7.c, 24962 bytes, 49 tape blocks
x shc-3.8.7/shc.1, 3136 bytes, 7 tape blocks
x shc-3.8.7/shc.README, 1544 bytes, 4 tape blocks
x shc-3.8.7/shc.c symbolic link to shc-3.8.7.c
x shc-3.8.7/shc.html, 4558 bytes, 9 tape blocks
x shc-3.8.7/test.bash, 138 bytes, 1 tape blocks
x shc-3.8.7/test.csh, 52 bytes, 1 tape blocks
x shc-3.8.7/test.ksh, 142 bytes, 1 tape blocks
-bash-3.00$ ls -la
total 146
drwxr-xr-x 3 chris sysadmin 512 Sep 6 08:33 .
drwxr-xr-x 22 chris sysadmin 1024 Sep 6 08:32 ..
drwxr-xr-x 2 chris sysadmin 512 Sep 6 08:33 shc-3.8.7
-rw-r--r-- 1 chris sysadmin 71680 Sep 6 08:30 shc-3.8.7.tar
-bash-3.00$ cd shc-3.8.7
-bash-3.00$ ls
CHANGES Makefile pru.sh shc.1 shc.c test.bash test.ksh
Copying match shc-3.8.7.c shc.README shc.html test.csh
-bash-3.00$ ls -la
total 136
drwxr-xr-x 2 chris sysadmin 512 Sep 6 08:33 .
drwxr-xr-x 3 chris sysadmin 512 Sep 6 08:33 ..
-rw-r----- 1 chris sysadmin 3637 Feb 10 2010 CHANGES
-rw-r----- 1 chris sysadmin 17982 May 9 1996 Copying
-rw-r----- 1 chris sysadmin 1940 Feb 10 2010 Makefile
-rwxr-x--- 1 chris sysadmin 336 Feb 21 2003 match
-rwxr-x--- 1 chris sysadmin 155 Jun 19 2003 pru.sh
-rw-r----- 1 chris sysadmin 24962 Feb 10 2010 shc-3.8.7.c
-rw-r----- 1 chris sysadmin 3136 Jul 8 2004 shc.1
-rw-r----- 1 chris sysadmin 1544 Jun 19 2003 shc.README
lrwxrwxrwx 1 chris sysadmin 11 Sep 6 08:33 shc.c -> shc-3.8.7.c
-rw-r----- 1 chris sysadmin 4558 Jul 8 2004 shc.html
-rwxr-x--- 1 chris sysadmin 138 Nov 12 2004 test.bash
-rwxr-x--- 1 chris sysadmin 52 Jun 19 2003 test.csh
-rwxr-x--- 1 chris sysadmin 142 Jan 18 2008 test.ksh
-bash-3.00$ head -30 shc.README
Purpose:
A generic shell script compiler. Shc takes a script, which is
specified on the command line and produces C source code. The
generated source code is then compiled and linked to produce a
stripped binary executable. Use with care.
Building:
Just do a "make"
Testing:
Try: "make test"
or: "shc -v -f match" then "match.x sh"
Caveat emptor: see Copyright
The results look fine to me, but I havn't used this in anger, but
the author has used shc for his work widely over SunOS, Solaris and
Linux, and done some testing on Irix and HPUX.
We tested it on a few SMALL ksh scripts - big tasks should probably
be written in C in the first place (see _SC_ARG_MAX below)!
Bugs:
-bash-3.00$
10 More Discussions You Might Find Interesting
1. Shell Programming and Scripting
I am loging into a SunOS 5.8 box for the first time.
I do not see a .profile file in the home directory. Also on the command line when I type a backspace to correct my typing I get a ^H character. Where and how can I fix this?
Thanks in advance (5 Replies)
Discussion started by: jxh461
5 Replies
2. UNIX for Advanced & Expert Users
I have compiled binary file using "cc" on SunOS 5.8 and the same binary file i have copied to SunOS 5.9 and it is giving me core dump error.I want to know whether migration of compiled code from lower version to higer version created this problem. how can i solve this problem.I am pasting the core... (1 Reply)
Discussion started by: Arvind Maurya
1 Replies
3. UNIX for Dummies Questions & Answers
I just installed SUSE Linux 10.0 on my computer but when I typed " emacs & " and " gcc -c main.c" in the terminal, those programs couldn't be found. So the Linux install package does not install those programs by default? (2 Replies)
Discussion started by: whutes
2 Replies
4. Solaris
Hey all,
I've got my hands on 10 SunOS 5.6 SPARCStation 20 machines and I'm looking to get them up and running. They're all in various states of disrepair but I've got them all to a state where the hardware is working and the machine will at least attempt to boot.
I've only used Solaris as a... (1 Reply)
Discussion started by: kevpatts
1 Replies
5. Solaris
AIM- Install Oracle 11g on Solaris using VMWare
Steps
1.Logged on as root
2.Created subfolders à /usr/local/bin & /usr/local/bin/gcc
3.Downloaded gcc & libiconv & unzipped them on my harddrive & burnt them on CD
4.Copied files from CD to /usr/local/bin/gcc
5.Terminal (root) à pkgadd -d... (8 Replies)
Discussion started by: Ackers
8 Replies
6. Solaris
Hi,
I am bulding a path to open files like this \path\values\file.xxx This path is opened in an IE browser window and opens the file/document I am trying to see. I mean it opens a pdf document or it promps you to "save" or "open" the specific file (if it's a .xml, .doc, .html).
I was using... (1 Reply)
Discussion started by: hcibl_javok
1 Replies
7. Solaris
I'm trying to build some python modules on a Solaris 10 machine. It has gcc as /usr/sfw/bin/gcc.
# CC=gcc python setup.py build
running build
running build_py
running build_ext
cc -c actread.c -o actread.o
unable to execute cc: No such file or directory
error: command 'cc' failed with exit... (8 Replies)
Discussion started by: aussieos
8 Replies
8. AIX
Hello everyone:
I've installed an OS patch into AIX 6.1 by running the following command:
instfix -d /tmp/6100-02-03 -k "IZ41855"
however it seem not installed
instfix -i -k "IZ41855"
There was no data for IZ41855 in the fix database.
what am I doing wrong? (8 Replies)
Discussion started by: edgarvm
8 Replies
9. Red Hat
Hey there,
i run 1: on my server (RHEL 6) and getting response that the libodbc is not installed. If i use yum for installation, it tells me, there is no package like this ( 2: ). Since in the description of Definiens is mentioned that the Run-time dependency is unixODBC (libodbc.so.1), I assume... (2 Replies)
Discussion started by: rkirsten
2 Replies
10. UNIX for Beginners Questions & Answers
Hello Forum,
I'm issuing a one line bash command to look for the version of an installed application and saving the result to a variable like so:
APP=application --version
But if the application is not installed I want to return to my variable that the Application is not installed. So I'm... (2 Replies)
Discussion started by: greavette
2 Replies
LEARN ABOUT OPENSOLARIS
aedplot
plot(1B) SunOS/BSD Compatibility Package Commands plot(1B)
NAME
plot, aedplot, atoplot, bgplot, crtplot, dumbplot, gigiplot, hpplot, implot, plottoa, t300, t300s, t4013, t450, tek, vplot, hp7221plot -
graphics filters for various plotters
SYNOPSIS
/usr/ucb/plot [-Tterminal]
DESCRIPTION
The plot utility reads plotting instructions (see plot(4B)) from the standard input and produces plotting instructions suitable for a par-
ticular terminal on the standard output.
If no terminal is specified, the environment variable TERM is used. The default terminal is tek.
ENVIRONMENT VARIABLES
Except for ver, the following terminal-types can be used with `lpr -g' (see lpr(1B)) to produce plotted output:
2648 | 2648a | h8 | hp2648 | hp2648a
Hewlett Packard 2648 graphics terminal.
hp7221 | hp7 | h7 |
Hewlett Packard 7221 plotter.
300
DASI 300 or GSI terminal (Diablo mechanism).
300s | 300S
DASI 300s terminal (Diablo mechanism).
450
DASI Hyterm 450 terminal (Diablo mechanism).
4013
Tektronix 4013 storage scope.
4014 | tek
Tektronix 4014 and 4015 storage scope with Enhanced Graphics Module. (Use 4013 for Tektronix 4014 or 4015 without the Enhanced Graphics
Module).
aed
AED 512 color graphics terminal.
bgplot | bitgraph
BBN bitgraph graphics terminal.
crt
Any crt terminal capable of running vi(1).
dumb | un | unknown
Dumb terminals without cursor addressing or line printers.
gigi | vt125
DEC vt125 terminal.
implot
Imagen plotter.
var
Benson Varian printer-plotter
ver
Versatec D1200A printer-plotter. The output is scan-converted and suitable input to `lpr -v'.
FILES
/usr/ucb/aedplot
/usr/ucb/atoplot
/usr/ucb/bgplot
/usr/ucb/crtplot
/usr/ucb/dumbplot
/usr/ucb/gigiplot
/usr/ucb/hp7221plot
/usr/ucb/hpplot
/usr/ucb/implot
/usr/ucb/plot
/usr/ucb/plottoa
/usr/ucb/t300
/usr/ucb/t300s
/usr/ucb/t4013
/usr/ucb/t450
/usr/ucb/tek
/usr/ucb/vplot
ATTRIBUTES
See attributes(5) for descriptions of the following attributes:
+-----------------------------+-----------------------------+
| ATTRIBUTE TYPE | ATTRIBUTE VALUE |
+-----------------------------+-----------------------------+
|Availability |SUNWscpu |
+-----------------------------+-----------------------------+
SEE ALSO
graph(1), tplot(1), vi(1), lpr(1B), plot(4B), attributes(5)
SunOS 5.11 3 Aug 1994 plot(1B)